CLI

Run commands from the generated project directory.

CommandPurpose
ctg newInteractive installer
ctg new online-storeCreates a named project
ctg devNative Go + Vite
ctg dev --buildNative Runtime with a project-local binary
ctg dev --liteLite Runtime opt-in
ctg buildBuilds the application and frontend
ctg doctorProject diagnostics
ctg doctor --db --productionProduction checks
ctg route:listLists routes
ctg openOpens the application
ctg studioOpens Studio
ctg key:generateGenerates an application key
ctg env:formatFormats dotenv setting groups
ctg resource:syncSynchronizes resource protection

Generator#

BASH
ctg make:controller ProductController
ctg make:model Product
ctg make:migration create_products_table
ctg make:job SendWelcomeEmail

Other 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.

Search documentation

Type to search the documentation.