Skip to content

CLI Quickstart

Install the corp binary, run your first operations locally, and optionally connect to a server.

Via Cargo:

Terminal window
cargo install corp-cli

Via npm / npx (no Rust required):

Terminal window
npx @thecorporation/corp --version

Or download a pre-built binary from the releases page and place it on your PATH.

Verify:

Terminal window
corp --version

No server, no setup — just run:

Terminal window
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:

Terminal window
corp --local form advance @last
corp --local cap-table show @last
corp --local obligations @last

If you have a corp-server running:

Terminal window
corp config set api_url http://localhost:8000
corp config set api_key <your-api-key>
corp status

Then run commands without --local:

Terminal window
corp entities
corp obligations
corp governance --entity-id <entity_id>

Add --json to any command for structured output:

Terminal window
corp --local entities --json
corp --local cap-table show @last --json
Terminal window
corp chat