Help us shape the future of Go! Take the 2026 Go Developer Survey

cli

module
v0.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2026 License: MIT

README

togo CLI

The togo command — a Laravel-artisan-like CLI for the togo framework.

Install

Linux / macOS

curl -fsSL https://raw.githubusercontent.com/togo-framework/cli/main/install.sh | sh

Windows (PowerShell)

irm https://raw.githubusercontent.com/togo-framework/cli/main/install.ps1 | iex

With Go (note the /cmd/togo path — it's what makes the binary togo):

go install github.com/togo-framework/cli/cmd/togo@latest

Update

curl -fsSL https://raw.githubusercontent.com/togo-framework/cli/main/update.sh | sh   # Linux/macOS
irm https://raw.githubusercontent.com/togo-framework/cli/main/update.ps1 | iex        # Windows

Commands

Project      togo new <app> · togo serve · togo version
Make         togo make:resource <Name> <field:type...>  (model, sqlc, Atlas, GraphQL, REST, seeder, Next.js page)
             togo make:model|query|migration|graphql|api|seeder|page
Codegen      togo generate   (sqlc → gqlgen → atlas diff → OpenAPI export)
             togo stub:publish
Database     togo migrate · migrate:diff · migrate:status · migrate:fresh · seed · db:reset
Plugins      togo install <owner/repo> · togo plugin:list
MCP / AI     togo mcp:install --agent claude-code · togo mcp:serve
Infra        togo infra:init <provider> · togo deploy

Generators

togo make:resource Post title:string body:text:nullable published:bool emits per-resource fragments across six targets plus regenerated route/resolver registries, all driven by togo.resources.yaml. Field types: string, text, int, bool, float, decimal, uuid, time, date, json; append :nullable (or a quoted ?) to make a field optional. Flags: --dry-run, --force.

CLI is plugin-extensible

Any executable named togo-<cmd> on PATH or in ~/.togo/bin becomes togo <cmd> (git/kubectl-style), and togo install owner/repo registers plugin commands.

License

MIT

Directories

Path Synopsis
cmd
togo command
Command togo is the CLI for the togo framework — a Laravel-artisan-like developer experience for the Go + sqlc + Atlas + GraphQL/OpenAPI + Next.js stack.
Command togo is the CLI for the togo framework — a Laravel-artisan-like developer experience for the Go + sqlc + Atlas + GraphQL/OpenAPI + Next.js stack.
internal
config
Package config loads and represents a togo project's configuration (togo.yaml) and the resource manifest (togo.resources.yaml) that drives code generation.
Package config loads and represents a togo project's configuration (togo.yaml) and the resource manifest (togo.resources.yaml) that drives code generation.
scaffold
Package scaffold renders a new togo project from the create-togo-app template.
Package scaffold renders a new togo project from the create-togo-app template.
templates
Package templates embeds the per-artifact generator stubs and resolves them, preferring per-project overrides published to ./.togo/stubs (artisan parity).
Package templates embeds the per-artifact generator stubs and resolves them, preferring per-project overrides published to ./.togo/stubs (artisan parity).
ui
Package ui provides minimal, dependency-free colored terminal output for the CLI.
Package ui provides minimal, dependency-free colored terminal output for the CLI.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL