Feat:[gatsby-cli] Allow plugins to create their own commands. #31782
Unanswered
nagiek
asked this question in
Ideas / Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Given that gatsby-cli is built on yargs and seems quite extendible, it might be interesting to run an
apiRunner
to extend the cli with any commands offered by other plugins. Plugins could save their commands in agatsby-cli.js
file. These commands would then be loaded and included in createCli().Example use cases might be:
I am sure everyone is far too busy for this, but I wanted to make the suggestion.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions