2.0.18 • Published 3 years ago

@pablosz/gqless-cli v2.0.18

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@gqless/cli

Create a typed gqless client from a graphql endpoint

Version Downloads/week License

Usage

$ npm install -g @pablosz/gqless-cli
$ gqless COMMAND
running command...
$ gqless (-v|--version|version)
@pablosz/gqless-cli/0.0.9 linux-x64 node-v13.8.0
$ gqless --help [COMMAND]
USAGE
  $ gqless COMMAND
...

Commands

gqless generate [OUTPUT_DIR]

Generate a client from a GraphQL endpoint

USAGE
  $ gqless generate [OUTPUT_DIR]

OPTIONS
  -c, --config=config  Path to your gqless config file
  -h, --help           show CLI help
  -t, --typescript     output typescript (instead of javascript)
  -u, --url=url        url to the GraphQL endpoint
  --comments           output comments to type definitions (useful for IDE intellisense)

  --header=header      Additional header to send to server for introspectionQuery. May be used multiple times to add
                       multiple headers.

EXAMPLES
  $ gqless generate ./src/gqless -u https://example.com/graphql
  $ gqless generate -c gqless.config.ts

See code: dist/commands/generate.js

gqless help [COMMAND]

display help for gqless

USAGE
  $ gqless help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help