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 |
--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 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 |