WordPress-Plugin-Boilerplate icon indicating copy to clipboard operation
WordPress-Plugin-Boilerplate copied to clipboard

Add to wp-cli?

Open Chris2011 opened this issue 7 years ago • 4 comments
trafficstars

Hey, is it possible, that this boilerplate could be added to the wp-cli?

Cheers

Chris

Chris2011 avatar Jun 25 '18 09:06 Chris2011

Doubt it, since it's not an official WordPress plugin boilerplate...

dingo-d avatar Jun 25 '18 10:06 dingo-d

Ok, thx :)

Chris2011 avatar Jun 25 '18 11:06 Chris2011

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.

queenvictoria avatar Feb 16 '19 22:02 queenvictoria

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.

dingo-d avatar Feb 17 '19 08:02 dingo-d