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

name
string
required
Name of the plugin.
slug
string
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).
--plugin-uri
string
Plugin URI plugin header
--description
string
Description plugin header
--plugin-version
string
default:"1.0.0"
Version plugin header
--requires-at-least
string
Requires at least plugin header
--requires-php
string
Requires PHP plugin header
--author
string
default:"<Organization Name>"
Author plugin header
--author-uri
string
default:"<Organization Website>"
Author URI plugin header
--license
string
License plugin header
--license-uri
string
License URI plugin header
--text-domain
string
Text Domain plugin header
--domain-path
string
Domain Path plugin header
--network
string
Network plugin header
--no-interaction
boolean
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