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
golf build
dev
or prod
:
Development (dev ) | Production (prod ) |
---|---|
• Copies .env file to dist/ directory• Environment variables loaded from local file • Optimized for local development and testing | • No .env file copied• Environment variables expected at runtime • Optimized for production deployment |
golf run
golf build
before using golf run
. For automatic telemetry with Golf Platform, set GOLF_API_KEY
before running (see Telemetry).