mirror of
https://gh.wpcy.net/https://github.com/andreaporotti/wp-install-powershell.git
synced 2026-05-04 10:52:25 +08:00
46 lines
1.7 KiB
YAML
46 lines
1.7 KiB
YAML
# Enable the Apache rewrite module needed by the WP-CLI rewrite command.
|
|
apache_modules:
|
|
- mod_rewrite
|
|
|
|
# ====== COMMANDS CONFIGURATION ======
|
|
# Add extra PHP code to the wp-config.php file.
|
|
config create:
|
|
extra-php: |
|
|
// Set max revisions number.
|
|
define( 'WP_POST_REVISIONS', 5 );
|
|
|
|
// Disable all automatic updates.
|
|
define( 'AUTOMATIC_UPDATER_DISABLED', true );
|
|
|
|
// Disable file editing from the dashboard.
|
|
define( 'DISALLOW_FILE_EDIT', true );
|
|
|
|
// Configure WordPress debug.
|
|
define( 'WP_DEBUG_LOG', true );
|
|
define( 'WP_DEBUG_DISPLAY', true );
|
|
define( 'SCRIPT_DEBUG', true );
|
|
|
|
# The plugins that will be installed and activated.
|
|
# Search the plugins in the WP Plugins Directory and look for the name at the end of the url (after "https://wordpress.org/plugins/").
|
|
# Please note: an empty list will rise a warning during wp-cli execution. This is not a problem for the WordPress setup.
|
|
plugin install:
|
|
# plugin-name-1
|
|
# plugin-name-2
|
|
|
|
# The plugins that will be deleted.
|
|
# Please note: an empty list will rise a warning during wp-cli execution. This is not a problem for the WordPress setup.
|
|
plugin delete:
|
|
hello
|
|
akismet
|
|
|
|
# The theme that will be installed and activated.
|
|
# Search the theme in the WP Themes Directory and look for the name at the end of the url (after "https://wordpress.org/themes/").
|
|
# Please note: an empty list will rise a warning during wp-cli execution. This is not a problem for the WordPress setup.
|
|
theme install:
|
|
# theme-name
|
|
|
|
# The themes that will be deleted.
|
|
# Please note: an empty list will rise a warning during wp-cli execution. This is not a problem for the WordPress setup.
|
|
theme delete:
|
|
twentytwenty
|
|
twentytwentyone
|