CLI Flags Reference
Complete documentation of all command-line flags and options for the Claude Code Templates CLI.Component Installation Flags
—agent
string
Install specific agent component (supports comma-separated values)
frontend-developerdevelopment-team/react-specialistsecurity-team/penetration-tester
—command
string
Install specific command component (supports comma-separated values)
—mcp
string
Install specific MCP component (supports comma-separated values)
web-fetchfilesystem-accessgithub-integrationmemory-integrationmysql-integrationpostgresql-integrationdeepgraph-reactdeepgraph-typescriptdeepgraph-vuedeepgraph-nextjs
—setting
string
Install specific setting component (supports comma-separated values)
permissions/- Permission configurationsmodel/- Model selection settingstelemetry/- Telemetry controlsretention/- Data retention policiessecurity/- Security settingsstatusline/- Statusline configurations
—hook
string
Install specific hook component (supports comma-separated values)
- PreToolUse hooks
- PostToolUse hooks
- Stop hooks
- Notification hooks
—skill
string
Install specific skill component (supports comma-separated values)
Template and Configuration Flags
—template
string
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
string
Specify programming language (deprecated, use —template)
--template instead.
—framework
string
Specify framework (deprecated, use —template)
--template instead.
—directory
string
Target directory (default: current directory)
-d
Execution Flags
—yes
boolean
Skip prompts and use defaults
-y
—dry-run
boolean
Show what would be copied without actually copying
—verbose
boolean
Enable verbose logging for debugging and development
Analytics and Dashboard Flags
—analytics
boolean
Launch real-time Claude Code analytics dashboard
3333
URL: http://localhost:3333
—chats
boolean
Launch mobile-first chats interface (AI-optimized for mobile devices)
—agents
boolean
Launch Claude Code agents dashboard (opens directly to conversations)
—chats-mobile
boolean
Launch mobile-first chats interface (same as —chats)
—plugins
boolean
Launch Plugin Dashboard to view marketplaces, installed plugins, and permissions
—skills-manager
boolean
Launch Skills Dashboard to view and explore installed Claude Code Skills
—teams
boolean
Launch Agent Teams Dashboard to review multi-agent collaboration sessions
—2025
boolean
Launch 2025 Year in Review dashboard (showcase your Claude Code usage statistics)
—tunnel
boolean
Enable Cloudflare Tunnel for remote access (use with —analytics, —chats, or —2025)
Statistics and Analysis Flags
—command-stats
boolean
Analyze existing Claude Code commands and offer optimization
--commands-stats
—hook-stats
boolean
Analyze existing automation hooks and offer optimization
--hooks-stats
—mcp-stats
boolean
Analyze existing MCP server configurations and offer optimization
--mcps-stats
Health and Verification Flags
—health-check
boolean
Run comprehensive health check to verify Claude Code setup
--health, --check, --verify
Global Agent Flags
—create-agent
string
Create a global agent accessible from anywhere (e.g., customer-support)
/usr/local/bin/ or ~/.claude-code-templates/bin/
—list-agents
boolean
List all installed global agents
—remove-agent
string
Remove a global agent
—update-agent
string
Update a global agent to the latest version
Sandbox and Execution Flags
—sandbox
string
Execute Claude Code in isolated sandbox environment (e.g., e2b)
e2b- E2B sandboxdocker- Docker containerscloudflare- Cloudflare Workers
—prompt
string
Execute the provided prompt in Claude Code after installation or in sandbox
—e2b-api-key
string
E2B API key for sandbox execution (alternative to environment variable)
E2B_API_KEY environment variable.
—anthropic-api-key
string
Anthropic API key for Claude Code (alternative to environment variable)
ANTHROPIC_API_KEY environment variable.
Workflow Flags
—workflow
string
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
string
Download and import a shared Claude Code session from URL
—studio
boolean
Launch Claude Code Studio interface for local and cloud execution
Version and Help Flags
—version
boolean
Display version information
-v
—help
boolean
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:
Flags take precedence over environment variables.
Default Values
Next Steps
- CLI Overview - Complete CLI documentation
- Configuration Guide - Settings and config files
- Environment Variables - Environment configuration
- Install Components - Component installation guide