Create a folder with a minimal plugin file. If no arguments or options are passed to the command, they can be entered interactively.
Usage
wpc plugin:start [options] [--] [<name> [<slug>]]
Arguments
This will be the folder name and the slug of the plugin. If you don’t specify the slug, the name will be used to create one.
Options
The options allow you to set the information in your plugin’s header (see the WordPress documentation).
Description plugin header
Requires at least plugin header
Requires PHP plugin header
--author
string
default:"<Organization Name>"
--author-uri
string
default:"<Organization Website>"
License URI plugin header
Text Domain plugin header
Domain Path plugin header
Do not ask any interactive question
Examples
$ cd /Users/mkey/Wordpress/wp-content/plugins/
$ wpc plugin:start --author="Happy Monkey" --author-uri="https://mkey.fr" --plugin-version=1.0.0 --no-interaction dummy
Plugin initialized at path : /Users/mkey/Wordpress/wp-content/plugins/dummy
$ cd /Users/mkey/Wordpress/wp-content/plugins/
$ wpc plugin:start --author="Happy Monkey" --author-uri="https://mkey.fr" --plugin-version=1.0.0 --no-interaction dummy
Plugin initialized at path : /Users/mkey/Wordpress/wp-content/plugins/dummy
$ wpc plugin:start
Plugin name: <dummy>
Would you like to define plugin additional headers ? [N/y] <y>
Plugin URI: <>
Description: <Lorem ipsum dolor sit amet>
Version: <1.0.1>
Requires at least: <6.0>
Requires PHP: <8.2>
Author: <Happy Monkey>
Author URI: <https://mkey.fr>
License: <>
License URI: <>
Text Domain: <dummy>
Domain Path: <>
Network:<>
Plugin initialized at path : /Users/mkey/Wordpress/wp-content/plugins/dummy