Skip to main content
Use this page when you need the exact command shape. For workflow guidance, start with CLI quickstart.

Global options

These options are shown in top-level help. Some are command-specific, so use them only with the commands listed here.

Parser constraints

The CLI rejects conflicting input before contacting Custory.

Input limits

Text input must be valid UTF-8. Tool-call input must parse to a JSON object.

custory login

Synopsis:
Signs in with browser-based authentication and stores the local CLI session. Use --force to start a new login even when a valid session exists. Use --no-browser when the terminal cannot open a browser. Examples:
Related: custory status, custory logout

custory logout

Synopsis:
Signs out on this device, removes the local credential, and revokes the remote CLI session when possible. Examples:
Related: custory login

custory status

Synopsis:
Shows the signed-in user, accessible workspace count, credential store type, and latest setup status when one exists. Examples:
Related: custory login, custory workspace list, custory doctor

custory workspace list

Synopsis:
Lists the workspaces the signed-in account can access. Human-readable output includes workspace name, slug, and role. Examples:
Related: custory init, custory mcp install

custory init

Synopsis:
Creates and verifies a first customer journey. Interactive mode asks for the missing decisions. Non-interactive mode requires --workspace, --journey, and one source: --website, --brief, or --stdin. --custom is an interactive source mode. In non-interactive runs, use --brief or --stdin for private text context. Use --resume to resume the latest unfinished setup:
Examples:
Related: custory status, custory doctor

JSON examples

These examples use fictional IDs and redacted values. JSON contracts can add fields over time, so automation should ignore unknown fields and branch on stable top-level fields.

custory login --json

custory logout --json

custory status --json

custory workspace list --json

custory init --json

custory tools list --json

custory tools describe --json

custory tools call --json

custory agent run --json

custory mcp install --json

custory mcp verify --json

custory mcp uninstall --json

custory doctor --json

Error envelope

If an error is tied to onboarding, the envelope can also include phase.

custory tools list

Synopsis:
Lists Custory tools available to the signed-in account. Examples:
Related: custory tools describe, custory tools call

custory tools describe <name>

Synopsis:
Prints the schema and metadata for one Custory tool. Examples:
Related: custory tools list, custory tools call

custory tools call <name>

Synopsis:
Calls one Custory tool with a JSON object as input. If no input source is provided, the CLI sends {}. Examples:
Related: custory tools describe

custory agent run

Synopsis:
Runs a bounded Custory agent task in a workspace or journey scope. The goal can also come from --file or --stdin. Examples:
Related: custory tools list

custory mcp install

Synopsis:
Installs Custory MCP configuration for a supported client and verifies the connection. If the CLI can detect exactly one supported client, --client can be omitted. If your account has multiple workspaces, provide --workspace. Examples:
Related: custory mcp verify, custory mcp uninstall

custory mcp verify

Synopsis:
Verifies that the configured MCP client can initialize Custory, list tools, and use the workspace binding. Examples:
Related: custory doctor

custory mcp uninstall

Synopsis:
Removes the Custory MCP entry from the client configuration and revokes the stored MCP credential when installation metadata is available. Examples:
Related: custory mcp install

custory doctor

Synopsis:
Checks runtime support, Custory discovery, service reachability, local session health, workspace access, recent onboarding health, canonical URLs, and MCP binding. Use --refresh when the local session may have expired. Examples:
Related: custory status, custory mcp verify

Exit codes

Error codes

Safe support data: command name, CLI version, error code, retryable flag, onboarding phase when present, and redacted doctor output. Do not share tokens, authorization headers, private brief text, or customer data.

Doctor check codes

Next step

Read Troubleshooting if a command fails or returns an unclear error.