The `wgc` package is the official command-line interface (CLI) for WunderGraph Cosmo, an open-source, full-lifecycle GraphQL API management platform. It empowers developers to manage federated GraphQL APIs and subgraphs, perform critical schema checks and composition validations, generate and deploy router configurations, and integrate these processes seamlessly into CI/CD pipelines. As of its current stable version `0.114.2`, the project exhibits a highly active release cadence across its components, including the router and control plane, indicating continuous development. Key differentiators include its comprehensive support for GraphQL Federation v1 and v2, a centralized Schema Registry with versioning, automated composition checks for breaking changes, integrated observability with OpenTelemetry and Prometheus, and robust access control mechanisms like OIDC, RBAC, and SCIM.
npm install wgcVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to set up a local federated GraphQL environment using WunderGraph Cosmo, including installing the CLI, starting example subgraphs, composing a router configuration, and running the Cosmo router via Docker.
Ensure Node.js v20 LTS or higher is installed on your system. It is recommended to use a version manager like `nvm` (e.g., `nvm install 20 && nvm use 20`) to manage Node.js versions.
Install Docker Desktop or a compatible Docker engine for your operating system. Verify Docker is running and accessible from your terminal before attempting to run the Cosmo router.
For global terminal access, use `npm install -g wgc@latest`. If a local installation is required (e.g., for project-specific scripts), use `npx wgc <command>` or reference the local executable via `$(npm bin)/wgc <command>`.
Install `wgc` globally using `npm install -g wgc@latest` or run commands via `npx -y wgc@latest <command>`.
Upgrade your Node.js environment to v20 LTS or higher. Consider using `nvm` (Node Version Manager) to easily manage and switch Node.js versions (e.g., `nvm install 20 && nvm use 20`).
Verify the file path provided to the command. Ensure the file exists and that you are executing the command from the correct directory, or provide the full absolute path to the file.
No dependency data recorded yet.