1. Install
npx @cargo-ai/cli instead of cargo-ai.
2. Authenticate
Log in with your API token (create one under Settings > API in your Cargo workspace):CARGO_WORKSPACE_UUID environment variable — otherwise commands run against the token’s default workspace.
Verify:
3. Scaffold a workspace
cdk init writes a starter project (pass --template full for the complete, wired example described in Project layout). The blank default gives you a single cargo.ts with one AI-powered tool — it needs no third-party API keys, so you can deploy and run it with nothing but your Cargo login:
cargo.ts
4. Generate types (optional but recommended)
uses.<key>.<action> action registry into .cargo-ai/, so your editor autocompletes real action slugs.
5. Plan and deploy
deploy applies in dependency order and records each resource’s real uuid in cargo.state.json. Commit that file — the next deploy only changes what changed.
6. Run your tool
7. Wire a real data source (optional)
Connectors bring your CRM, warehouse, and enrichment providers into the same file — for example HubSpot, using a private-app token kept out of git withsecret():
cargo.ts
Next steps
Project layout
How the loader turns a folder of files into a workspace.
CLI, CDK & Skills
The three ways to drive Cargo — and when to reach for each.
Connectors
Link your CRM, warehouse, enrichment, and AI providers.
Deploying
plan, deploy, prune, refresh, import, and destroy.
CLI
Run tools, trigger plays, and query your data from the terminal.

