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.
Running the command without any options will activate Sage with all of the default options.
- 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
The theme name to activate. Default: 'sage'
What to show on the front page. Options are: 'posts', 'page'. Default: 'page'
Permalink structure. Default: '/%postname%/'
Skips creating default Primary Navigation.
wp theme activation
wp theme activation --show-on-front=page --permalink-structure='/%year%/%postname%/' --skip-navigation