Install and use the official command-line tool for Sanka’s public CRM and AI APIs: auth, profiles, records, workflows, and AI helpers.
uv tool install "git+https://github.com/sankaHQ/sanka-cli.git"
Bootstrap script:curl -fsSL https://raw.githubusercontent.com/sankaHQ/sanka-cli/main/scripts/install.sh | sh
The script tries PyPI first and falls back to the GitHub repo if the package is not published yet.After the first PyPI release:uv tool install sanka-cli
Homebrew (published tap: sankaHQ/homebrew-cli):brew tap sankaHQ/cli
brew install sankaHQ/cli/sanka
For local development from a checkout:uv tool install .
sanka auth login --access-token "<ACCESS_TOKEN>" --refresh-token "<REFRESH_TOKEN>"
Check the active profile and session:sanka auth status
Clear stored tokens for a profile:sanka auth logout
sanka profiles list
sanka profiles use prod
list, get, create, update, and delete. Pass JSON inline or from a file with @path/to/file.json.sanka companies list
sanka companies get <company-id>
sanka contacts get <contact-id>
sanka deals create --data @deal.json
sanka tickets delete <ticket-id>
get, update, and delete accept --external-id when resolving by external id.sanka workflows list
sanka workflows get <workflow-ref>
sanka workflows run <workflow-ref>
sanka workflows run <workflow-ref> --wait
Use --wait to poll until the run finishes (with --poll-interval and --timeout as needed).sanka ai score company <record-id>
sanka ai score deal <record-id> --score-model-id <score-model-id>
sanka ai enrich company <record-id> --force-refresh
sanka ai enrich company --seed-name "Acme" --seed-url "https://acme.example" --dry-run
When using seed fields instead of a record id, --dry-run is required.--profile — profile name--base-url — override API base URL for the command--output table|json — output formatsanka --output json companies list
SANKA_PROFILESANKA_BASE_URL (default API base is https://api.sanka.com when not set in config)SANKA_ACCESS_TOKENSANKA_REFRESH_TOKENdocs/