CLI Quickstart
Install the corp binary, run your first operations locally, and optionally connect to a server.
1. Install
Section titled “1. Install”Via Cargo:
cargo install corp-cliVia npm / npx (no Rust required):
npx @thecorporation/corp --versionOr download a pre-built binary from the releases page and place it on your PATH.
Verify:
corp --version2. Form your first entity (local mode)
Section titled “2. Form your first entity (local mode)”No server, no setup — just run:
corp --local form create --name "Acme AI" --entity-type c_corp --jurisdiction DE--local stores all state locally under CORP_DATA_DIR. Omit it (or set CORP_API_URL) to use a remote server instead.
3. Continue with the same entity using @last
Section titled “3. Continue with the same entity using @last”@last refers to the most recently touched entity, so you don’t need to copy-paste IDs:
corp --local form advance @lastcorp --local cap-table show @lastcorp --local obligations @last4. Connect to a server (optional)
Section titled “4. Connect to a server (optional)”If you have a corp-server running:
corp config set api_url http://localhost:8000corp config set api_key <your-api-key>corp statusThen run commands without --local:
corp entitiescorp obligationscorp governance --entity-id <entity_id>5. Machine-readable output
Section titled “5. Machine-readable output”Add --json to any command for structured output:
corp --local entities --jsoncorp --local cap-table show @last --json6. Chat
Section titled “6. Chat”corp chat