CLI
Run commands from the generated project directory.
| Command | Purpose |
|---|---|
ctg new | Interactive installer |
ctg new online-store | Creates a named project |
ctg dev | Native Go + Vite |
ctg dev --build | Native Runtime with a project-local binary |
ctg dev --lite | Lite Runtime opt-in |
ctg build | Builds the application and frontend |
ctg doctor | Project diagnostics |
ctg doctor --db --production | Production checks |
ctg route:list | Lists routes |
ctg open | Opens the application |
ctg studio | Opens Studio |
ctg key:generate | Generates an application key |
ctg env:format | Formats dotenv setting groups |
ctg resource:sync | Synchronizes resource protection |
Generator#
ctg make:controller ProductController
ctg make:model Product
ctg make:migration create_products_table
ctg make:job SendWelcomeEmailOther generators include make:middleware, make:service, make:listener, make:seeder, make:factory, and make:mail.
Read the resource generator and migration guides before running commands that modify your application.
Versioned sources v5.0.0: cli/cli.go · cli/commands.go · README.md.