wp scaffold child-theme
Generates child theme based on an existing theme.
Creates a child theme folder with functions.php and style.css files.
Synopsis
bash
wp scaffold child-theme <slug> --parent_theme=<slug> [--theme_name=<title>] [--author=<full-name>] [--author_uri=<uri>] [--theme_uri=<uri>] [--activate] [--enable-network] [--force]Options
–parent_theme=
[–theme_name=<title>] What to put in the ‘Theme Name:’ header in ‘style.css’.
[–author=
[–author_uri=
[–theme_uri=
[–activate] Activate the newly created child theme.
[–enable-network] Enable the newly created child theme for the entire network.
[–force] Overwrite files that already exist.
Examples
bash
# Generate a 'sample-theme' child theme based on TwentySixteen
$ wp scaffold child-theme sample-theme --parent_theme=twentysixteen
Success: Created '/var/www/example.com/public_html/wp-content/themes/sample-theme'.