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