Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.uselim.com/llms.txt

Use this file to discover all available pages before exploring further.

CLI Overview

The lim CLI lets you manage your entire accounting workflow from the terminal. Natural language input, financial reports, bank reconciliation, and AI agent integration — all without opening a browser.

Installation

npm install -g @lim-labs/lim
Verify the installation:
lim --version
# => lim/0.1.0
For staging validation, use the private beta package instead:
lim-beta --version
lim-beta env
lim-beta auth login

Authentication

lim uses OAuth via WorkOS. Run:
lim auth login
This opens your default browser for authentication. Once you authorize, the CLI stores a token locally.
lim auth whoami
# => ✅ tsumi@uselim.com (user_01ABC...)
To log out:
lim auth logout
Tokens are stored in ~/.config/lim/credentials.json. The CLI automatically refreshes expired tokens.

Configuration

The CLI reads configuration from three sources, in order of precedence:
  1. Command-line flags — highest priority
  2. Environment variables — prefixed with LIM_
  3. Config file~/.config/lim/config.json
Environment VariableFlagDescription
LIM_API_URL--api-urlAPI base URL (default: https://api.uselim.com)
LIM_COMPANY_ID--companyActive company ID
LIM_FORMAT--formatOutput format: table, json, csv

Setting the Active Company

Most commands require a company context. Set it once:
lim companies use my-startup-inc
This writes the active company ID to your config file so you don’t need to pass --company every time.

Output Formats

All commands support three output formats:
# Human-readable table (default)
lim reports tb --from 2026-01-01 --to 2026-12-31

# JSON for piping to other tools
lim reports tb --from 2026-01-01 --to 2026-12-31 --format json

# CSV for spreadsheets
lim reports tb --from 2026-01-01 --to 2026-12-31 --format csv

Command Groups

GroupCommandsReference
Access & configauth, doctor, env/cli/auth-and-diagnostics
Core bookkeepingadd, journals, reports, companies, accounts, dashboard, stats/cli/add, /cli/journals, /cli/reports, /cli/companies, /cli/accounts, /cli/dashboard, /cli/stats
Cash conversioninvoices, payments, bank, docs/cli/invoices-and-payments, /cli/banking, /cli/documents
Migration & filingimport, export/cli/import-and-export
People opsemployees, worker-contracts, payroll, expenses, approvals, members, withholding/cli/people-and-payroll
Dispatch & labor alertsdispatch, workers/cli/dispatch-and-workers
Close & complianceclose, reopen, fx, labels, tax-codes, events/cli/periods-and-compliance
Planning & automationcontracts, assets, scenarios, accruals/cli/planning-and-automation

Global Flags

FlagDescription
--help, -hShow help for any command
--version, -VShow CLI version
--company <id>Override active company
--format <fmt>Output format: table, json, csv
--verboseShow debug output
--no-colorDisable colored output

Shell Completions

Generate shell completions for your shell:
# Bash
lim completion bash >> ~/.bashrc

# Zsh
lim completion zsh >> ~/.zshrc

# Fish
lim completion fish > ~/.config/fish/completions/lim.fish

Staging validation checklist

For the private beta package, the fastest end-to-end validation flow is:
lim-beta doctor
lim-beta auth login
lim-beta companies list
lim-beta companies use <company-id>
lim-beta accounts list
lim-beta reports tb --from 2026-01-01 --to 2026-12-31