GraphQL CLI tool for creating apollo-server, typedefs, resolvers and datasources and more.
To install the GraphQL CLI tool:
$ npm install -g graphql-dev
- cd /project-path
- Run
graphql-dev serverto create a new apollo-server.
Run graphql-dev -l to list all available commands:
$ graphql-dev -l
Available commands:
graphql-dev server
Run graphql-dev <command> --help to learn more about each command. For example:
$ graphql-dev server --help
Usage:
graphql-dev server [options] [<name>]
Refer to Create a simple apollo-server for more information.