Aller au contenu principal

Essential Commands

Web (Node/React)

CommandDescription
npm installInstall dependencies
npm run devDevelopment server
npm testRun tests
npm run test:watchTests in watch mode
npm run lintCheck code (ESLint)
npm run lint:fixAuto-fix
npm run buildProduction build
npm run typecheckCheck TypeScript types

Mobile (Flutter)

CommandDescription
flutter pub getInstall dependencies
flutter runRun on device/emulator
flutter testRun tests
flutter analyzeAnalyze code (lint)
dart fix --applyAuto-fix
flutter build apkAndroid build
flutter build iosiOS build
flutter build webWeb build

Backend (Python)

CommandDescription
pip install -r requirements.txtInstall dependencies
python -m venv .venvCreate a virtual environment
source .venv/bin/activateActivate the environment (Linux/Mac)
pytestRun tests
pytest --covTests with coverage
ruff check .Fast linter
ruff format .Format code
mypy .Check types

Backend (Go)

CommandDescription
go mod downloadInstall dependencies
go run .Run the application
go test ./...Run tests
go test -cover ./...Tests with coverage
go buildCompile the binary
go fmt ./...Format code
go vet ./...Analyze code
golangci-lint runFull linter

claude-base CLI — module management

Installable opt-in modules — 3 horizontal domains (biz, legal, growth) plus 12 thematic cross-domain modules (mobile, self-hosted, iac, data-eng, observability, editor, api-data, ai, frontend, nextjs, flutter, gitflow) — are managed with three claude-base verbs. They work on an already-initialized project — run claude-base init first if the target directory has no .claude/ yet, or claude-base update once if the project predates foundation.json (legacy .foundation-version marker — update migrates it automatically).

CommandDescription
claude-base add <module> [path]Install a module and record it in foundation.json
claude-base add <module> --dry-run [path]Preview what would be installed (no writes)
claude-base remove <module> [path]Remove a module (preserves user-modified files)
claude-base remove <module> --dry-run [path]Preview what would be removed (no writes)
claude-base modules [path]List available modules and their install status

Examples:

# Install the legal compliance module into the current project
claude-base add legal .

# Preview installing the biz module without writing anything
claude-base add biz --dry-run .

# Remove the growth module (user-modified files are preserved with a notice)
claude-base remove growth .

# Check which modules are installed
claude-base modules .

Available modules: biz (9 commands + 4 agents), legal (5 commands + 4 agents), growth (9 commands + 5 agents + growth-cro skill).

Tip: claude-base init --preset <name> automatically installs the preset's defaultModules set and prints a claude-base add hint for the rest.

Advanced CLI Flags

FlagDescriptionExample
--agent <name>Launch a specific agent directlyclaude --agent qa-security
--agentsList all available agentsclaude --agents
--chromeEnable Chrome integration (visual tests)claude --chrome
--teleportEnable Teleport connection (remote)claude --teleport
--remoteConnect to a remote sessionclaude --remote <session-id>
--fallback-modelFallback model if the primary is unavailable (also applies to interactive sessions since CLI 2.1.166; see the fallbackModel setting for a cascade of up to 3 models)claude --fallback-model haiku
--plugin-dirPlugin directory to loadclaude --plugin-dir ./plugins
--bareMinimal scripted mode (skip hooks, LSP, plugins, skills)claude -p --bare "query"
--channelsEnable channels (Telegram, Discord, iMessage)claude --channels
--toolsRestrict available toolsclaude --tools "Read,Grep,Glob"
--initInitialize the project (Setup init hook)claude --init
--init-onlyInitialize without starting a sessionclaude --init-only
--maintenanceRun maintenance (Setup maintenance hook)claude --maintenance
--max-budget-usdMaximum budget in USD for the sessionclaude --max-budget-usd 5.00
--fork-sessionFork an existing sessionclaude --fork-session <id>
--strict-mcp-configStrict mode for MCP configclaude --strict-mcp-config
--teammate-modeAgent Teams display mode (auto, in-process, tmux)claude --teammate-mode tmux