Skip to Content

Installation

The Gofasta CLI is a standalone Go binary. You need Go 1.24 or later installed on your machine.

go install github.com/gofastadev/cli/cmd/gofasta@latest

This 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 | sh

This 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/gofasta

Verify Installation

gofasta --help

You 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 command

Prerequisites for Generated Projects

The CLI itself only needs Go. But the projects it generates use these tools (installed automatically during gofasta new):

ToolPurposeInstalled via
Wire Compile-time dependency injectiongo install (as a Go tool)
gqlgen GraphQL code generationgo install (as a Go tool)
Air Hot reload during developmentgo install (as a Go tool)
Docker Run the app + PostgreSQL locallyManual 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