Commands
Run a command aspitboard <command>. The following table lists each <command> in the order of pitboard --help.
pitboard --help does not list manpage.
Default command
pitboard with no command runs pitboard status, and pitboard --json runs pitboard status --json.
--offline and --fresh belong to status, so they need its name: pitboard status --offline.
Global options
--json goes before or after the command: pitboard --json use work and pitboard use work --json are the same. For the fields of that JSON, see JSON output.
Every command except help takes --help, and pitboard help <command> also prints a command’s help. pitboard --version prints the version, and no command takes --version.
pitboard refuses a mistyped option or an extra word, as in pitboard status --verbose or pitboard status work, and exits with status 2.
Labels
A label names one account within its tool.work is a Claude Code account and codex/work is an account of OpenAI’s Codex CLI, so both tools can have a work.
- A label can start with a tool prefix,
claude/orcodex/, in lower case.claude/workalways names the Claude Code accountwork. - Labels are compared exactly:
Workandworkare different labels. - A label is one word, with no spaces or control characters. Other characters, such as
éor工, are allowed. The only/in a label is the one after the prefix.
pitboard enrollreads a bare label as Claude Code. A Codex account needs the prefix, as incodex/work.pitboard use,pitboard forgetand the first label ofpitboard renamelook for a bare label in both tools. If both tools have it, the command fails and lists both labels with their prefix.
pitboard rename keeps an account in its tool: pitboard rename codex/work job gives codex/job.
pitboard’s messages write a label the way a command takes it: work for Claude Code, codex/work for Codex, and claude/work where both tools have a work.
pitboard refuses a label that breaks a rule, with one of these messages:
Output
A command prints its result on standard output. Errors go to standard error aserror: <message>, and warnings as warning: <message>.
With --json, pitboard prints one line of JSON on standard output, with any error or warning inside it. --help and --version print plain text even with --json. pitboard enroll --sign-in also writes to standard error: the line that starts Opening, and the tool’s own sign-in text.
pitboard colours output that goes to a terminal, unless NO_COLOR is set and not empty. Output to a file or a pipe has no colour, and JSON output never has any.
pitboard statusline keeps its colour through a pipe, because Claude Code reads the line from a pipe and draws those colours. Setting NO_COLOR, even to an empty value, turns that colour off.
pitboard forget and pitboard uninstall print a question on standard error before they delete anything. They ask only when standard input and standard error are both terminals, and neither --yes nor --json is given. They go ahead on y, Y or yes.
Exit codes
Declining the question from
pitboard forget or pitboard uninstall prints nothing more, changes nothing and exits 0.
For the exit status of each error code, see Error and warning codes.