The GraphCDN CLI allows you to configure your cache from your codebase. We recommend using it to push the latest schema from CI.

Setup

Install the CLI using npm and login into your account:

npm install --global graphcdn
graphcdn login

Commands

Once you are logged in you can run the following commands:

# Pull your service's configuration and create/update your graphcdn.yml
graphcdn pull --service <service-name>
# Push a specific configuration property to your service
# WARNING: Always pull first, otherwise this will override any changes made to your service's configuration in the dashboard!
graphcdn push schema
graphcdn push rules
# etc.
# Push your entire graphcdn.yml to your service
# WARNING: Always pull first, otherwise this will override any changes made to your service's configuration in the dashboard!
graphcdn push
# List all the services in an organization
graphcdn ls --org <org-slug>