Official documentation: https://cosmo-docs.wundergraph.com/cli
The cosmo CLI tool wgc
. Used to manage the cosmo platform e.g. pushing schema, check schemas, creating new projects, managing users, etc. It interacts with the control plane.
npx wgc --help
# or install it globally
npm install -g wgc --help
Ensure that at least Node.js 20.6.0 is installed because we rely on the native .env file support.
Replace env.example
with .env
and fill in the required values. By default, we point to the services of your local development environment.
Run any command with pnpm wgc
to test your changes locally directly.
pnpm wgc ...
Everything behind wgc
is passed to the wgc
cli. This allows you to test your changes locally.
pnpm test