Overview
Sanka CLI is a thin command-line wrapper around Sanka’s public APIs. Business logic stays on the server; the CLI handles token storage and refresh, profile and config, building requests for CRM and workflow endpoints, table or JSON output, and optional polling for long-running workflow runs.Install
From GitHub (recommended until the first PyPI release):sankaHQ/homebrew-cli):Authenticate
Create a Developer API access token and refresh token in Sanka, then save them locally (tokens are stored in the system keychain when available):Profiles
List configured profiles and switch the active profile:CRM records
The CLI exposes companies, contacts, deals, and tickets withlist, get, create, update, and delete. Pass JSON inline or from a file with @path/to/file.json.get, update, and delete accept --external-id when resolving by external id.Workflows
--wait to poll until the run finishes (with --poll-interval and --timeout as needed).AI helpers
--dry-run is required.Global options and output
Top-level options:--profile— profile name--base-url— override API base URL for the command--output table|json— output format
Environment overrides
These override stored profile values without persisting them:SANKA_PROFILESANKA_BASE_URL(default API base ishttps://api.sanka.comwhen not set in config)SANKA_ACCESS_TOKENSANKA_REFRESH_TOKEN
Source and docs
- Repository: github.com/sankaHQ/sanka-cli
- Upstream docs in the repo: install, commands, and release notes under
docs/