CLI Overview
The Re-Shell CLI is invoked as re-shell. It exposes top-level commands for
the project lifecycle plus command groups that bundle related functionality.
At CLI 0.31.0 the catalog (re-shell commands list --json) has 585 command
paths in 46 top-level commands. Command groups load lazily, so re-shell --version starts in about 45 ms and --help in about 100 ms on a development
VM (median of 10 runs; yours will differ, and group commands take several hundred
milliseconds because they load their group on demand).
re-shell --helpre-shell --version # prints only the versionTop-level commands
Section titled “Top-level commands”| Command | Purpose |
|---|---|
init <name> |
Initialize a new monorepo workspace (Frontend, Full-Stack, Microservices, Polyglot). |
create <name> |
Create a project. Non-interactive for every mode; a bare create is a react-ts frontend. See generate. |
add <name> / remove <name> / list |
Add, remove and list microfrontends. |
tui |
Launch the interactive terminal UI (Ink). |
ui |
Launch the local web dashboard; ui test, ui component new, ui generate, ui theme .... |
build [name] / serve [name] |
Build or serve microfrontends. |
doctor / analyze |
Health gate; bundle, dependency, performance, security, scalability and architecture analysis. |
completion |
Shell completion generated from the live command tree. |
ai <prompt...> |
Resolve a natural-language prompt to a command (cloud, local or offline provider). |
find <query> |
Offline, ranked search over commands and templates. |
run <task> / cache |
Dependency-ordered task runner with a resource governor; build cache. |
dev |
Local dev runtime: --profile, --cluster, --restart-plan. |
pkg / debug / refactor |
Unified package manager; cross-language debug configs; workspace refactors. |
fix --ci |
Gated CI fixer with validated patches. |
scorecard / release / migrate / catalog / federation / boundaries / env |
Readiness score, graph-aware releases, codemod migrations, software catalog, Module Federation checks, import boundaries, dev environments. |
agents |
Generate and verify agent-readiness docs. |
commands |
Introspect available commands as a machine-readable catalog. |
Command groups
Section titled “Command groups”| Group | Purpose |
|---|---|
workspace |
Graph (+ diff, explorer), live status, health, policy packs, drift, migration, import. |
templates |
Discover and inspect framework templates. |
generate |
Generate code, tests, docs, backends, and features. |
api |
OpenAPI/Swagger, versioning, validation, testing, docs, gateway, clients, api verify. |
service |
link / unlink / validate, the bridge family, run (service supervision), polyglot. |
k8s |
Manifests, Helm, GitOps, rollback, CRD, operator, mesh. |
cloud |
Terraform generation and deploy (cloud iac, cloud deploy) plus legacy provider generators. |
observe |
Metrics, tracing, logging, APM, alerting. |
security |
Security generators, audit trail and compliance reports. |
data |
Database migration, pooling, cache, ORM utilities. |
collab / learn |
Shared sessions plus generators; learning generators. |
plugin |
Install, uninstall, update, validate, pin, review and search plugins. |
tools / config / quality |
Dev tools, configuration and profiles, code quality. |
Every group prints its own help:
re-shell workspace --helpre-shell templates --helpre-shell k8s --helpCommand introspection
Section titled “Command introspection”The commands group exposes the entire surface as a machine-readable catalog,
the same data the dashboard’s Command Builder, the VS Code extension and the
ai resolver read:
re-shell commands list --json > catalog.jsonThe output is one complete envelope even when piped (re-shell commands list --json | jq '.data | length' works); the --json contract guarantees a single
envelope on stdout and sends everything incidental to stderr.
The JSON contract
Section titled “The JSON contract”Commands marked with --json emit the typed { ok, data, warnings } envelope
defined in @re-shell/contracts. Error envelopes set a non-zero exit code
(COMMAND_ERROR for unexpected failures, USAGE_ERROR for bad arguments). See
the JSON Contract page for the full
specification and the error-code vocabulary.