Skip to content

Latest commit

 

History

History
 
 

cli

Cosmo CLI aka "wgc"

npm version

Getting started

Prerequisites

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.

Installation

npx wgc schema push --service reviews --endpoint https://my-service.com/graphql <schema>.graphql

Development

Run the following script to test your changes locally:

pnpm build && pnpm wgc schema push

Everything behind wgc is passed to the wgc cli.

Authentication

The CLI uses the following environment variables to authenticate with the control plane:

  • COSMO_API_KEY - API key for the control plane
  • COSMO_API_URL - URL of the control plane