graphql-kit / graphql-voyager

🛰️ Represent any GraphQL API as an interactive graph
https://graphql-kit.com/graphql-voyager/
MIT License
7.74k stars 514 forks source link

Command line launcher #21

Closed orefalo closed 6 years ago

IvanGoncharov commented 7 years ago

@orefalo A few questing to clarify your feature request. Do you want CLI command which launches a local version of our demo(https://apis.guru/graphql-voyager/)? Or you want CLI command where you pass IDL or URL to your server as arguments and it starts local server which displays only your API?

orefalo commented 7 years ago

The second,

Ideally a cli command which takes a Json or IDL schema definition would do.

graphql-voyager myschema.idl

To extend on the feature request, the file pointer could also be a URL, but this could be done with wget. nice to have, not must have

Thank you. Love the tool.

RomanHotsiy commented 6 years ago

It is already implemented by graphql-cli-voyager

npm install -g graphql-cli
npm install -g graphql-cli-voyager

setup according to the docs of graphql-cli and just run

graphql voyager