A WP-CLI package that generates starter themes from underscoretw.com.
After installing WP-CLI, please run:
wp package install underscoretw/scaffoldRun the command without a slug to launch the interactive wizard:
wp scaffold _twLLMs or automated processes can generate themes using arguments:
wp scaffold _tw [<slug>] [--theme_name=<title>] [--prefix=<prefix>]
[--theme_uri=<uri>] [--author=<full-name>] [--author_uri=<uri>]
[--description=<text>] [--activate] [--enable-network] [--force]
All of the above arguments also work with the interactive wizard.
wp scaffold underscoretw is available as an alias.
The wizard will prompt for:
- Theme name (required)
- Theme slug (derived from the name by default)
- Function prefix (derived from the slug by default)
- Author, author URI, theme URI, and description (all optional)
After collecting your inputs, the wizard displays a summary and asks for confirmation before generating the theme.
| Option | Description |
|---|---|
<slug> |
The slug for the new theme. If omitted, the interactive wizard is launched. |
--theme_name=<title> |
Theme name. Derived from the slug when not set. |
--prefix=<prefix> |
Function prefix for the theme. Derived from the slug when not set. |
--theme_uri=<uri> |
Theme URI header value. |
--author=<full-name> |
Author header value. |
--author_uri=<uri> |
Author URI header value. |
--description=<text> |
Description header value. |
--activate |
Activate the theme after generating it. |
--enable-network |
Enable the theme for the entire network after generating it. |
--force |
Overwrite the theme directory if it already exists. |
Generate a theme using the interactive wizard:
wp scaffold _twGenerate a theme with default settings:
wp scaffold _tw my-themeGenerate a theme with custom options:
wp scaffold _tw my-theme --theme_name="My Theme" --author="Jane Doe" --description="A custom theme"Generate and activate:
wp scaffold _tw my-theme --theme_name="My Theme" --activateOverwrite an existing theme:
wp scaffold _tw my-theme --forceThis package began as a fork of wp-cli/scaffold-command. Its wizard was inspired by npm init.