Browse documentation

Get started

CLI and slash commands

Four commands you run in a terminal, and seven you type inside a Claude Code session. You will mostly only ever need setup and doctor.

Terminal commands

Each of these runs a fresh copy, so they work even when an existing install is broken.

  • setup installs everything and signs you in. Safe to re-run.
  • auth signs you in again, on its own. Use it if your token expired or you switched account.
  • update updates the CLI and the plugin to the current release.
  • doctor checks your install and prints what it found.
npx -y @lineman-io/cli@latest setup
npx -y @lineman-io/cli@latest auth
npx -y @lineman-io/cli@latest update
npx -y @lineman-io/cli@latest doctor

Installing the command permanently

If you would rather type lineman than the full command each time, install it globally.

npm i -g @lineman-io/cli@latest

Inside a Claude Code session

These work in any session with the plugin installed.

  • /lineman:auth sign in, or switch account
  • /lineman:doctor the same checklist, without leaving your session
  • /lineman:stats what Lineman has saved you so far
  • /lineman:upgrade what your plan includes, and what a higher one would add
  • /lineman:lineman how to run a supervised session
  • /lineman:statusline turn the savings statusline on or off
  • /lineman:telemetry see or change what usage data is sent

Settings and overrides

Settings live in ~/.lineman/config.json. You can override them per session with environment variables, which is mainly useful in CI.

  • LINEMAN_API_TOKEN signs in without a browser. This is what you set in CI.
  • LINEMAN_TELEMETRY turns usage reporting off.

An environment variable always wins over the config file, and is never written back to it.