Skip to main content

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

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 <company-id>
This writes the 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

CommandDescription
lim addNatural language journal entry
lim journalsList, show, create, reverse journal entries
lim reportsFinancial reports (TB, P&L, BS, CF, etc.)
lim companiesCompany management
lim accountsChart of accounts
lim statsLearning engine metrics and dashboard
lim authAuthentication (login, logout, whoami)
lim importImport from freee, MF, Yayoi, Bugyo, QuickBooks, Xero
lim mcpMCP server management
lim skillsClaude Code skills registration

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