Complete CLI Reference
Every documented npx workspai command — workspace intelligence, adopt/import, kits, archives, doctor, infra, and Core-delegated module operations — with ownership labels and no gaps.
Showing 90 of 90 documented npm surface commands across 18 groups.
Getting started
Interactive create flows and the my-workspace quick-start alias.
npx workspai createPrompt: workspace or project
npx workspai create workspace <name> [--profile <profile>] [--author <name>] [--yes]npx workspai my-workspace [--here]Quick-start workspace alias
npx workspai create project <kit> <name> [--yes] [--skip-install] [--skip-git] [--output <dir>]npx workspai create frontend <id> <name>Alias for frontend generators (same as create project)
Workspace compliance & CI
Bootstrap, analyze, readiness, pipeline, and autopilot release gates.
npx workspai bootstrap [--profile <profile>] [--json] [--compliance-only]npx workspai setup <python|node|go|java|dotnet> [--warm-deps]npx workspai pipeline [--json] [--strict] [--skip-verify] [--skip-analyze] [--skip-autopilot] [--autopilot-mode <audit|safe-fix|enforce>]npx workspai analyze [--workspace <path>] [--json] [--strict] [--output <file>]npx workspai readiness [--json] [--strict] [--skip-verify]npx workspai autopilot release [--mode <audit|safe-fix|enforce>] [--json] [--output <file>] [--since <ref>] [--parallel] [--max-workers <n>]Workspace intelligence
Model, context, diff, impact, verify, and agent sync artifacts in-repo.
npx workspai workspace model [--json] [--write] [--strict]npx workspai workspace context --for-agent [codex|claude|cursor|orca] [--json] [--write] [--no-agent-sync]npx workspai workspace agent-sync [--write] [--refresh-context] [--strict] [--json] [--preset minimal|enterprise] [--target all|vscode|copilot,cursor,claude] [--experimental-hooks]npx workspai workspace snapshot [--json]npx workspai workspace diff --from <snapshot-or-report|git[:ref]> [--json]npx workspai workspace impact --from <snapshot-or-report> [--scope project:<name>] [--json]npx workspai workspace verify [--from-impact <file>] [--scope project:<name>] [--strict] [--json]npx workspai workspace explain [--json]npx workspai workspace trace [--from <path>] [--json]Workspace contract & registry
Contract init, inspect, verify, graph, sync, policy, and foundation.
npx workspai workspace sync [--json]npx workspai workspace policy shownpx workspai workspace policy set <key> <value>npx workspai workspace listnpx workspai workspace foundation ensure [--force] [--json]npx workspai workspace share [--output <file>] [--include-paths] [--no-doctor]npx workspai workspace contract init [--force] [--json]npx workspai workspace contract inspect [--json]npx workspai workspace contract verify [--strict] [--json]npx workspai workspace contract graph [--json]npx workspai workspace initWorkspace archive & hydrate
Portable archive export, inspect, verify, doctor, and hydrate.
npx workspai workspace export --output team-workspace.rapidkit-archive.zipnpx workspai workspace archive inspect team-workspace.rapidkit-archive.zip [--json]npx workspai workspace archive verify team-workspace.rapidkit-archive.zip [--strict] [--json]npx workspai workspace archive doctor team-workspace.rapidkit-archive.zip [--strict] [--json]npx workspai workspace hydrate team-workspace.rapidkit-archive.zip --output ./team-workspaceAdopt & import
Register existing repositories without moving source.
npx workspai adopt [path] [--workspace <path>] [--name <project-name>] [--dry-run] [--json]npx workspai import <path|git-url> [--workspace <path>] [--name <project-name>] [--git] [--json]Snapshots
Named workspace snapshots with restore and inspect.
npx workspai snapshot create [name] [--include-projects] [--reason <text>] [--json]npx workspai snapshot list [--json]npx workspai snapshot inspect <name> [--json]npx workspai snapshot restore <name> [--dry-run] [--force] [--json]Project lifecycle
Runtime-aware init, dev, test, build, and start — orchestrated by npm first.
npx workspai project commands [--json]npx workspai commands --scope project [--json]npx workspai initnpx workspai devnpx workspai testnpx workspai buildnpx workspai startnpx workspai lintnpx workspai formatProject archive lifecycle
Archive, list, restore, and delete projects inside a workspace.
npx workspai project archive <name> [--reason <text>] [--dry-run] [--json]npx workspai project archives [--json]npx workspai project restore <archive> [--name <project-name>] [--force] [--dry-run] [--json]npx workspai project delete <name> [--permanent --confirm <name>] [--dry-run] [--json]Doctor & health
Workspace and project health with optional fix plans.
npx workspai doctornpx workspai doctor workspace [--json] [--strict] [--ci] [--fix] [--plan] [--apply]npx workspai doctor project [--json] [--strict] [--ci] [--fix] [--plan] [--apply]Workspace fleet run
Orchestrate init, test, build, and start across projects.
npx workspai workspace run <init|test|build|start> [--affected] [--blast-radius] [--since <ref>] [--parallel] [--max-workers <n>] [--strict] [--json]Infrastructure sidecar
Docker Compose plan, up, down, and status for workspace infra.
npx workspai infra plan [--workspace <path>] [--json] [--dry-run] [--verbose]npx workspai infra up [--workspace <path>] [--no-plan] [--build]npx workspai infra down [--workspace <path>] [--volumes]npx workspai infra status [--workspace <path>] [--json] [--strict]Cache & mirror
Offline cache and vendor mirror maintenance.
npx workspai cache <status|clear|prune|repair>npx workspai mirror <status|sync|verify|rotate>AI (npm wrapper)
Module recommendations and embedding maintenance.
npx workspai ai recommend [query] [-n, --number <count>] [--json]npx workspai ai info [--json]npx workspai ai generate-embeddings [--json]npx workspai ai update-embeddings [--json]Config (npm wrapper)
User-level Workspai CLI configuration.
npx workspai config set-api-key [--key <key>]npx workspai config shownpx workspai config remove-api-keynpx workspai config ai <enable|disable|status>Shell activation
Print shell activation snippets for workspace environments.
npx workspai shell activateDiscovery & catalog
Command surfaces and engine catalog (create/list/info may delegate to Core).
npx workspai commands [--scope workspace|project] [--json]npx workspai listCore catalog — may delegate
npx workspai info <module>Core catalog — may delegate
npx workspai frameworksCore catalog — may delegate
npx workspai licenseCore catalog — may delegate
Core modules (delegated when Core-backed)
Available on FastAPI/NestJS Core-backed projects; blocked on npm-only runtimes.
npx workspai add module <module>npx workspai modules listnpx workspai modules search <query>npx workspai upgrade module <module>npx workspai diff module <module>npx workspai merge module <module>npx workspai reconcile module <module>npx workspai rollback module <module>npx workspai uninstall module <module>npx workspai checkpoint create [name]npx workspai optimize module <module>Source of truth: workspai/packages/cli/README.md