opentide

CLI reference

Complete opentide command-line interface — commands, flags, exit codes, and JSON output.

The opentide command is a Typer application included in the core package:

pip install 'opentide==0.1.0'

Run opentide --help for the live command tree.

Command overview

CommandPurpose
setupOnboard detection repositories (repo, platforms, CI, MCP, skills)
generateDocumentation, exports, framework artifacts, optional platform import
validateObject and query validation
deployPlatform rule deployment
infoRepository and platform statistics

Top-level document, export, and extract remain as hidden deprecation shims for one release. They log a warning and delegate to opentide generate docs, generate exports, and generate extract. mutate and migrate were removed — use opentide deploy for promotion and the CoreTide migration prompt for legacy repos.

Global options

All commands inherit global options:

FlagEnv varPurpose
--repoOPENTIDE_REPO_ROOTDetection repository root
--dataOPENTIDE_DATA_ROOTBundled data root override
--debugDEBUGDebug logging
--no-colorNO_COLORDisable Rich colour
--jsonMachine-readable JSON output

Typical CI sequence

opentide generate
opentide validate --strict --json
opentide validate query --platform sentinel
opentide deploy --platform sentinel --dry-run

Generated pipelines use opentide generate docs --output docs for documentation jobs. Status promotion runs inside opentide deploy — there is no separate mutate promote step.

JSON output

With --json, every command writes exactly one JSON document to stdout. Successes include "ok": true; failures include "ok": false, a status, message, and non-zero exit code. Diagnostics use stderr and never prefix the stdout document. (opentide info emits the info object through the same contract.)

Exit codes

Commands set a process exit code so CI can gate without parsing output: 0 success, 1 error, 2 usage error. Full reference: Exit codes.

Choosing between CLI, SDK, and MCP

The CLI is one of three interfaces to the same engine. For humans and pipelines, use the CLI; to embed in Python, use the SDK; for AI agents, use MCP. See Choosing an interface.

Shell completion

opentide --install-completion
opentide --show-completion

Source

Command definitions: src/opentide/cli/__init__.py, src/opentide/cli/setup_app.py.

On this page