Back to Docs

CLI Reference

Complete guide to all CoFounder CLI commands

# Install globally
npm install -g @aicofounder/cli
# Or use with npx
npx @aicofounder/cli init

Core Commands

cofounder initInitialize CoFounder in your project
cofounder checkCheck compliance with CoFounder standards
cofounder fixAutomatically fix detected issues
cofounder deployDeploy with verification workflow
cofounder statusShow project status
cofounder doctorDiagnose project setup
cofounder playgroundInteractive testing playground
cofounder demoRun quick feature demo
cofounder quickstartShow quickstart guide

Code Generation

cofounder generate "<prompt>"Generate code from natural language
cofounder generate:templatesList available templates
cofounder generate:interactiveInteractive code generation

Prompt Management

cofounder prompts saveSave a new prompt with metadata
cofounder prompts listList saved prompts with filters
cofounder prompts use <name>Get and use a saved prompt
cofounder prompts analyzeAnalyze prompt quality score
cofounder prompts improveGet AI improvement suggestions
cofounder prompts compare <a> <b>Compare two prompts side-by-side
cofounder prompts exportExport prompts to JSON
cofounder prompts importImport prompts from file

MCP Servers

cofounder mcp:createCreate new MCP server from template
cofounder mcp:listList installed MCP servers
cofounder mcp:installInstall MCP server from npm/git
cofounder mcp:configureConfigure MCP server settings
cofounder mcp:testTest MCP server tools

Cost & Analytics

cofounder dashboardReal-time cost dashboard
cofounder analyzeAnalyze project and get recommendations
cofounder optimizeApply cost optimizations automatically
cofounder cost:estimateEstimate LLM costs
cofounder cost:compareCompare provider pricing

LLM Management

cofounder llm:setupSetup LLM providers
cofounder llm:analyzeAnalyze LLM usage and costs
cofounder llm:optimizeApply LLM optimizations
cofounder llm:compareCompare models and pricing

Database

cofounder db:setupInteractive database setup wizard
cofounder db:migrateRun database migrations
cofounder db:seedSeed database with data
cofounder db:studioOpen Prisma Studio
cofounder db:statusShow database status

Security

cofounder security:auditRun security audit
cofounder security:setupInteractive security setup
cofounder auditQuick security audit

SEO

cofounder seo:checkValidate SEO setup
cofounder seo:generateGenerate sitemap, robots.txt
cofounder seo:analyzeAnalyze pages for SEO

Process Intelligence

cofounder analyze:velocityDevelopment velocity & DORA metrics
cofounder analyze:legacyLegacy code modernization analysis
cofounder benchmark:runBenchmark LLM providers

Need Help?

Run any command with --help for detailed options

cofounder generate --help