Installation
Global Options
These options apply to every command:| Flag | Description |
|---|---|
--json | Output as JSON instead of a table |
--workspace <id> | Override the active workspace ID |
--api-key <key> | Override the API key |
--session-token <token> | Override the session token |
--api-url <url> | Override the API base URL |
--request-id <id> | Attach a request ID for tracing |
--idempotency-key <key> | Idempotency key to prevent duplicate mutations |
Output Modes
Table (default)
Human-readable table output. Column widths are fixed for consistent formatting.JSON
Machine-readable JSON output. Use--json with any command.
Exit Codes
| Code | Meaning |
|---|---|
0 | Success |
1 | General error |
2 | Validation error (invalid input) |
3 | Authentication error (missing or invalid credentials) |
4 | Not found |
5 | Rate limited |
Configuration
The CLI stores configuration at~/.moss/config.json:
moss auth login and can be overridden per-command with --api-key and --workspace.
Command Groups
| Group | Description |
|---|---|
auth | Login, logout, and identity |
workspace | Manage workspaces and invites |
key | Manage API keys |
contact | Manage contacts |
company | Manage companies |
deal | Manage deals and deal-contact links |
interaction | Log and view interactions |
followup | Manage follow-ups |
commitment | Manage commitments |
tag | Manage tags |
custom-field | Manage custom field definitions |
pipeline | View pipeline summary |
search | Full-text search |
activity | View activity timelines |
webhook | Manage webhooks |
import / export | Bulk data import and export |
notification | Notification preferences |
audit | View audit logs |
queue | Dead letter queue management |