Skip to main content
The Outlit CLI gives you direct access to structured customer context from the terminal. List customers, inspect activity timelines, search conversations and facts, run SQL queries, and install Outlit skills for coding agents without leaving your workflow.

Installation

Fastest path:
Alternative install methods:
Verify the installation:

Quick Start

1

Get your API key

Go to Settings > API Keys in the Outlit dashboard. Create an API key, copy it, and keep it safe.
Treat your API key like a password. It grants read access to your customer data. You can revoke keys at any time from the dashboard.
2

Authenticate

The CLI will prompt you to enter your API key. It validates the key against the API and stores it securely at ~/.config/outlit/credentials.json with 0600 permissions.You can also pass the key directly:
3

Query your data

4

Set up AI agents (optional)

Install the outlit skill for detected coding agents with one command:
Or target a specific coding agent:
For MCP clients like Cursor or VS Code, use the direct MCP Integration guide instead.

Authentication

The CLI resolves your API key from the following sources, in order:

Auth Commands

auth status makes a live API call to validate your key:
auth whoami validates your key and outputs a single line in TTY mode — useful for scripting:

Available Commands

Updates

In interactive terminals, the CLI checks for newer published versions using a local cache so normal commands stay fast. When an update is available, it prints a short notice to stderr and continues.
outlit upgrade tries to use the same package manager that installed the CLI, such as Bun, npm, pnpm, or Yarn. Set OUTLIT_NO_UPDATE_NOTIFIER=1 to suppress automatic notices.

Output Modes

The CLI has two output modes: interactive (tables, spinners, colors) and JSON (machine-readable). JSON mode activates automatically when:
  • stdout is piped (outlit customers list | jq)
  • --json flag is passed
  • Running in CI (CI=true or GITHUB_ACTIONS is set)
  • Terminal is dumb (TERM=dumb)
AI agents like Claude Code and Cursor run commands with piped stdout, so they automatically receive JSON output — no --json flag needed.

What’s Next

Commands

Full reference for all data commands

AI Agents

Install Outlit skills for Claude Code, Codex, Gemini CLI, Droid, OpenCode, Pi, OpenClaw, and more

Platform Actions

Inspect and safely prepare platform configuration through API, CLI, and MCP

Configuration

Environment variables and config paths