Urigo / graphql-cli

📟 Command line tool for common GraphQL development workflows

Home Page:https://graphql-cli.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The --boilerplate option has been removed without providing an alternative

beeman opened this issue · comments

Describe the bug
A clear and concise description of what the bug is.

In this commit the --boilerplate option has been removed without providing an alternative or a clear reason why.

This breaks various scripts and documentation on various sites and books (including the one I'm writing).

I would love to see the option back.

To Reproduce
Steps to reproduce the behavior:

  1. install graphql-cli globally
  2. Run graphql create my-app --boilerplate typescript-minimal
  3. An error occurs: Unknown argument: boilerplate

Expected behavior

The boilerplate should be selected based on the parameter.

Screenshots
If applicable, add screenshots to help explain your problem.

Versions (please complete the following information):

  • OS: macOS Mojave
  • graphql-cli: 3.0.11

Additional context
I will see if I can add a PR that makes it work again.

Somehow it also seems to disable the update-notifier.

Workaround: run the command without the --boilerplate option which will present an interactive menu to chose a boilerplate.

graphql create my-app

Helped me get post this roadblock. Still annoyed that the parameter being dropped caused me to waste time getting distracted from the main task at hand.

If you want to implement and sepcific boilerplate now, use a following scheme graphql create react-fullstack-basic my-app.

We have just released a new structure for GraphQL CLI in new alpha versions channel - 4.0.0-alpha.XXX!

We suggest to use the init command of GraphQL CLI which was completely rewritten!

Checkout the new instructions and the migration guide on the docs and let us know your feedback during that alpha period!

Feel free to contact us by opening an issue or using our Discord channel;
https://discord.gg/xud7bH

I've posted the wrong Discord link, this is the correct one: https://discord.gg/xud7bH9