Skip to content

Instantly share code, notes, and snippets.

@nicomollet
Last active May 29, 2017 14:25
Show Gist options
  • Save nicomollet/56a17b0968d012616d98 to your computer and use it in GitHub Desktop.
Save nicomollet/56a17b0968d012616d98 to your computer and use it in GitHub Desktop.
WP CLI download+install configuration
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 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 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
@Frique
Copy link

Frique commented Mar 24, 2016

Why run wp plugin update --all after having just downloaded them?

@nicomollet
Copy link
Author

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