Skip to main content
The ntro CLI is a thin layer over the Python SDK. Every command parses arguments, calls the SDK, and formats output. No business logic lives in the CLI itself.

Install

First-time setup

auth login writes ~/.ntro/config.toml — see API keys and Configure environment for the full flow.

Global flags

All flags go before the subcommand:

Command groups

Used when bringing your own data platform (Snowflake or Microsoft Fabric). Skip this if you’re using managed-postgres — Ntropii provisions and manages the database for you.
Every tenant must declare its data-platform strategy at creation. Required values: managed-postgres, snowflake, or microsoft-fabric.
The CLI fails fast when --data-platform-config is set with managed-postgres, or missing with a BYO platform. The API enforces the same checks server-side.
Tenant resolution: --tenant flag → NTRO_TENANT env var → default_tenant in config.
ntro workflow create --path is a single command that does runbook deploy + workflow binding. Per N-80, workflows are anchored to a runbookSlug; the same runbook can back many workflows across tenants and entities.
ntro workflow test is covered in Testing locally.
Runbooks are the deterministic Python templates that drive workflows. The CLI surfaces the templates installed on the worker for browsing and feedback.
To deploy a runbook, use ntro workflow create --path (see above) — it wraps the runbook deploy + workflow binding in a single command.
External agents are references to Managed Agents on host platforms (Anthropic, GitHub/Microsoft, …). Registering them with Ntropii makes them addressable by Ntropii UUID from inside a runbook step.
See Register agents for the full lifecycle.
Note the linguistic split: ntro workflow run <name> is a verb (execute the workflow). ntro run status <id> is a noun (look at the run).

The --json pattern

Write commands accept --json for complex payloads:

Output formats

MCP server

Same surface, exposed to coding agents over MCP.

Testing locally

ntro workflow test for the design-time inner loop.