Quickstart
This walkthrough takes you from an empty directory to a monorepo with a backend service and the live dashboard. It assumes you have installed the CLI and are on Node.js 18+. The file counts and outputs below come from running these exact commands against the 0.31.0 tree; yours may differ slightly with the CLI version.
1. Initialize a workspace
Section titled “1. Initialize a workspace”re-shell init scaffolds a monorepo: package-manager config, workspace layout,
linting, Docker, CI, and a pnpm-workspace.yaml / turbo.json so tooling works out
of the box.
re-shell init acme-platformcd acme-platformUseful flags (re-shell init --help):
| Flag | Purpose |
|---|---|
--package-manager <pm> |
npm, yarn, pnpm (default), or bun. |
--template <template> |
blank (default), ecommerce, dashboard, saas. |
--skip-install |
Scaffold without running the package install. |
--no-git |
Skip Git repository initialization. |
-y, --yes |
Skip interactive prompts and accept defaults. |
# Non-interactive, no install (fast scaffold)re-shell init acme-platform --package-manager pnpm --skip-install -yThat writes 28 files (not counting .git, which gets an initial commit):
package.json, pnpm-workspace.yaml, turbo.json, Dockerfile,
docker-compose.yml, .github/workflows/ci.yml, lint/format/commit-hook
configuration, .re-shell/config.yaml, and the first lines of the
audit trail under .re-shell/audit/.
2. Add a backend service
Section titled “2. Add a backend service”Preview before you write. templates apply is a dry run that computes the exact
file set a scaffold would produce, without touching your workspace:
re-shell templates apply express --name billing🔍 Dry run: express → "billing"
Would create 34 files (52080 bytes). Nothing written.
+ .dockerignore (356b) + .env.example (592b) + docker-compose.yml (1418b) + Dockerfile (1228b) + jest.config.js (1000b) + package.json (2538b) + prisma/schema.prisma (1273b) ...There are two ways to write a backend, and they produce different amounts of code:
# A small starter service: services/billing with package.json, tsconfig.json# and src/index.ts (3 files for Express)re-shell generate backend billing --framework express --language typescript
# The full template as its own project (38 files for Express, including the# workspace scaffolding around it), laid out as apps/<name>re-shell create api --backend expressAdd --dry-run --json to create to get the file set with per-file previews
and diffs as a JSON envelope, with nothing written.
Browse all 204 templates across 35 languages with
templates list, or read the
Template Catalog.
3. Check workspace health
Section titled “3. Check workspace health”Every data command speaks the typed JSON contract. Run a health check both ways, human-readable and machine-readable:
re-shell workspace healthre-shell workspace health --json{ "ok": true, "data": { "score": 67, "status": "critical", "checks": [ { "name": "Workspaces", "status": "healthy", "message": "1 workspace(s) detected", "details": ["billing (service)"] }, { "name": "File Structure", "status": "warning", "message": "Workspace structure could be improved", "details": ["Missing recommended files: README.md"] }, { "name": "Package Manager", "status": "warning", "message": "No package manager lock file detected" } ] }, "warnings": ["Workspace structure could be improved", "No package manager lock file detected"]}A fresh workspace scores lower until you install dependencies and add the
recommended files; that is expected. (status on the wire is
healthy|degraded|critical; the human-readable output uses its own wording.)
4. Open the dashboard
Section titled “4. Open the dashboard”re-shell ui launches the bundled dashboard: a token-authenticated,
127.0.0.1-bound web app for inspecting your workspace. It starts a local hub,
waits for it to be healthy (and fails if it is not), and opens the browser.
re-shell uiThis opens http://127.0.0.1:3333 with 12 screens: Overview, Workspace Graph,
Templates, Command Builder, Assistant, Jobs & Logs, Health, Scorecard, Catalog,
Collaboration, Administration and Settings. The dashboard talks to the CLI over a hardened local
hub (see Dashboard and the
Secure Hub architecture). The Collaboration
and Administration screens need a running control plane.
Preview the launch plan without starting anything:
re-shell ui --dry-runre-shell ui --json5. Diagnose your environment
Section titled “5. Diagnose your environment”doctor runs health checks on the monorepo. It is a gate: it exits non-zero when
the workspace is unhealthy, so you can use it in CI.
re-shell doctorre-shell doctor --explain # why each failing check failed, and what to dore-shell doctor --fix # a dry-run remediation plan; add --yes to applyre-shell doctor --jsonOn the fresh workspace above it reports 8 passed checks and 3 warnings (security audit, uncommitted git changes, a workspace missing build configuration files).
Where to go next
Section titled “Where to go next”- Core Concepts: the mental model.
- CLI Reference: every command group.
- Template Catalog: all 204 templates.
- Dashboard: the 12 screens in depth.
- AI, service bridge, Kubernetes: the larger features.