Skip to content

Install the CLI with the installation guide. Task guides are under CLI.

Terminal window
caplo [flags]
Command Description
caplo diff Show how the project differs from the workspace drafts
caplo eval Push the selection, then run each selected agent’s eval cases against its draft
caplo init Create a project: caplo.yaml, agent files, and tool packages
caplo publish Validate, push, test, evaluate, and publish bottom up: tools, then child agents, then parents
caplo pull Write a workspace agent, its sub-agents, and their packages into a project
caplo push Create or update the workspace drafts, children first, so you can live test them
caplo test Run the selected tool packages’ fixtures locally, like caplo tool test
caplo validate Check the project offline: schemas, references, link cycles, and the depth limit
Command Description
caplo agent Build, test, evaluate, and publish one agent
caplo channel List channels and deploy agent releases to them
caplo identity Generate keys and sign or check host sign-in assertions locally
caplo knowledge Manage knowledge bases and sync their documents from a directory
caplo mcp Connect remote MCP servers and publish their reviewed tools
caplo secret Manage workspace secrets that package secrets bind to
caplo tool Build, test, publish, and run tool packages
Command Description
caplo auth Log in, log out, and show the session
caplo config Show and change CLI settings
caplo workspace List, show, create, and select workspaces
Command Description
caplo completion Generate the autocompletion script for the specified shell
caplo version Show the caplo version

These flags work with every command.

Flag Value Default Description
--workspace, -w string workspace ID or name (default: $CAPLO_WORKSPACE, else the one selected with caplo workspace use)
Variable Description
CAPLO_API_KEY Authenticate as an API client instead of the login session, for CI and automation. Create one with caplo workspace api-client.
CAPLO_WORKSPACE Workspace ID or name for every command, unless –workspace is given.
CAPLO_ENV Project environment from caplo.yaml, unless –env is given.
CAPLO_API_URL API base URL used by caplo auth login, unless –api-url is given.
CAPLO_ISSUER OpenID issuer used by caplo auth login, unless –issuer is given.
CAPLO_CONFIG_DIR Directory for the CLI configuration and session, instead of ~/.config/caplo ($XDG_CONFIG_HOME/caplo), or %AppData%\caplo on Windows.
XDG_CONFIG_HOME Base configuration directory when CAPLO_CONFIG_DIR is not set.
Code Meaning
0 Success.
1 An error: the API refused the request, a file could not be read, or the command failed.
2 A usage error: an unknown command or flag, a wrong argument, or a publish that needs –yes.
3 A failed gate: validation, tool fixtures, or eval cases did not pass.
130 Interrupted with Ctrl-C (SIGINT). A second Ctrl-C ends the process at once.
143 Terminated with SIGTERM.

Generate the autocompletion script for the specified shell.

Terminal window
caplo completion

Generate the autocompletion script for caplo for the specified shell. See each sub-command’s help for details on how to use the generated script.

Commands

Generate the autocompletion script for bash.

Terminal window
caplo completion bash

Generate the autocompletion script for the bash shell.

This script depends on the ‘bash-completion’ package. If it is not installed already, you can install it via your OS’s package manager.

To load completions in your current shell session:

Terminal window
source <(caplo completion bash)

To load completions for every new session, execute once:

Terminal window
caplo completion bash > /etc/bash_completion.d/caplo
Terminal window
caplo completion bash > $(brew --prefix)/etc/bash_completion.d/caplo

You will need to start a new shell for this setup to take effect.

Flags

Flag Value Default Description
--no-descriptions disable completion descriptions

Generate the autocompletion script for fish.

Terminal window
caplo completion fish [flags]

Generate the autocompletion script for the fish shell.

To load completions in your current shell session:

Terminal window
caplo completion fish | source

To load completions for every new session, execute once:

Terminal window
caplo completion fish > ~/.config/fish/completions/caplo.fish

You will need to start a new shell for this setup to take effect.

Flags

Flag Value Default Description
--no-descriptions disable completion descriptions

Generate the autocompletion script for powershell.

Terminal window
caplo completion powershell [flags]

Generate the autocompletion script for powershell.

To load completions in your current shell session:

Terminal window
caplo completion powershell | Out-String | Invoke-Expression

To load completions for every new session, add the output of the above command to your powershell profile.

Flags

Flag Value Default Description
--no-descriptions disable completion descriptions

Generate the autocompletion script for zsh.

Terminal window
caplo completion zsh [flags]

Generate the autocompletion script for the zsh shell.

If shell completion is not already enabled in your environment you will need to enable it. You can execute the following once:

Terminal window
echo "autoload -U compinit; compinit" >> ~/.zshrc

To load completions in your current shell session:

Terminal window
source <(caplo completion zsh)

To load completions for every new session, execute once:

Terminal window
caplo completion zsh > "${fpath[1]}/_caplo"
Terminal window
caplo completion zsh > $(brew --prefix)/share/zsh/site-functions/_caplo

You will need to start a new shell for this setup to take effect.

Flags

Flag Value Default Description
--no-descriptions disable completion descriptions

Show the caplo version.

Terminal window
caplo version [flags]

Shows the CLI version, the commit it was built from, and the Go version and platform. caplo –version prints the version alone.

Examples

Terminal window
caplo version
caplo version -o json

Flags

Flag Value Default Description
--output, -o string table output format: table, json, or yaml