Skip to content

CLI Overview

The Re-Shell CLI is invoked as re-shell. It exposes a set of top-level commands for project lifecycle plus command groups that bundle related functionality. At CLI 0.29.2 there are over 500 registered commands across the groups.

Terminal window
re-shell --help
re-shell --version # 0.29.2
CommandPurpose
init <name>Initialize a new monorepo workspace (Frontend, Full-Stack, Microservices, Polyglot).
create <name>Create a new Re-Shell project with a shell application.
add <name>Add a microfrontend to an existing project.
remove <name>Remove a microfrontend.
listList all microfrontends in the current project.
tuiLaunch the interactive terminal UI (Ink).
uiLaunch the local web dashboard.
build [name]Build all or specific microfrontends.
serve [name]Start the development server.
doctorRun health checks on the monorepo.
analyzeAnalyze bundles, dependencies, performance, security.
completionInstall shell completion scripts.
ai <prompt...>Resolve a natural-language prompt to a command (offline).
commandsIntrospect available commands as a machine-readable catalog.
GroupPurpose
workspaceWorkspace health, dependency graph, topology, sync, policy, drift, migration.
templatesDiscover and inspect framework templates.
generateGenerate code, tests, docs, backends, and features.
apiOpenAPI/Swagger, versioning, validation, testing, docs, gateway, clients.
servicePolyglot services + cross-language service bridges.
k8sKubernetes manifests, Helm charts, GitOps.
cloudAWS/Azure/GCP deployment and CDN management.
observeMetrics, tracing, logging, APM, alerting.
securitySecurity, compliance, and governance generators.
dataDatabase migration, pooling, cache, ORM utilities.
collab / learnCollaboration and learning generators.
pluginManage CLI plugins and extensions.
tools / config / qualityDev tools, configuration, code quality.

Every group prints its own help:

Terminal window
re-shell workspace --help
re-shell templates --help
re-shell k8s --help

The commands group exposes the entire surface as a machine-readable catalog — the same data the dashboard’s Command Builder and the offline ai resolver read:

Terminal window
re-shell commands list --json > catalog.json

Pipe caveat. The CLI exits as soon as a command resolves, which can truncate very large JSON payloads (such as commands list) when stdout is an OS pipe. Redirect to a file (... --json > out.json) for the full payload.

Commands marked with --json emit the typed { ok, data, warnings } envelope defined in @re-shell/contracts. Error envelopes set a non-zero exit code. See the JSON Contract page for the full specification and error-code vocabulary.