granate-cli
v1.6.1
Published
CLI for granate container
Downloads
5
Maintainers
Readme
granate-cli
CLI for granate
Introduction
granate-cli provides several useful commands to use granate from the command line.
Commands
serve
Starts an HTTP GraphQL server with the given schema file.
> granate serve schema.graphql --port 4000 --graphiql true --root root-value.js --context context-value.js
granate serve [schema-file]
Options:
--help Show help [boolean]
--port, -p the server port [number] [default: 4000]
--graphiql, -g deploy GraphiQL [boolean] [default: true]
--root, -r JS module to use as root value [string]
--context, -c JS module to use as context value [string]
Usage
For more information see granate-showcase.