Reference for the GolfMCP command-line interface.
golf
command-line interface is your primary tool for managing GolfMCP projects.
golf init
project_name
in the current location.Alias: -o
default
- Standard GolfMCP project with example componentsapi_key
- Project pre-configured with API key authenticationgolf build
dev
or prod
.dev
: Creates a development build. Copies the .env
file from your project root to the output directory (dist/
) so the server can access environment variables during local development.prod
: Creates a production build. Environment variables are expected to be set in the production environment itself, so .env
is not copied.golf run
golf build
before using golf run
. The command executes the server from the dist/
directory.