# Commands Reference Complete CLI syntax for the RapidKit npm wrapper. For behavior and workflows, see [workspace-operations.md](./workspace-operations.md) and [OPEN_SOURCE_USER_SCENARIOS.md](./OPEN_SOURCE_USER_SCENARIOS.md). ## Workspace lifecycle ```bash npx rapidkit create # Prompts: workspace | project npx rapidkit create workspace [--profile ] [--author ] [--yes] npx rapidkit bootstrap [--profile ] [--json] [--compliance-only] npx rapidkit setup [--warm-deps] npx rapidkit pipeline [--json] [--strict] [--skip-verify] [--skip-analyze] [--skip-autopilot] [--autopilot-mode ] npx rapidkit analyze [--workspace ] [--json] [--strict] [--output ] npx rapidkit readiness [--json] [--strict] [--skip-verify] npx rapidkit autopilot release [--mode ] [--json] [--output ] [--since ] [--parallel] [--max-workers ] ``` Recommended CI: ```bash npx rapidkit pipeline --json --strict npx rapidkit autopilot release --mode enforce --json --output .rapidkit/reports/autopilot-release.json ``` `bootstrap --json --compliance-only` runs compliance checks only (skips init). Default `bootstrap --json` still runs init after compliance checks. ```bash npx rapidkit workspace sync [--json] npx rapidkit workspace policy show npx rapidkit workspace policy set npx rapidkit doctor npx rapidkit doctor workspace [--json] [--strict] [--ci] [--fix] [--plan] [--apply] npx rapidkit doctor project [--json] [--strict] [--ci] [--fix] [--plan] [--apply] npx rapidkit workspace list npx rapidkit workspace foundation ensure [--force] [--json] npx rapidkit workspace share [--output ] [--include-paths] [--no-doctor] npx rapidkit workspace contract init [--force] [--json] npx rapidkit workspace contract inspect [--json] npx rapidkit workspace contract verify [--strict] [--json] npx rapidkit workspace contract graph [--json] npx rapidkit workspace model [--json] [--write] [--strict] npx rapidkit workspace context --for-agent [codex|claude|cursor|orca] [--json] [--write] [--no-agent-sync] npx rapidkit workspace agent-sync [--write] [--refresh-context] [--strict] [--json] [--preset minimal|enterprise] [--target all|vscode|copilot,cursor,claude] [--experimental-hooks] npx rapidkit workspace snapshot [--json] npx rapidkit workspace diff --from [--json] npx rapidkit workspace impact --from [--scope project:] [--json] npx rapidkit workspace verify [--from-impact ] [--scope project:] [--strict] [--json] npx rapidkit workspace export --output team-workspace.rapidkit-archive.zip npx rapidkit workspace archive inspect team-workspace.rapidkit-archive.zip [--json] npx rapidkit workspace archive verify team-workspace.rapidkit-archive.zip [--strict] [--json] npx rapidkit workspace archive doctor team-workspace.rapidkit-archive.zip [--strict] [--json] npx rapidkit workspace hydrate team-workspace.rapidkit-archive.zip --output ./team-workspace npx rapidkit import [--workspace ] [--name ] [--git] [--json] npx rapidkit adopt [path] [--workspace ] [--name ] [--dry-run] [--json] npx rapidkit snapshot create [name] [--include-projects] [--reason ] [--json] npx rapidkit snapshot list [--json] npx rapidkit snapshot inspect [--json] npx rapidkit snapshot restore [--dry-run] [--force] [--json] npx rapidkit project archive [--reason ] [--dry-run] [--json] npx rapidkit project archives [--json] npx rapidkit project restore [--name ] [--force] [--dry-run] [--json] npx rapidkit project delete [--permanent --confirm ] [--dry-run] [--json] npx rapidkit workspace init npx rapidkit workspace run [--affected] [--blast-radius] [--since ] [--parallel] [--max-workers ] [--strict] [--json] npx rapidkit infra plan [--workspace ] [--json] [--dry-run] [--verbose] npx rapidkit infra up [--workspace ] [--no-plan] [--build] npx rapidkit infra down [--workspace ] [--volumes] npx rapidkit infra status [--workspace ] [--json] [--strict] ``` See [workspace-run.md](./workspace-run.md) for fleet orchestration semantics. ## Project lifecycle ```bash npx rapidkit create project [--yes] [--skip-install] [--skip-git] [--output ] npx rapidkit project commands [--json] npx rapidkit commands --scope project [--json] npx rapidkit init npx rapidkit dev npx rapidkit test npx rapidkit build npx rapidkit start ``` Examples: ```bash npx rapidkit create project fastapi.standard my-api --yes npx rapidkit create project nextjs my-web --yes ``` `create frontend ` is still accepted and routes to the same generators. `project commands` shows the effective command contract for the current project. Core-backed FastAPI/NestJS projects can use module commands such as `add` and `modules`. Frontend apps, Go, Spring Boot, .NET, and adopted/imported repositories use runtime lifecycle commands and workspace governance while Core module mutation remains disabled. ## Operations ```bash npx rapidkit cache npx rapidkit mirror npx rapidkit infra ``` See [workspace-operations.md](./workspace-operations.md#workspace-infrastructure-sidecar) for infra discovery rules. ## Profiles - `minimal` — baseline workspace scaffolding - `java-only` — Java-focused workspace - `python-only` — Python-focused workspace - `node-only` — Node.js-focused workspace - `go-only` — Go-focused workspace - `polyglot` — Python + Node.js + Go + Java - `enterprise` — polyglot + governance-oriented checks ## Policy modes `mode` in `.rapidkit/policies.yml`: - `warn` (default): report violations, continue - `strict`: block incompatible operations ```bash npx rapidkit workspace policy show npx rapidkit workspace policy set mode strict npx rapidkit workspace policy set dependency_sharing_mode shared-runtime-caches npx rapidkit workspace policy set rules.enforce_toolchain_lock true ``` Supported keys: `mode`, `dependency_sharing_mode`, `rules.enforce_workspace_marker`, `rules.enforce_toolchain_lock`, `rules.disallow_untrusted_tool_sources`, `rules.enforce_compatibility_matrix`, `rules.require_mirror_lock_for_offline`. ## Setup and warm dependencies `setup ` validates toolchain and updates `.rapidkit/toolchain.lock`. `--warm-deps` adds optional dependency warm-up (Node lock/deps, Go modules). Warm-deps is non-fatal and reports `completed` / `failed` / `skipped`. ## See also - [Documentation index](./README.md) - [workspace-operations.md](./workspace-operations.md) - [workspace-run.md](./workspace-run.md) - [contracts/COMMAND_OWNERSHIP_MATRIX.md](./contracts/COMMAND_OWNERSHIP_MATRIX.md)