WordPress-Plugin-Boilerplate
WordPress-Plugin-Boilerplate copied to clipboard
Add to wp-cli?
Hey, is it possible, that this boilerplate could be added to the wp-cli?
Cheers
Chris
Doubt it, since it's not an official WordPress plugin boilerplate...
Ok, thx :)
Actually @dingo-d is incorrect. You would write and distribute a package (no WP install required) or a plugin (for an installed WP).
Take a look at third party commands.
What you linked is a way to integrate your plugin/lib with wp-cli, but it won't be bundled with wp-cli 😉
To clarify: you can add code in the plugin boilerplate that will, if wo-cli is installed, add additional commands to be used in tandem with wp-cli. But you won't be able to just install wp-cli and say: wp plugin boilerplate scaffold and get the current boilerplate setup, as that would mean that people maintaining the plugin scaffold would have to add the code in the wp-cli.
You have wp plugin scaffold command out of the box which gives you basic plugin files, but not much more.