Company
Date Published
Author
Michael Hunger
Word count
270
Language
English
Hacker News points
None

Summary

Graphcool has released its GraphQL command-line tools, which can be easily installed using `npm install -g graphql-cli`. The tools utilize the `graphql-config` format for storing endpoints and configuration information in YAML or JSON. For testing purposes, a quick demo is provided to showcase the available commands, including `graphql init`, `graphql ping`, and others. To use the tools effectively, it's essential to set up authentication headers correctly, as an error was encountered when attempting to run `graphql ping` without this crucial information. The author of the blog post delved into the code to find a solution, ultimately covering plugin options, schema fetching, and altering current schemas in a follow-up article on Medium.