CLI

Full-featured command-line interface for project scaffolding, code generation, database commands, deployment, and AI assistance. Built on Cobra with interactive prompts and styled terminal output.

Installation

go install github.com/CodeSyncr/nimbus/cmd/nimbus@latest
nimbus --version

Project Commands

CommandDescription
nimbus new [name]Create a new project with interactive wizard
nimbus serveStart dev server with hot reload (Air)
nimbus buildBuild frontend assets (CSS/JS) to public/
nimbus replStart interactive REPL session

Code Generators

All generators follow nimbus make:<type> <Name>:

CommandCreatesLocation
make:model UserGORM modelapp/models/user.go
make:controller UserHTTP controllerapp/controllers/user.go
make:migration create_usersTimestamped migrationdatabase/migrations/
make:middleware AuthMiddleware functionapp/middleware/auth.go
make:job SendEmailQueue job with Handle/Failedapp/jobs/send_email.go
make:seeder UserSeederDatabase seederdatabase/seeders/user_seeder.go
make:validator UserValidation schemaapp/validators/user.go
make:command GreetCustom CLI commandapp/commands/greet.go
make:plugin AnalyticsFull plugin skeleton (9 files)app/plugins/analytics/
make:authComplete auth scaffoldingmodel, controller, views, routes

Database Commands

CommandDescription
db:createCreate the database
db:migrateRun pending migrations
db:rollbackRollback the last migration batch
db:seedRun database seeders

Queue & Scheduler

CommandDescription
queue:workStart processing queue jobs
schedule:runStart the scheduler (blocks)
schedule:listList all scheduled tasks

Deploy Commands

CommandDescription
deployDeploy to production (Fly.io, Railway, Render, AWS, GCP)
deploy:initInitialize deployment configuration
deploy:statusCheck deployment status
deploy:logsView deployment logs
deploy:rollbackRollback to previous deployment

Plugins

CommandDescription
nimbus plugin:install <name>Add a framework plugin (reverb, horizon, telescope, โ€ฆ), patch bin/server.go, optional config/
nimbus plugin:listList installable plugin names

Since framework v1.0.0, the same commands are available as nested Cobra commands: nimbus plugin install <name> and nimbus plugin list.

Nimbus Cloud Authentication

CommandDescription
nimbus loginAuthenticate CLI with your Nimbus Cloud account (nimbusgo.space) via browser OAuth
nimbus logoutClear saved credentials from ~/.nimbus/auth.json
nimbus whoamiDisplay logged-in account, email, and AI subscription plan

AI Copilot Workspace

CommandDescription
nimbus aiClaude Code CLI-style interactive multi-turn AI terminal workspace
nimbus ai "prompt"Query Nimbus Cloud AI with prompt, preview/apply file changes, and continue in chat mode
nimbus test:generateAI Test Generator โ€” create unit tests from controller code (100% offline static analysis)

Running nimbus ai drops you directly into an interactive session with built-in slash commands:

Slash CommandAction
/helpView shortcut commands and syntax guide
/clearClear screen and reset session header banner
/contextScan project models, routes, and directory structure
/modelsShow active AI generation model
/offlineToggle between Cloud synthesizer and offline rule-based generator
/exitExit interactive AI copilot session

Project Scaffolding

The nimbus new wizard prompts for project name, database driver (PostgreSQL/MySQL/SQLite), features (Auth, API, Queue, Scheduler, AI, MCP), and frontend (Tailwind/plain/none). It generates a complete project structure:

myapp/
โ”œโ”€โ”€ main.go          # Entry point
โ”œโ”€โ”€ go.mod           # Module definition
โ”œโ”€โ”€ .env             # Environment variables
โ”œโ”€โ”€ app/
โ”‚   โ”œโ”€โ”€ controllers/ # HTTP controllers
โ”‚   โ”œโ”€โ”€ models/      # GORM models
โ”‚   โ”œโ”€โ”€ middleware/   # Custom middleware
โ”‚   โ”œโ”€โ”€ validators/  # Validation schemas
โ”‚   โ””โ”€โ”€ jobs/        # Queue jobs
โ”œโ”€โ”€ config/          # Configuration structs
โ”œโ”€โ”€ database/
โ”‚   โ”œโ”€โ”€ migrations/  # Schema migrations
โ”‚   โ””โ”€โ”€ seeders/     # Data seeders
โ”œโ”€โ”€ resources/views/ # Nimbus templates
โ”œโ”€โ”€ public/          # Static assets
โ”œโ”€โ”€ start/
โ”‚   โ”œโ”€โ”€ routes.go    # Route definitions
โ”‚   โ”œโ”€โ”€ kernel.go    # Bootstrap
โ”‚   โ”œโ”€โ”€ jobs.go      # Job registration
โ”‚   โ””โ”€โ”€ schedule.go  # Scheduled tasks
โ””โ”€โ”€ bin/
    โ””โ”€โ”€ server.go    # Server bootstrap