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 init | Initialize CoFounder in your project |
| cofounder check | Check compliance with CoFounder standards |
| cofounder fix | Automatically fix detected issues |
| cofounder deploy | Deploy with verification workflow |
| cofounder status | Show project status |
| cofounder doctor | Diagnose project setup |
| cofounder playground | Interactive testing playground |
| cofounder demo | Run quick feature demo |
| cofounder quickstart | Show quickstart guide |
Code Generation
| cofounder generate "<prompt>" | Generate code from natural language |
| cofounder generate:templates | List available templates |
| cofounder generate:interactive | Interactive code generation |
Prompt Management
| cofounder prompts save | Save a new prompt with metadata |
| cofounder prompts list | List saved prompts with filters |
| cofounder prompts use <name> | Get and use a saved prompt |
| cofounder prompts analyze | Analyze prompt quality score |
| cofounder prompts improve | Get AI improvement suggestions |
| cofounder prompts compare <a> <b> | Compare two prompts side-by-side |
| cofounder prompts export | Export prompts to JSON |
| cofounder prompts import | Import prompts from file |
MCP Servers
| cofounder mcp:create | Create new MCP server from template |
| cofounder mcp:list | List installed MCP servers |
| cofounder mcp:install | Install MCP server from npm/git |
| cofounder mcp:configure | Configure MCP server settings |
| cofounder mcp:test | Test MCP server tools |
Cost & Analytics
| cofounder dashboard | Real-time cost dashboard |
| cofounder analyze | Analyze project and get recommendations |
| cofounder optimize | Apply cost optimizations automatically |
| cofounder cost:estimate | Estimate LLM costs |
| cofounder cost:compare | Compare provider pricing |
LLM Management
| cofounder llm:setup | Setup LLM providers |
| cofounder llm:analyze | Analyze LLM usage and costs |
| cofounder llm:optimize | Apply LLM optimizations |
| cofounder llm:compare | Compare models and pricing |
Database
| cofounder db:setup | Interactive database setup wizard |
| cofounder db:migrate | Run database migrations |
| cofounder db:seed | Seed database with data |
| cofounder db:studio | Open Prisma Studio |
| cofounder db:status | Show database status |
Security
| cofounder security:audit | Run security audit |
| cofounder security:setup | Interactive security setup |
| cofounder audit | Quick security audit |
SEO
| cofounder seo:check | Validate SEO setup |
| cofounder seo:generate | Generate sitemap, robots.txt |
| cofounder seo:analyze | Analyze pages for SEO |
Process Intelligence
| cofounder analyze:velocity | Development velocity & DORA metrics |
| cofounder analyze:legacy | Legacy code modernization analysis |
| cofounder benchmark:run | Benchmark LLM providers |
Need Help?
Run any command with --help for detailed options
cofounder generate --help