-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwp-cli.yml
More file actions
50 lines (42 loc) · 1.86 KB
/
wp-cli.yml
File metadata and controls
50 lines (42 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# 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', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', true );
define( 'SCRIPT_DEBUG', true );
define( 'WP_ENVIRONMENT_TYPE', 'development' );
# 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:
twentytwentyone
twentytwentytwo
twentytwentythree
twentytwentyfour