CLI Reference
Full documentation for thetreeship command-line tool.
Installation
Configuration
Environment Variables
Config File
Commands
treeship attest
Create a cryptographic attestation.| Option | Description | Required |
|---|---|---|
--action <text> | Description of the action | Yes |
--inputs-hash <hash> | SHA256 hash of inputs | Yes |
--agent <slug> | Agent slug (or use TREESHIP_AGENT) | No |
--public | Make attestation public (default) | No |
--private | Make attestation private | No |
--zk | Enable ZK proof for privacy | No |
--tools <tools...> | Tools used in this action | No |
--human-approved | Mark as human-approved | No |
--approver <hash> | Hash of approver identity | No |
--json | Output as JSON | No |
--quiet | Output only the verification URL | No |
treeship verify
Verify an attestation by ID.| Option | Description |
|---|---|
--json | Output as JSON |
--quiet | Output only “valid” or “invalid” |
treeship whoami
Show current configuration.treeship identity
Manage agent identity and verification.identity register
Register or update agent identity.| Option | Description | Required |
|---|---|---|
--agent <slug> | Agent slug | Yes |
--name <name> | Human-readable name | No |
--description <text> | Agent description | No |
--code-hash <hash> | SHA256 of agent code | No |
--model-id <id> | AI model identifier | No |
--domain <domain> | Domain to verify | No |
--public-key <file> | Path to Ed25519 public key | No |
--json | Output as JSON | No |
identity info
Get agent identity information.identity set-tools
Set authorized tools for an agent.identity verify-tools
Verify tools are authorized.treeship config
Manage CLI configuration.| Key | Description |
|---|---|
api-key | API key for authentication |
api-url | API base URL |
default-agent | Default agent slug |
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Error or verification failed |