Skip to main content

Sanka CLI

Thin command-line wrapper for Sanka's public CRM and AI API.

The CLI keeps business logic on the server. It handles:

  • Developer API token auth and refresh
  • local profile and config management
  • request construction for CRM, workflow, and AI endpoints
  • table or JSON output
  • polling for long-running workflow runs

Install

From PyPI:

uv tool install sanka-cli

Bootstrap script from a pinned release tag:

curl -fsSLO https://raw.githubusercontent.com/sankaHQ/sanka-cli/v0.1.3/scripts/install.sh
sh install.sh

From a pinned GitHub release tag:

uv tool install "git+https://github.com/sankaHQ/sanka-cli.git@v0.1.3"

Homebrew support is published through sankaHQ/homebrew-cli. Install with:

brew tap sankaHQ/cli
brew install sankaHQ/cli/sanka

If you previously installed sanka from the old sankaHQ/tap tap (sankaHQ/homebrew-tap), remove that formula and untap it first:

brew uninstall sanka
brew untap sankaHQ/tap
brew tap sankaHQ/cli
brew install sankaHQ/cli/sanka

Authenticate

Create a Developer API Token in Sanka, then save it locally. Login verifies the token against the API and prints the workspace and user it belongs to; a rejected token is not saved. If the API is unreachable, the token is saved with a warning so offline setup still works.

sanka auth login --access-token "<ACCESS_TOKEN>"

Check the active profile:

sanka auth status

Command Areas

CRM records:

sanka companies list
sanka contacts get <contact-id>
sanka deals create --data @deal.json
sanka tickets delete <ticket-id>

Workflow automation:

sanka workflows list
sanka workflows run <workflow-ref>
sanka workflows run <workflow-ref> --wait

Custom Code — write a workflow action in JavaScript or Python, keep it in your own repository, and push versions to Sanka:

sanka code init --slug enrich-company --runtime node
sanka code create
sanka code push --activate -m "add tier logic"

Your repository is the source of truth. Versions are immutable and content-addressed, so pushing unchanged code returns the version that already exists — safe to run on every CI merge. Rolling back is a pointer move, not a redeploy:

sanka code versions enrich-company
sanka code rollback enrich-company          # or: deploy --version 4

pull writes a deployed version back to disk and diff reports whether your working directory matches what is live. diff exits non-zero when they differ, which makes it usable as a CI drift check:

sanka code pull enrich-company --dir ./functions/enrich
sanka code diff --dir ./functions/enrich

Secrets are per-function and never readable back — list shows only a masked suffix:

sanka code secrets set enrich-company CLEARBIT_API_KEY   # prompts, no echo
sanka code secrets list enrich-company

Files are excluded from a push by .sankaignore; .git, node_modules, __pycache__, .venv, build output, and .env are excluded by default.

AI helpers:

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

Output Modes

The CLI defaults to table output on a TTY and JSON otherwise. Override this per command when needed:

sanka --output json companies list

Environment Overrides

  • SANKA_PROFILE
  • SANKA_BASE_URL
  • SANKA_ACCESS_TOKEN

These override stored profile values without persisting them.

Docs

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sanka_cli-0.1.5.tar.gz (52.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sanka_cli-0.1.5-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file sanka_cli-0.1.5.tar.gz.

File metadata

  • Download URL: sanka_cli-0.1.5.tar.gz
  • Upload date:
  • Size: 52.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for sanka_cli-0.1.5.tar.gz
Algorithm Hash digest
SHA256 d04b2f9c34ecc0880da68c6278b696f56532de843ae90c5146d4a1a04a40965f
MD5 470fabdfc5ea4d0a5a8a08548481a340
BLAKE2b-256 c654a1b05e20e33f3e334a52abc41e451228f67ac42047bac3bb24e97d520b4e

See more details on using hashes here.

Provenance

The following attestation bundles were made for sanka_cli-0.1.5.tar.gz:

Publisher: release.yml on sankaHQ/sanka-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sanka_cli-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: sanka_cli-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 24.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for sanka_cli-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0fc046a952848974543ae7ca2fa66c22f1c57b4c719fb9f2d70dc54ea0bd30d8
MD5 c3e5a90fa64a99b1d6de6e707cf42147
BLAKE2b-256 480152c524d6e8456707e3220a51e94ab1f9d79f9d128fab7df5ee48d0abe9ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for sanka_cli-0.1.5-py3-none-any.whl:

Publisher: release.yml on sankaHQ/sanka-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

This release

0.1.5 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page