Codi command reference
Codi uses singular resources and consistent verbs:
codi [global-options] <resource> <verb> [identifier] [options]
Options may appear before or after positional arguments. Use codi help, codi help <resource>, or codi <resource> <verb> --help to read contextual help from the installed client.
Global options
| Option | Behavior |
|---|---|
|
Use a local profile without changing the active profile. |
|
Use a workspace for one command without changing the workspace stored in the profile. |
|
Select human-readable tables or machine-readable JSON. The default is |
|
Print identifiers or other minimal values where the command supports it. |
|
Disable terminal colors. |
|
Override the request timeout with a value from 1 to 300 seconds. |
|
Show help for the selected command or command group. |
codi --version is an alias for codi version.
Environment variables
| Variable | Default | Behavior |
|---|---|---|
|
Select the server when no stored profile overrides it. |
|
|
Unset |
Authenticate without reading a locally stored profile token. Use this for CI, with a personal access token created by |
|
|
Set the default request timeout from 1 to 300 seconds. |
|
|
Allow an |
|
Select the release server read by |
Server URLs must contain only a scheme and authority. HTTPS is required unless insecure HTTP is explicitly enabled.
Client, status, authentication, and profiles
codi help
codi help <command-group>
codi version
codi completion <bash|zsh|fish>
codi status [--server <url>]
codi update check [--release-server <url>] [--manifest-path <path>]
codi auth login [--email <email>] [--server <url>] [--password-stdin]
codi auth signup [--name <name>] [--email <email>] [--handle <handle>] \
[--server <url>] [--password-stdin]
codi auth logout
codi auth whoami
codi token list
codi token create <name> [--scope <read|write>] [--expires-days <days>] \
[--save-profile <profile>]
codi token revoke <token> [--yes]
codi profile list
codi profile use <name>
codi profile show
codi profile create <name> --server <url>
codi profile delete <name> [--yes]
status does not require authentication. It reports the server as available whenever the server answers with an HTTP status below 500, and exits with code 1 otherwise.
update check compares the installed client with the latest published release and reports whether an update is available, together with the download URL and SHA-256 digest of the package for the current platform. It does not install anything. By default it reads /codi/latest.json from https://downloads.codinamo.com; with --quiet it prints only the latest version.
auth login without options opens the browser to complete the login. With --email, it reads the password without echo instead; --password-stdin requires --email. auth signup prompts for missing account fields and password. With --password-stdin, the password is read from standard input.
token commands manage personal access tokens: long-lived credentials for scripts, CI, and tools that cannot complete a browser login. token create uses the write scope and a 90-day lifetime unless told otherwise; --scope read creates a token that can only read, and --expires-days accepts 1 to 365. The token value is printed once. With --save-profile, Codi stores the value in the named profile instead of printing it, creating that profile for the same server and workspace when it does not exist. token revoke accepts the token ID or its name.
Token commands require a regular sign-in: a personal access token cannot list, create, or revoke tokens. An account holds at most 20 active tokens.
auth logout removes the credential for the selected profile. profile delete removes the profile, its workspace selection, and its stored credential.
Workspaces, organizations, and teams
codi workspace list
codi workspace create <name> [--slug <slug>]
codi workspace use <id|slug>
codi workspace current
codi workspace rename <id|slug> <name>
codi organization list
codi organization show <organization>
codi organization create <name> [--slug <slug>]
codi organization rename <organization> <name>
codi team list --organization <organization>
codi team show <team> --organization <organization>
codi team create <name> --organization <organization> [--slug <slug>]
codi team rename <team> <name> --organization <organization>
codi team member list <team> --organization <organization>
codi team member add <team> --organization <organization> --email <email>
codi team member remove <team> <member> --organization <organization> [--yes]
Organization selectors accept a canonical ID, unique name, or slug. Team selectors accept a canonical ID, unique name, or slug inside the selected organization. A team member may be selected by user ID, email, handle, or unique name.
Access, roles, and grants
codi access catalog
codi access capabilities [--resource <type:id>]
codi access decision --permission <code> --resource <type:id>
codi role list --organization <organization>
codi role show <role> --organization <organization>
codi role preview --organization <organization> --file <role.json>
codi role create <name> --organization <organization> --file <role.json>
codi role update <role> --organization <organization> --file <role.json>
codi role duplicate <role> <name> --organization <organization> \
[--description <text>]
codi role delete <role> --organization <organization> [--yes]
codi grant list --organization <organization> [--scope <type:id>]
codi grant create --organization <organization> --file <grant.json>
codi grant update <grant> --organization <organization> --file <grant.json>
codi grant revoke <grant> --organization <organization> [--yes]
codi grant effective --organization <organization> \
--principal <user|team:id> --resource <type:id>
codi grant principals --organization <organization> [--query <text>]
Resource and principal references use TYPE:ID. Type matching is case-insensitive.
A role definition is a JSON object with permissions and assignableScopeTypes arrays. name, description, and expectedVersion are optional where applicable:
{
"description": "Can operate project pipelines",
"permissions": ["pipeline.read", "pipeline.run"],
"assignableScopeTypes": ["PROJECT"],
"expectedVersion": 3
}
A grant definition identifies its principal, role, and scope. expiresAt and expectedRevision are optional:
{
"principalType": "TEAM",
"principalId": "TEA-123",
"roleId": "ARO-456",
"scopeType": "PROJECT",
"scopeId": "PRO-789",
"expiresAt": null,
"expectedRevision": 2
}
Role selectors accept an ID, system code, or unique name. Grant selectors use the canonical grant ID. Pass - to --file to read a role or grant definition from standard input.
Projects, repositories, and actions
codi project list
codi project show <project>
codi project events <project> [--type <push|pull_request|schedule>] [--level <info|warning|error>] \
[--limit <n>] [--before <event>]
codi project create <name> [--git]
codi project update <project> [--name <name>] [--description <text>] \
[--require-pull-request <true|false>] \
[--require-raico-findings-resolved <true|false>]
codi project delete <project> [--yes]
codi repository show <project>
codi repository enable <project>
codi repository tree <project> [--path <path>]
codi repository branch list <project>
codi repository branch update <project> <branch> --validation-pipeline <pipeline|none> \
[--require-success <true|false>]
codi action list [--category <category>]
codi action show <action-code>
Project selectors accept a canonical ID or unique name. Actions may be selected by code or unique display name.
project update requires at least one option and changes only the settings supplied. --require-pull-request and --require-raico-findings-resolved accept true or false. The pipeline that validates pull requests is chosen per branch with repository branch update: --validation-pipeline takes a pipeline that declares pullRequest: {}, or none to remove the validation, and --require-success false shows the result without blocking the merge.
Registry
codi registry show <project>
codi registry enable <project>
codi registry update <project> [--visibility <private|public>] \
[--quota-policy <DELETE_OLDER_IMAGES|BLOCK>] [--quota-gb <gigabytes>]
codi registry repositories <project>
codi registry cleanup <project> [--keep <images>] [--apply] [--yes]
codi registry disable <project> [--yes]
codi registry token list <project>
codi registry token create <project> <name> \
--permissions <pull[,push]> [--expires-at <instant>]
codi registry token revoke <project> <token> [--yes]
registry update requires at least one option and changes only the settings supplied. --quota-policy selects what happens when the Registry exceeds its quota: DELETE_OLDER_IMAGES or BLOCK. --quota-gb sets the quota in gigabytes and accepts a number greater than zero, such as 20 or 0.5.
registry cleanup is a dry run by default: it reports the images that would be deleted and the resulting storage usage without changing anything. It keeps the newest --keep images of each repository (default 5, from 1 to 10000) and the images in use by deployed releases. Add --apply to delete the reported images; Codi asks for confirmation unless --yes is present.
Registry token selectors accept the token ID or unique name. token create returns the secret once; subsequent list operations return metadata only.
Pipelines, pull requests, and runs
codi pipeline list [--project <project>]
codi pipeline show <pipeline>
codi pipeline events <pipeline> [--type <push|pull_request|schedule>] [--level <info|warning|error>] \
[--limit <n>] [--before <event>]
codi pipeline create <name> --project <project>
codi pipeline validate --file <pipeline.ice>
codi pipeline update <pipeline> --file <pipeline.ice> [--message <text>]
codi pipeline update <pipeline> --file <pipeline.ice> --pr \
[--title <text>] [--description <text>] [--branch <branch>]
codi pipeline update <pipeline> --file <pipeline.ice> \
--pull-request <pull-request> [--message <text>]
codi pipeline export <pipeline> [--file <path>]
codi pipeline run <pipeline> [--branch <branch>] [--commit <sha>] [--follow]
codi pipeline configure <pipeline> [--runner <runner>] \
[--continue-on-error <true|false>]
codi pipeline attach-secret-group <pipeline> <secret-group>
codi pipeline detach-secret-group <pipeline>
codi pipeline attach-variable-group <pipeline> <variable-group>
codi pipeline detach-variable-group <pipeline>
codi pipeline delete <pipeline> [--yes]
codi pipeline schedule list <pipeline>
codi pipeline schedule set <pipeline> <schedule> [--cron <expression>] [--timezone <zone>] \
[--branch <branch>] [--variables <group>] [--secrets <group>]
codi pipeline schedule assign <pipeline> <schedule> --account <account|none>
codi pipeline schedule confirm <pipeline> <schedule>
codi pipeline schedule remove <pipeline> <schedule> [--yes]
codi scheduler-account list
codi scheduler-account create <name> [--description <text>]
codi scheduler-account update <account> [--name <name>] [--description <text>]
codi scheduler-account delete <account> [--yes]
codi pr list --project <project> [--status <open|merged|closed>]
codi pr show <pull-request>
codi pr merge <pull-request> [--message <text>]
codi pr close <pull-request>
codi run list [--pipeline <pipeline>]
codi run show <run>
codi run logs <run> [--follow]
codi run reports <run>
codi run cancel <run>
Pipeline, variable-group, and secret-group selectors accept a canonical ID or unique name. Run selectors use the canonical RUN-… ID.
pipeline validate and pipeline update accept --file - to read ICE from standard input. Without --file, pipeline export writes ICE to standard output. With --follow, pipeline execution or log output is polled until the run reaches a terminal state.
pipeline update commits the source to the default branch; --message sets the commit message. With --pr, it opens a pull request instead of committing to the default branch: --title and --description describe the pull request (the title falls back to --message), and --branch names its source branch, which is otherwise chosen for you. With --pull-request, it adds a commit to a pull request that is already open. --pr and --pull-request cannot be combined, and --branch applies only with --pr.
pipeline schedule set creates the schedule or changes the one with that name; --cron is required to create it. Options you leave out keep their current value, and default clears --timezone, --branch, --variables or --secrets. The change is committed to the pipeline’s ICE source, or opened as a pull request when the project requires one. schedule assign chooses the Scheduler account the schedule runs as, by name or ID, and needs permission to use that account; none removes it. schedule confirm lets a suspended schedule run again. scheduler-account commands act on the active workspace. See Scheduled pipelines.
project events and pipeline events list what Codinamo did on its own and why something did not run, newest first: for example a push that started a run, a push skipped with [skip ci], or a run a push could not start. project events includes the events of every pipeline of the project. --level error shows only failures. --limit accepts 1 to 200 (50 by default), and --before takes the ID of the last event shown to read older ones. With --output json, each event also carries a stable code and a context object with values such as the branch, the commit and the run. Events are kept for 7 days on the Free plan and 90 days on the Pro plan.
pipeline run starts a manual run and requires the pipeline to declare the manual trigger. --branch chooses the branch to build (main by default) and --commit a specific commit (the latest commit of the branch by default). run list and run show include a TRIGGER column: manual, push, pull request, or Scheduler.
pipeline configure requires at least one option. --runner selects the runner the pipeline executes on, and --continue-on-error accepts true or false.
pr list lists the pull requests of a project with a hosted repository, optionally filtered by status. pr show prints the pull request with its description and diff, pr merge merges it with an optional merge message, and pr close closes it without merging. pr show, pr merge, and pr close take the pull request ID, which is the id field returned by pr list --output json.
Variables and secrets
codi variable-group list
codi variable-group show <group>
codi variable-group create <name> [--description <text>]
codi variable-group set <group> <name>=<value>
codi variable-group unset <group> <name>
codi variable-group delete <group> [--yes]
codi secret-group list
codi secret-group show <group>
codi secret-group create <name> [--description <text>]
codi secret-group set <group> <name> [--stdin]
codi secret-group unset <group> <name>
codi secret-group delete <group> [--yes]
Variable values are part of the positional name=value operand. Secret values are never accepted as operands or options: Codi reads them without echo or from standard input.
Agents and deployment targets
codi agent list
codi agent enrollment-token <name> [--expires-in <seconds>]
codi agent delete <agent> [--yes]
codi target list
codi target show <target>
codi target create <name> --reference <reference-name> --kind <kind> \
--strategy <strategy> --config <target.json> [--agent <DSA-id>]
codi target update <target> [--name <name>] [--reference <reference-name>] \
[--kind <kind>] [--strategy <strategy>] [--config <target.json>] \
[--agent <DSA-id>|--clear-agent]
codi target disable <target>
codi target enable <target>
Agent selectors accept a canonical ID or unique name. Target selectors accept a canonical ID, unique name, or unique reference name.
Target kinds are machine, container, and swarm. Update strategies are docker-compose, docker-container, docker-swarm, and docker-stack. The --config file must contain a JSON object and may be - to read from standard input. target update preserves fields that are not supplied.
Dashboard
codi dashboard show
codi dashboard recent
codi dashboard pipelines
Dashboard commands summarize the active workspace. show returns the complete overview, while recent and pipelines return focused views.
Destructive commands
The following operations request confirmation unless --yes is present:
-
profile deletion;
-
team-member removal;
-
role archival and grant revocation;
-
project, pipeline, variable-group, secret-group, and agent deletion;
-
Registry disablement, Registry-token revocation, and Registry cleanup with
--apply.
When --output json is selected, destructive commands cannot prompt and require --yes.
Output and errors
Table output is intended for people. JSON output returns structured response objects for scripts. Diagnostic errors are written to standard error. In JSON mode, an error has this shape:
{
"code": "FORBIDDEN",
"message": "Permission denied",
"httpStatus": 403
}
| Exit code | Meaning |
|---|---|
|
The command completed successfully. |
|
The operation did not succeed, including an unavailable status check, invalid pipeline source, or unclassified runtime/API failure. |
|
The command or local input is invalid. |
|
The server returned HTTP 401; authentication is missing or no longer valid. |
|
The server returned HTTP 403, or |
|
The server returned HTTP 404. |
|
The server returned HTTP 409 or 412 because current state, version, or revision conflicts with the request. |
See Work with Codi for task-oriented examples and Troubleshoot Codi for diagnosis.