Create a folder with a minimal theme file. If no arguments or options are passed to the command, they can be entered interactively.

Usage

wpc theme:start [options] [--] [<name> [<slug>]]

Arguments

name
string
required

Name of the theme.

slug
string

This will be the folder name and the slug of the theme. 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 theme’s header (see the WordPress documentation).

--theme-version
string
default:"1.0.0"

Version theme header

--author
string

Author theme header

--author-uri
string

Author URI theme header

--theme-uri
string

Theme URI theme header

--description
string

Description theme header

--requires-at-least
string

Requires at least theme header

--requires-php
string

Requires PHP theme header

--license
string

License theme header

--license-uri
string

License URI theme header

--text-domain
string

Text Domain theme header

--domain-path
string

Domain Path theme header

--tags
string

Tags theme header

Interactive mode

If you don’t pass any argument or option, the command runs in interactive mode. You’ll be prompted to enter the theme name and can optionally define additional headers.

Examples

$ cd /Users/mkey/Wordpress/wp-content/themes/

$ wpc theme:start --author="Happy Monkey" --author-uri="https://mkey.fr" --theme-version=1.0.0 --no-interaction dummy
Theme initialized at path : /Users/mkey/Wordpress/wp-content/themes/dummy