For the complete documentation index, see llms.txt. This page is also available as Markdown.

Reference

Technical reference for Kick CLI credentials, workspace selection, command discovery, output modes, JSON parsing, scheduling, and exit codes.

Use this page when you need exact CLI behavior for credentials, workspace selection, output formats, exit codes, or finding current commands.

Find all commands

The CLI's built-in help is the source of truth for the current command list and flags.

Start at the root:

kick --help

Then inspect a command group:

kick transactions --help
kick reports --help

For command-specific flags, run --help on the command:

kick reports profit-loss --help
kick transactions find --help

This avoids stale docs when commands or flags change.

Credential lookup order

The CLI resolves credentials in this order:

  1. --token <value>

  2. KICK_PAT

  3. KICK_API_TOKEN

  4. OS keychain from kick login

  5. ~/.config/kick/credentials

KICK_API_TOKEN is the older environment variable name. Prefer KICK_PAT.

Workspace selection

List workspaces:

Run a command in a workspace:

If you work across multiple clients, pass --workspace explicitly. This is safer than relying on a remembered default.

Common command examples

These examples are not a complete command list. Use kick --help and command-specific --help output for the current list.

Authentication and context. kick login stores a token and kick logout removes it (write); kick whoami and kick auth status only read:

Workspace lookup (read):

Transaction lookup (read):

Reports (read). Each report needs --entity, --ledger-id, --start-date, and --end-date:

A report uses the basis of the ledger you pass: a Cash ledger id gives a cash-basis report, and an Accrual ledger id gives an accrual-basis report. To get an entity's Cash ledger id (read):

To list every ledger in a workspace, Cash and Accrual, with its entityId and basis (read):

Activity (read):

Output modes

  • --output auto - table in a terminal, structured output when piped.

  • --output table - human-readable table.

  • --output json - formatted JSON.

  • --output json-compact - compact JSON for scripts and agent contexts.

  • --output yaml - YAML.

Data goes to stdout. Diagnostics, progress messages, and errors go to stderr.

For examples, see Kick CLI use case library.

Page through results

kick transactions find returns 25 rows by default and at most 100 per call. When more rows match, it writes a next-page hint to stderr, for example More results available (240 total). Next page: kick transactions find --cursor 2. The cursor is a page number that starts at 1. A script that counts, totals, or exports transactions must read every page, or its results cover only the first page.

To collect every matching transaction as one JSON array (read), add this function to your script after setting WORKSPACE_ID. It requests 100 rows at a time and stops after a page with fewer than 100 rows:

Pass any transactions find flags; the function sets --limit, --cursor, and --output itself. It ignores the next-page hint that transactions find still prints to stderr for each full page.

kick workspaces list and kick activity list also return 25 rows by default and print a next-page hint to stderr. Rerun the command with the same flags plus the --cursor value from the hint.

Parse JSON output

Most lookup commands accept --output json or --output json-compact for parsing with jq. With --output json, transactions find returns only the fields you list in --fields. Without --fields, it returns date, amount, counterparty, description, bank_description, and id.

These examples use find_all_transactions from Page through results, so they cover every matching transaction:

Get transaction count by category (read):

Find largest transactions (read):

Calculate average amount by counterparty (read):

Diagnostics and errors go to stderr, so you can pipe stdout safely:

Schedule scripts

Run read-only lookup scripts with cron (Linux/Mac):

For Windows, use Task Scheduler.

Review write commands manually before scheduling them. Commands that change data require preview confirmation and should not run unattended unless your firm has approved that workflow.

Exit codes

  • 0 - success

  • 1 - generic failure

  • 2 - usage error

  • 3 - network error

  • 4 - authentication or authorization error

  • 5 - not found

  • 6 - rate limited

  • 130 - interrupted

Confirm write commands

Write commands are preview-first. The first run changes nothing and prints a preview with a confirmation token:

Review the preview, then run the same command again with --confirmation-token to apply the change (write):

  • The token expires 45 minutes after the preview.

  • The token only confirms the exact input it was issued for. If you change the payload, an id, or any other value, the CLI rejects the token. Run the preview again to get a new one.

  • Most write commands have no flag that skips the preview. The exceptions are kick activity revert and kick organization-clients create: they take --confirm <token> instead of --confirmation-token, and --yes confirms the preview in the same run.

Do not automate confirmation unless the workflow has been reviewed and approved by your firm.

Safety reminders

  • Use read-only commands for lookup and reporting.

  • Use write commands only when the workflow needs them.

  • Keep PATs out of source control and shared docs.

  • Confirm workspace and entity IDs before running commands on client data.

  • Treat generated output as a draft until an accountant reviews it.

Last updated

Was this helpful?