Bulk sync without re-keying
ht jobs sync --file work-orders.csv --upsert-by externalId --dry-runPull from spreadsheets, CRMs, ERPs, or dispatch exports. `--dry-run` previews the plan; drop it to apply. Use `--continue-on-error` for resilient runs.
Hellotracks CLI
npm · @hellotracks/ht-cliht-cli is the official Hellotracks command-line interface. Create jobs, optimize routes, sync places, manage members and webhooks, rotate API keys — from your shell, your CI runner, or an AI coding agent. Output is structured, mutations preview before they run.
ht auth loginht jobs sync --file work-orders.csv --upsert-by externalId --dry-runht routing optimize --account worker-uid --date today --solveht webhooks set --event job.updated --url https://ops.example.com/hookPlan summary
Pending mutations
For operators & engineers
Inspect, create, import, and route work from scripts, terminals, and runbooks. The CLI is shaped for repeatable operations — the kind of work nobody should be clicking through twice.
ht jobs sync --file work-orders.csv --upsert-by externalId --dry-runPull from spreadsheets, CRMs, ERPs, or dispatch exports. `--dry-run` previews the plan; drop it to apply. Use `--continue-on-error` for resilient runs.
ht routing optimize --account worker-uid --date today --solveWire it to cron at 06:00. The optimizer solves the day; dispatch starts the morning with a ready plan instead of a backlog.
ht apikeys create --label nightly-sync --source automationLabeled, sourced keys land in `ht apikeys list`. Revoke the prior one with `ht apikeys revoke <id> --yes`. CI keeps secrets out of shell history via `HELLOTRACKS_API_KEY_FILE`.
For AI coding agents
Most APIs hand agents a knife. ht-cli hands them a skill: an installable manifest, structured output, idempotent mutations, and dry-runs as the default verb. Agents reason about what they're about to do — and you keep the safety nets.
ht skills installDrops the Hellotracks `SKILL.md` into both Codex (`~/.codex/skills/hellotracks/`) and Claude Code (`~/.claude/skills/hellotracks/`). Agents discover the whole command surface without being trained on it.
--output json | yaml | csv | ndjsonEvery command supports stable machine-readable output. `--fields a,b,c` projects, `--sort -date` orders. Agents parse — they never screen-scrape.
--dry-run · --profile prod · --confirm-profile prodMutations preview before they run. Profiles isolate environments. `--confirm-profile` is a hard guard against the wrong tenant. Agents preview, then commit — not the other way around.
Real workflows
Not aspirational. These are the patterns platform engineers and dispatch leaders wire up the day they install the CLI.
A scheduled `ht jobs sync --upsert-by externalId` pulls open work-orders, creates or updates the matching jobs, and routes them to the right team — by externalId, so reruns are idempotent.
A 06:00 cron call to `ht routing optimize --account <uid> --date today --solve` hands dispatch a clean plan. No first-thing-in-the-morning routing scramble.
`ht webhooks set --event job.updated --url …` wires Hellotracks into billing, reporting, customer comms, Slack — configured once, listed with `ht webhooks list`, audited cleanly.
Weekly CI runs `ht apikeys create --label weekly --source github-actions`, swaps the secret in the vault, then `ht apikeys revoke <prior> --yes`. Labels and sources make auditors happy.
HR pushes workforce.yaml; asset systems push customers.ndjson. `ht members sync --upsert-by username` and `ht places sync --upsert-by name` reconcile — no drift, no orphaned identities.
`ht --profile production --confirm-profile production jobs sync …` fails loudly if the wrong profile is active. `ht profiles doctor` confirms each environment is healthy.
Coverage
ht-cli is built on the Hellotracks public API. The same primitives that power custom integrations become durable commands — humans, scripts, and agents share the same vocabulary.
list · get · create · update · archive · restore · delete · import · sync · export
list · get · create · update · delete · import · sync · export · columns · template
list · get · create · update · import · sync · export · columns · template
optimize · --solve · --account · --date
list · set · per-event filters
list · create · revoke · delete · labels · sources
list · create · use · doctor · --confirm-profile
auth login · logout · whoami · validate · skills install
Install
Install once, then use the same command surface from your laptop, CI runner, cron worker, or agent runtime. Auth is a single login — credentials go to your system keychain on macOS, or stay in HELLOTRACKS_API_KEY_FILE on servers.
curl -fsSL https://cli.hellotracks.org/install.sh | bashht auth loginht auth whoami && ht jobs list --date todayht skills install