Skip to Content

gofasta doctor

Verifies that required and optional tools are installed, checks project configuration, and tests database connectivity. Useful for diagnosing setup issues and for including in bug reports.

Usage

gofasta doctor

This command takes no flags.

Examples

$ gofasta doctor Required: go go version go1.25.0 darwin/arm64 migrate v4.18.1 Optional: docker Docker version 27.4.0 air available (Go tool) wire available (Go tool) gqlgen available (Go tool) swag available (Go tool) Project: config.yaml found database reachable

What It Checks

Required Tools

ToolWhat it checks
goGo compiler is installed and reports its version
migrategolang-migrate CLI is installed

Optional Tools

ToolWhat it checks
dockerDocker is installed (needed for docker compose workflows)
airAir hot-reload tool is available as a Go tool
wireGoogle Wire DI generator is available
gqlgenGraphQL code generator is available (only needed for GraphQL projects)
swagSwagger/OpenAPI generator is available

Project Health

When run inside a project directory (where config.yaml exists):

CheckWhat it verifies
config.yamlConfiguration file exists
databaseDatabase is reachable using the connection details from config
Last updated on