Skip to content

almilo/granate-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

granate-cli

npm version Build Status

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.