This page documents the currently implemented CLI entrypoints. The main user workflow is the TUI; use this page as a supporting reference.
usage: codelia [options] [-- <tui-options>]
| Option | Meaning |
|---|---|
-h, --help |
Show top-level help |
-V, -v, --version |
Show the CLI version |
-p, --prompt <text> |
Run one headless prompt and exit |
| `--approval-mode <minimal | trusted |
These flags are passed through to the TUI launcher:
| Option | Meaning |
|---|---|
-r, --resume [session_id] |
Resume through the latest/session picker flow, or resume a specific session id |
| `--debug[=true | false]` |
| `--diagnostics[=true | false]` |
--initial-message <text> |
Queue an initial prompt |
--initial-user-message <text> |
Alias of --initial-message |
| `--debug-perf[=true | false]` |
| `--approval-mode <minimal | trusted |
Examples:
codelia
codelia --resume
codelia --resume 2026-03-07-example-session
codelia --initial-message "Review the latest changes"
codelia --diagnostics --approval-mode trustedRun a single headless request:
codelia --prompt "Summarize the current branch"Prompt mode also accepts --approval-mode.
The MCP command group currently supports config management and auth token management.
codelia mcp <add|list|remove|enable|disable|test|auth> ...
List configured servers.
codelia mcp list
codelia mcp list --scope effective
codelia mcp list --scope project
codelia mcp list --scope globalSupported scopes:
effective(default)projectglobal
Add or replace an MCP server config.
codelia mcp add <server-id> --transport <http|stdio> ...
Common flags:
--scope <project|global>--replace--enabled true|false--request-timeout-ms <ms>
HTTP transport flags:
- The CLI/config value is
http; the current implementation behind it is Streamable HTTP. --url <url>--header key=value(repeatable)--oauth-authorization-url <url>--oauth-token-url <url>--oauth-registration-url <url>--oauth-client-id <value>--oauth-client-secret <value>--oauth-scope <value>
stdio transport flags:
--command <path-or-command>--arg <value>(repeatable)--cwd <path>--env key=value(repeatable)
Examples:
codelia mcp add local-demo --transport stdio --command uvx --arg my-mcp
codelia mcp add remote-demo --transport http --url https://example.com/mcp --scope globalcodelia mcp remove <server-id> [--scope project|global]
codelia mcp enable <server-id> [--scope project|global]
codelia mcp disable <server-id> [--scope project|global]
Probe a configured MCP server.
codelia mcp test <server-id> [--scope effective|project|global]
If a stored auth token exists for an HTTP server, the test command adds a bearer token automatically.
Manage MCP auth tokens stored in the local auth file.
codelia mcp auth <list|set|clear> ...
Commands:
codelia mcp auth list
codelia mcp auth set <server-id> --access-token <token> [--refresh-token <token>] [--expires-at <epoch_ms>] [--expires-in <sec>] [--scope <scope>] [--token-type <type>]
codelia mcp auth clear <server-id>
- Getting started:
../getting-started.md - Config reference:
config.md - Environment variables:
env-vars.md - User docs index:
../README.md - Developer/internal docs:
../../dev-docs/README.md