CLI Index
Document ID: CLI-INDEX-001
File Path: docs/11-cli/index.md
Version: 1.1.0
Status: Active
Owner: AI Platform Team
Last Updated: 2026-08-01
1. Purpose
Section titled “1. Purpose”This document is the central navigation and architecture index for the wovyr command-line interface — the primary terminal client for the Wovyr AI Platform.
The CLI serves developers, operators, and CI/CD. It is both a client of the Platform API (managing remote resources) and a local toolchain (scaffolding projects, building plugins, running workflows locally, diagnostics) — see the CLI Service in C4 Container §4.10.
2. What the CLI Does
Section titled “2. What the CLI Does”| Mode | Examples |
|---|---|
| Remote management | wovyr agents run, wovyr auth create-key |
| Local development | wovyr dev, wovyr plugin new, wovyr workflows run --local |
| Authoring/build | wovyr plugin build, wovyr plugin sign, wovyr plugin publish |
| Operations | wovyr admin backup, wovyr admin migrate, wovyr kms rotate |
The command reference is the authority here — it is generated from the real command tree and diffed in CI, so it can never list a command that doesn’t exist.
The CLI is not at parity with the Platform API, and isn’t trying to be: it covers local development, plugin authoring, and node operations. Managing remote resources (registering agents, submitting workflows, projects, quotas, webhooks, audit) is done through the API or an SDK, not the terminal.
3. Composition
Section titled “3. Composition”wovyr (Rust binary) │ ├── command parser + help (clap) ├── credential store (~/.wovyr/credentials.json) ├── auth (bearer token; `auth` mints the server's API keys) ├── HTTP client (REST → the server) ├── local engine (embedded agent/workflow runtime for --local) └── local stores (~/.wovyr: kms, secrets, memory, workflows, plugins, ...)The CLI is a single self-contained Rust binary (tech mapping: CLI = Rust).
4. Document Map
Section titled “4. Document Map”| Document | Responsibility |
|---|---|
| installation.md | Install methods, platforms, updates |
| configuration.md | State directory, auth, environment variables |
| commands.md | Full command reference (generated, CI-diffed) |
| examples.md | Task-oriented recipes and CI usage |
5. Design Principles
Section titled “5. Design Principles”- Local-first dev — scaffold, build, and run with no remote at all; with no provider key set, runs use a deterministic mock so they work offline.
- Secure by default — same authn/authz as every client, no privileged
backdoor, and the privileged builtins (
shell,fs_write,code_execute) fail closed without an explicit per-run or per-session opt-in (SBX-305). - Generated reference —
commands.mdcomes from the clap tree, so the docs cannot drift from the binary. - Helpful — rich
--helpon every subcommand.
Deliberately not principles today: full API parity (§2), a machine-readable
--output json mode, graded exit codes, and shell completion. See
configuration §6.
6. Dependencies
Section titled “6. Dependencies”09-api/index.md— the API the CLI consumes09-api/authentication.md— login + tokens08-plugin-sdk/plugin-api.md—wovyr pluginbuild/publish
7. Related Documents
Section titled “7. Related Documents”10-dashboard/index.md— the other primary client12-deployment/index.md— deploying the server the CLI talks to19-implementation-guide/development-environment.md
8. Revision History
Section titled “8. Revision History”| Version | Date | Description |
|---|---|---|
| 1.0.0 | 2026-06-27 | Initial CLI Index |