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
- pip (production)
- Editable (local dev)
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:| Flag | Description |
|---|---|
-c, --connection NAME | Connection from config.toml (env: NTRO_DEFAULT_CONNECTION_NAME) |
--host URL | Override the API host (env: NTRO_HOST) |
-o, --output FORMAT | text (default — Rich tables) or json |
--debug | Enable debug logging |
--log-level LEVEL | DEBUG, INFO, WARN, ERROR |
Command groups
ntro auth — connections and identity
ntro auth — connections and identity
ntro integration — data platforms (BYO only)
ntro integration — data platforms (BYO only)
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.ntro tenant — clients
ntro tenant — clients
Every tenant must declare its data-platform strategy at creation. Required values: The CLI fails fast when
managed-postgres, snowflake, or microsoft-fabric.--data-platform-config is set with managed-postgres, or missing with a BYO platform. The API enforces the same checks server-side.ntro entity — SPVs and funds
ntro entity — SPVs and funds
--tenant flag → NTRO_TENANT env var → default_tenant in config.ntro workflow — deploy runbooks, bind to entities, run
ntro workflow — deploy runbooks, bind to entities, run
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.ntro runbook — list and inspect runbook templates
ntro runbook — list and inspect runbook templates
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.ntro agent — register and inspect external agents
ntro agent — register and inspect external agents
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.
ntro run — inspect executions
ntro run — inspect executions
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
Related
MCP server
Same surface, exposed to coding agents over MCP.
Testing locally
ntro workflow test for the design-time inner loop.