granate-cli
TypeScript icon, indicating that this package has built-in type declarations

1.6.1 • Public • Published

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.

Package Sidebar

Install

npm i granate-cli

Weekly Downloads

1

Version

1.6.1

License

MIT

Last publish

Collaborators

  • almilo