Installation
The Gofasta CLI is a standalone Go binary. You need Go 1.24 or later installed on your machine.
Option A: Go Install (recommended)
go install github.com/gofastadev/cli/cmd/gofasta@latestThis downloads, compiles, and places the gofasta binary in your $GOPATH/bin directory. Make sure $GOPATH/bin is in your PATH.
Option B: Shell Script
curl -fsSL https://raw.githubusercontent.com/gofastadev/cli/main/dist/install.sh | shThis downloads a pre-built binary for your platform (Linux or macOS, amd64 or arm64) and places it in /usr/local/bin.
Option C: Homebrew (macOS / Linux)
brew install gofastadev/tap/gofastaVerify Installation
gofasta --helpYou should see a list of available commands:
The Gofasta CLI creates new projects, generates code,
and runs common development tasks.
Usage:
gofasta [command]
Available Commands:
new Create a new Gofasta project
dev Run the development server with hot reload
generate Generate code (model, service, controller, etc.)
migrate Run database migrations
seed Run database seeders
init Initialize a cloned project
serve Start the HTTP server
wire Regenerate Wire dependency injection
swagger Generate Swagger/OpenAPI docs
help Help about any commandPrerequisites for Generated Projects
The CLI itself only needs Go. But the projects it generates use these tools (installed automatically during gofasta new):
| Tool | Purpose | Installed via |
|---|---|---|
| Wire | Compile-time dependency injection | go install (as a Go tool) |
| gqlgen | GraphQL code generation | go install (as a Go tool) |
| Air | Hot reload during development | go install (as a Go tool) |
| Docker | Run the app + PostgreSQL locally | Manual install |
Docker is optional — you can run the app directly on your machine if you have a local PostgreSQL instance.
Next Steps
Last updated on