Installation
The quick and dirty method is to drop theme-activation-command.php into your /mu-plugins/ directory.
For other methods, please refer to WP-CLI's Community Packages wiki.
Usage
Running the command without any options will activate Sage with all of the default options.
wp theme activation
- Activates Sage
- Creates page called Home and sets as static front page
- Creates a new menu called Primary Navigation and adds newly created home page to it
Options
[<theme>]
The theme name to activate. Default: 'sage'
[--show-on-front=<page-type>]
What to show on the front page. Options are: 'posts', 'page'. Default: 'page'
[--permalink-structure=<permalink-string>]
Permalink structure. Default: '/%postname%/'
[--skip-navigation]
Skips creating default Primary Navigation.
Examples
wp theme activation
wp theme activation --show-on-front=page --permalink-structure='/%year%/%postname%/' --skip-navigation