CLI Flags Reference
Complete documentation of all command-line flags and options for the Claude Code Templates CLI.Component Installation Flags
—agent
Install specific agent component (supports comma-separated values)
frontend-developerdevelopment-team/react-specialistsecurity-team/penetration-tester
—command
Install specific command component (supports comma-separated values)
—mcp
Install specific MCP component (supports comma-separated values)
web-fetchfilesystem-accessgithub-integrationmemory-integrationmysql-integrationpostgresql-integrationdeepgraph-reactdeepgraph-typescriptdeepgraph-vuedeepgraph-nextjs
—setting
Install specific setting component (supports comma-separated values)
permissions/- Permission configurationsmodel/- Model selection settingstelemetry/- Telemetry controlsretention/- Data retention policiessecurity/- Security settingsstatusline/- Statusline configurations
—hook
Install specific hook component (supports comma-separated values)
- PreToolUse hooks
- PostToolUse hooks
- Stop hooks
- Notification hooks
—skill
Install specific skill component (supports comma-separated values)
Template and Configuration Flags
—template
Specify template (e.g., common, javascript-typescript, python, ruby)
common- Universal configurationjavascript-typescript- Node.js, React, Vue, Next.jspython- Django, Flask, FastAPIruby- Rails, Sinatrago- Go projectsrust- Rust/Cargo projects
—language
Specify programming language (deprecated, use —template)
--template instead.
—framework
Specify framework (deprecated, use —template)
--template instead.
—directory
Target directory (default: current directory)
-d
Execution Flags
—yes
Skip prompts and use defaults
-y
—dry-run
Show what would be copied without actually copying
—verbose
Enable verbose logging for debugging and development
Analytics and Dashboard Flags
—analytics
Launch real-time Claude Code analytics dashboard
3333
URL: http://localhost:3333
—chats
Launch mobile-first chats interface (AI-optimized for mobile devices)
—agents
Launch Claude Code agents dashboard (opens directly to conversations)
—chats-mobile
Launch mobile-first chats interface (same as —chats)
—plugins
Launch Plugin Dashboard to view marketplaces, installed plugins, and permissions
—skills-manager
Launch Skills Dashboard to view and explore installed Claude Code Skills
—teams
Launch Agent Teams Dashboard to review multi-agent collaboration sessions
—2025
Launch 2025 Year in Review dashboard (showcase your Claude Code usage statistics)
—tunnel
Enable Cloudflare Tunnel for remote access (use with —analytics, —chats, or —2025)
Statistics and Analysis Flags
—command-stats
Analyze existing Claude Code commands and offer optimization
--commands-stats
—hook-stats
Analyze existing automation hooks and offer optimization
--hooks-stats
—mcp-stats
Analyze existing MCP server configurations and offer optimization
--mcps-stats
Health and Verification Flags
—health-check
Run comprehensive health check to verify Claude Code setup
--health, --check, --verify
Global Agent Flags
—create-agent
Create a global agent accessible from anywhere (e.g., customer-support)
/usr/local/bin/ or ~/.claude-code-templates/bin/
—list-agents
List all installed global agents
—remove-agent
Remove a global agent
—update-agent
Update a global agent to the latest version
Sandbox and Execution Flags
—sandbox
Execute Claude Code in isolated sandbox environment (e.g., e2b)
e2b- E2B sandboxdocker- Docker containerscloudflare- Cloudflare Workers
—prompt
Execute the provided prompt in Claude Code after installation or in sandbox
—e2b-api-key
E2B API key for sandbox execution (alternative to environment variable)
E2B_API_KEY environment variable.
—anthropic-api-key
Anthropic API key for Claude Code (alternative to environment variable)
ANTHROPIC_API_KEY environment variable.
Workflow Flags
—workflow
Install workflow from hash (#hash) OR workflow YAML (base64 encoded) when used with component flags
- Standalone: Installs workflow from hash
- With components: Treats as YAML workflow definition
Session Management Flags
—clone-session
Download and import a shared Claude Code session from URL
—studio
Launch Claude Code Studio interface for local and cloud execution
Version and Help Flags
—version
Display version information
-v
—help
Display help information
-h
Flag Combinations
Common Combinations
Install multiple components:Invalid Combinations
Tunnel without dashboard:Flag Priority
When multiple flags are present:- Sandbox execution - Runs first if present
- Component installation - If no sandbox
- Dashboard launch - If no components
- Health check - If specified
- Interactive menu - If no flags
Environment Variables vs Flags
Some flags have environment variable equivalents:| Flag | Environment Variable |
|---|---|
--anthropic-api-key | ANTHROPIC_API_KEY |
--e2b-api-key | E2B_API_KEY |
--directory | PWD (current directory) |
Default Values
| Flag | Default Value |
|---|---|
--directory | process.cwd() (current directory) |
--template | Auto-detected or common |
--yes | false (interactive prompts) |
--dry-run | false (execute changes) |
--verbose | false (minimal output) |
--tunnel | false (local only) |
Next Steps
- CLI Overview - Complete CLI documentation
- Configuration Guide - Settings and config files
- Environment Variables - Environment configuration
- Install Components - Component installation guide