Last active
May 29, 2017 14:25
-
-
Save nicomollet/56a17b0968d012616d98 to your computer and use it in GitHub Desktop.
WP CLI download+install configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
path: wordpress | |
url: http://project.l | |
core download: | |
locale: fr_FR | |
core config: | |
dbuser: project | |
dbpass: project | |
dbname: project | |
dbprefix: pj_ | |
dbhost: localhost | |
core install: | |
title: MyProject | |
description: MyProject | |
admin_user: project_admin | |
admin_password: ###projectpassword### | |
admin_email: [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This command has three functions: | |
# (1) Downloads last version of WordPress | |
# (2) Creates a config file based on the wp-cli.yml file | |
# (3) Installs WordPress | |
wp core download && wp core config && wp core install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This command has two functions: | |
# (1) Installs and activates the following plugins: | |
# abt-relative-urls | |
# add-custom-post-types-archive-to-nav-menus | |
# hide-update-reminder | |
# underconstruction | |
# better-wp-security | |
# backwpup | |
# (2) Installs the following plugins: | |
# gravity-forms-placeholders | |
# disqus-comment-system | |
# regenerate-thumbnails | |
# widget-classes | |
# custom-post-widget | |
# jetpack | |
# w3-total-cache | |
# wordpress-seo | |
wp plugin install abt-relative-urls add-custom-post-types-archive-to-nav-menus hide-update-reminder underconstruction better-wp-security backwpup --activate && wp plugin install gravity-forms-placeholders disqus-comment-system regenerate-thumbnails widget-classes custom-post-widget jetpack w3-total-cache wordpress-seo && wp plugin update --all |
Sorry I am very late;)
I think I did that because the installed plugins might be cached, and wp plugin update --all
could force to download the latest version.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why run
wp plugin update --all
after having just downloaded them?