CLI Essentials
The Bootspring CLI is your primary interface for local development. This guide covers the essential commands you'll use every day.
Installation#
# Global install (recommended)
npm install -g bootspring
# Or use with npx
npx bootspring <command>Verify installation:
bootspring --version
# bootspring v2.1.0Core Commands#
Initialize a Project#
bootspring initThis creates:
bootspring.config.js- Configuration file.mcp.json- MCP server setupCLAUDE.md- AI context file
Options:
1# Interactive setup
2bootspring init
3
4# Use a preset
5bootspring init --preset nextjs
6
7# Skip prompts with defaults
8bootspring init --yes
9
10# Specify project name
11bootspring init --name my-awesome-appGenerate Context#
Regenerate the CLAUDE.md context file:
bootspring generateOptions:
1# Force regeneration
2bootspring generate --force
3
4# Include specific sections
5bootspring generate --sections stack,structure,commands
6
7# Verbose output
8bootspring generate --verboseCheck Setup#
Diagnose and fix common issues:
bootspring doctorOutput:
Bootspring Doctor
═════════════════
✓ Node.js version: 20.10.0
✓ npm version: 10.2.3
✓ bootspring.config.js found
✓ .mcp.json configured
✓ CLAUDE.md generated
✓ MCP server reachable
All checks passed!
Agent Commands#
List Agents#
bootspring agent listOutput:
Technical Agents
────────────────
frontend-expert React, Next.js, Vue, CSS, accessibility
backend-expert Node.js, APIs, server architecture
database-expert SQL, Prisma, MongoDB, schema design
...
Business Agents (Pro)
─────────────────────
growth-expert PLG, retention, metrics
fundraising-expert Pitch decks, investor outreach
...
Filter by category:
bootspring agent list --category technical
bootspring agent list --category businessSearch Agents#
bootspring agent search "authentication"Output:
Matching Agents
───────────────
auth-expert NextAuth, Clerk, Auth0, sessions
security-expert OWASP, auth, encryption, auditing
backend-expert Node.js, APIs, server architecture
Invoke an Agent#
bootspring agent invoke frontend-expertThis opens an interactive session with the agent. Or use with the MCP server through your AI assistant.
Skill Commands#
List Skills#
bootspring skill listOutput:
Authentication (auth/)
──────────────────────
clerk Clerk authentication setup
nextauth NextAuth.js configuration
oauth OAuth provider integration
...
Database (database/)
────────────────────
prisma-crud Prisma CRUD operations
queries Optimized query patterns
...
Filter by category:
bootspring skill list --category auth
bootspring skill list --category paymentsSearch Skills#
bootspring skill search "stripe"Output:
Matching Skills
───────────────
payments/stripe Stripe setup
payments/checkout Checkout flow
payments/subscriptions Recurring billing
payments/webhooks Webhook handling
Show a Skill#
bootspring skill show payments/subscriptionsDisplays the full skill content with code examples.
Workflow Commands#
List Workflows#
bootspring workflow listOutput:
Development Workflows
─────────────────────
feature-development End-to-end feature building
database-migration Safe database migrations
security-audit Comprehensive security review
Launch Pack (Pro)
─────────────────
launch/pre-launch Pre-launch checklist
launch/landing-page High-converting landing page
...
Start a Workflow#
bootspring workflow start feature-developmentCheck Workflow Status#
bootspring workflow statusOutput:
Active Workflows
────────────────
ID: feat-dev-abc123
Name: feature-development
Status: Running
Phase: 3/5 (Implementation)
Started: 5 minutes ago
Resume/Pause Workflows#
# Pause a running workflow
bootspring workflow pause feat-dev-abc123
# Resume a paused workflow
bootspring workflow resume feat-dev-abc123Quality Commands#
Run Quality Gates#
1# Run pre-commit checks
2bootspring quality pre-commit
3
4# Run pre-push checks
5bootspring quality pre-push
6
7# Run all gates
8bootspring quality allOutput:
Quality Gate: pre-commit
════════════════════════
✓ TypeScript: No errors
✓ ESLint: 0 errors, 2 warnings
✓ Security: No vulnerabilities
✓ Format: All files formatted
Result: PASSED
Check Specific Files#
bootspring quality pre-commit --files src/components/Button.tsxContext Commands#
View Context#
# Show current context summary
bootspring context show
# Show full context
bootspring context show --fullSearch Context#
bootspring context search "prisma"Dashboard Commands#
Start Local Dashboard#
bootspring dashboardOpens a local dashboard at http://localhost:3333 with:
- Project status
- Agent activity
- Workflow progress
- Quality results
Dashboard Options#
# Custom port
bootspring dashboard --port 4000
# Open in browser automatically
bootspring dashboard --openAuthentication Commands#
Bootspring uses browser-based device flow authentication. Each directory is linked to a specific project.
Login#
bootspring auth loginOpens your browser to:
- Authenticate with your account
- Select or create a project
- Link the current directory to that project
A .bootspring.json file is created in the current directory.
Check Auth Status#
bootspring auth statusOutput:
Authenticated as: user@example.com
Tier: Pro
Devices: 2/5 used
Project: my-app (from .bootspring.json)
Switch Projects#
1# List available projects
2bootspring switch
3
4# Link current directory to a different project
5bootspring switch my-other-project
6
7# Show current project link
8bootspring switch context show
9
10# Unlink current directory
11bootspring switch context clearLogout#
bootspring auth logoutClears global credentials from ~/.bootspring/. Does not remove local .bootspring.json files.
Configuration Commands#
Validate Config#
bootspring config validateShow Effective Config#
bootspring config showReset Config#
bootspring config resetUpdate Command#
Check for Updates#
bootspring update checkUpdate Bootspring#
bootspring updateCommon Workflows#
Starting a New Project#
1# 1. Create project
2npx create-next-app@latest my-app
3cd my-app
4
5# 2. Authenticate and link to a project
6bootspring auth login
7# → Opens browser for sign-in and project selection
8# → Creates .bootspring.json
9
10# 3. Initialize Bootspring
11bootspring init
12
13# 4. Verify setup
14bootspring doctor
15
16# 5. Open AI assistant and start building!Daily Development#
1# Morning: Update context if needed
2bootspring generate
3
4# During development: Use agents via AI assistant
5# "Use the frontend-expert to..."
6
7# Before commit: Run quality gate
8bootspring quality pre-commit
9
10# Before push: Run thorough checks
11bootspring quality pre-pushStarting a Workflow#
1# 1. List available workflows
2bootspring workflow list
3
4# 2. Start the workflow
5bootspring workflow start feature-development
6
7# 3. Monitor progress
8bootspring workflow status
9
10# 4. Resume if paused
11bootspring workflow resume <workflow-id>Command Reference#
| Command | Description |
|---|---|
bootspring init | Initialize project |
bootspring generate | Generate CLAUDE.md |
bootspring doctor | Check setup |
bootspring agent list | List agents |
bootspring agent invoke <name> | Invoke agent |
bootspring skill list | List skills |
bootspring skill show <name> | Show skill |
bootspring workflow list | List workflows |
bootspring workflow start <name> | Start workflow |
bootspring workflow status | Check status |
bootspring quality <gate> | Run quality gate |
bootspring context show | Show context |
bootspring dashboard | Start dashboard |
bootspring auth login | Authenticate |
bootspring auth status | Check auth |
bootspring config show | Show config |
bootspring update | Update CLI |
Getting Help#
Command Help#
bootspring --help
bootspring agent --help
bootspring skill --helpVerbose Output#
Add --verbose or -v for detailed output:
bootspring generate --verboseDebug Mode#
BOOTSPRING_DEBUG=true bootspring <command>Environment Variables#
| Variable | Description |
|---|---|
BOOTSPRING_API_KEY | Your API key |
BOOTSPRING_DEBUG | Enable debug mode |
BOOTSPRING_PORT | Default server port |
BOOTSPRING_TIMEOUT | Request timeout (ms) |
Tips#
Aliases#
Add aliases to your shell config:
# ~/.zshrc or ~/.bashrc
alias bs="bootspring"
alias bsg="bootspring generate"
alias bsq="bootspring quality pre-commit"
alias bsd="bootspring doctor"Auto-completion#
Enable tab completion:
# For bash
bootspring completion bash >> ~/.bashrc
# For zsh
bootspring completion zsh >> ~/.zshrcQuick Context Refresh#
After significant changes:
bootspring generate && git add CLAUDE.mdNext Steps#
- Troubleshooting - Common issues
- Configuration - Full config reference
- CLI Reference - Complete command docs