The Graphcool CLI is the primary tool to manage your Graphcool services. Generally, the shape and contents of a Graphcool service are determined by the service definition file
The CLI offers tools to modify the local version of your service definition and file structure as well as syncing these changes with already deployed services.
You can install the Graphcool Framework CLI with NPM:
npm install -g graphcool
Once the CLI is installed on your machine, you can invoke it as follows:
Or, using the short form of the
Most of the CLI commands accept specific arguments (options) that you can provide when invoking the command.
For each option that you provide, you can use either of the following two forms:
graphcool deploy --target prod.
graphcool deploy -t prod.
It is possible to override the
default option using an environment variable called
export GRAPHCOOL_TARGET=shared-eu-west-1/cj8vn13me01er0147a280yhwn graphcool deploy # runs without having a .graphcoolrc or overrides its `default` entry
Was this page helpful?