| Option | Description |
|---|---|
-v, --version |
Display version number and exit |
-h, --help |
Display help and exit |
Running shep with no arguments starts the web UI daemon (or runs onboarding on first launch).
shepStart the web UI daemon (or run the onboarding wizard on first launch). This is the default action when no subcommand is provided.
Source: src/presentation/cli/index.ts (default action) + src/presentation/cli/commands/daemon/start-daemon.ts
shep startStart the web UI as a background daemon.
Source: src/presentation/cli/commands/start.command.ts
shep stopStop the running web UI daemon.
Source: src/presentation/cli/commands/stop.command.ts
shep restartRestart (or start) the web UI daemon.
Source: src/presentation/cli/commands/restart.command.ts
shep statusShow status and metrics of the running daemon.
Source: src/presentation/cli/commands/status.command.ts
shep uiStart the web UI in foreground (interactive, non-daemon mode).
Source: src/presentation/cli/commands/ui.command.ts
Options:
| Option | Description | Default |
|---|---|---|
-p, --port <number> |
Port number (1024-65535) | 4050 |
Examples:
# Start on default port
shep ui
# Start on custom port
shep ui --port 8080
Behavior:
shep serve (hidden)Internal command used by the daemon to start the web server in a child process. Hidden from --help.
Source: src/presentation/cli/commands/_serve.command.ts
shep feat newCreate a new feature.
Source: src/presentation/cli/commands/feat/new.command.ts
shep feat lsList all features.
Source: src/presentation/cli/commands/feat/ls.command.ts
shep feat showShow details of a specific feature.
Source: src/presentation/cli/commands/feat/show.command.ts
shep feat delDelete a feature.
Source: src/presentation/cli/commands/feat/del.command.ts
shep feat resumeResume a paused or blocked feature.
Source: src/presentation/cli/commands/feat/resume.command.ts
shep feat reviewReview a feature (triggers merge review).
Source: src/presentation/cli/commands/feat/review.command.ts
shep feat approveApprove a feature.
Source: src/presentation/cli/commands/feat/approve.command.ts
shep feat rejectReject a feature.
Source: src/presentation/cli/commands/feat/reject.command.ts
shep feat logsView logs for a feature.
Source: src/presentation/cli/commands/feat/logs.command.ts
shep agent lsList all agent runs.
Source: src/presentation/cli/commands/agent/ls.command.ts
shep agent showShow details of a specific agent run.
Source: src/presentation/cli/commands/agent/show.command.ts
shep agent stopStop a running agent.
Source: src/presentation/cli/commands/agent/stop.command.ts
shep agent logsView agent run logs.
Source: src/presentation/cli/commands/agent/logs.command.ts
shep agent deleteDelete an agent run record.
Source: src/presentation/cli/commands/agent/delete.command.ts
shep agent approveApprove an agent action.
Source: src/presentation/cli/commands/agent/approve.command.ts
shep agent rejectReject an agent action.
Source: src/presentation/cli/commands/agent/reject.command.ts
shep repo lsList tracked repositories.
Source: src/presentation/cli/commands/repo/ls.command.ts
shep repo showShow details of a specific repository.
Source: src/presentation/cli/commands/repo/show.command.ts
shep session lsList sessions.
Source: src/presentation/cli/commands/session/ls.command.ts
shep session showShow details of a specific session.
Source: src/presentation/cli/commands/session/show.command.ts
shep settingsLaunch the full setup wizard (agent + IDE + workflow). Running shep settings without a subcommand launches the onboarding wizard interactively.
Source: src/presentation/cli/commands/settings/index.ts
shep settings showDisplay current settings.
Source: src/presentation/cli/commands/settings/show.command.ts
Options:
| Option | Description | Default |
|---|---|---|
-o, --output <format> |
Output format: table, json, yaml |
table |
Examples:
# Table format (default)
shep settings show
# JSON format
shep settings show --output json
# YAML format (short flag)
shep settings show -o yaml
Table output renders four sections (Models, User, Environment, System) followed by database metadata (path, file size). Optional user fields show (not set) when null.
JSON/YAML output prints the raw Settings object without database metadata.
Data source: Reads from the in-memory settings singleton via getSettings().
Error handling: Catches errors, prints via messages.error(), sets process.exitCode = 1.
shep settings initReset settings to defaults. Creates a fresh Settings object from createDefaultSettings(), resets the in-memory singleton, and re-initializes it.
Source: src/presentation/cli/commands/settings/init.command.ts
Options:
| Option | Description |
|---|---|
-f, --force |
Skip confirmation prompt |
Examples:
# With confirmation prompt
shep settings init
# Skip confirmation
shep settings init --force
shep settings init -f
Behavior:
--force: Prints a warning about data loss, prompts Are you sure? (y/N):. Only y (case-insensitive) confirms. EOF on stdin resolves to false (safe default).--force: Skips confirmation, resets immediately.messages.success('Settings initialized to defaults.').messages.info('Operation cancelled.').Data flow: createDefaultSettings() -> resetSettings() -> initializeSettings(newSettings).
Error handling: Same pattern as settings show.
shep settings agentConfigure AI coding agent.
Source: src/presentation/cli/commands/settings/agent.command.ts
Options:
| Option | Description |
|---|---|
--agent <type> |
Agent type (e.g. claude-code) |
--auth <method> |
Auth method: session or token |
--token <key> |
API token for the agent |
Examples:
# Interactive wizard
shep settings agent
# Non-interactive with flags
shep settings agent --agent claude-code --auth session
Behavior:
shep settings ideConfigure preferred IDE.
Source: src/presentation/cli/commands/settings/ide.command.ts
shep settings workflowConfigure workflow defaults.
Source: src/presentation/cli/commands/settings/workflow.command.ts
shep settings modelConfigure default LLM model.
Source: src/presentation/cli/commands/settings/model.command.ts
shep tools listList all available development tools with their installed status.
Source: src/presentation/cli/commands/tools.command.ts
shep installInstall a development tool.
Source: src/presentation/cli/commands/install.command.ts
shep ide-openOpen the IDE for a repository.
Source: src/presentation/cli/commands/ide-open.command.ts
shep versionDisplay detailed version information.
Source: src/presentation/cli/commands/version.command.ts
$ shep version
@shepai/cli v0.1.0
Autonomous AI Native SDLC Platform
Node: v20.10.0
Platform: linux x64
Output includes package name, version (via VersionService), description, Node.js version, and OS platform/arch.
shep runRun an AI agent workflow.
Source: src/presentation/cli/commands/run.command.ts
shep upgradeUpgrade Shep CLI to the latest version.
Source: src/presentation/cli/commands/upgrade.command.ts
src/presentation/cli/commands/<name>.command.ts (or <group>/<name>.command.ts for subcommands).create<Name>Command(): Command factory function.index.ts via program.addCommand(create<Name>Command()).index.ts that uses .addCommand() to compose subcommands.messages.* for feedback, OutputFormatter for multi-format output, process.exitCode = 1 for errors.