File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,16 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
3030 # Setup Development Environment
3131 config . vm . provision :shell , :path => "bootstrap.sh"
3232
33+ config . vm . provision "wpcli-install" ,
34+ type : "shell" ,
35+ path : "wpcli.sh" ,
36+ preserve_order : true
37+
38+ config . vm . provision "wpcli-update" ,
39+ type : "shell" ,
40+ inline : "wp cli update" ,
41+ preserve_order : true
42+
3343 # Virtual Hosts - Start
3444
3545 config . vm . provision "example.com" ,
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ cd ~
3+ curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
4+ php wp-cli.phar --info
5+ sudo chmod +x wp-cli.phar
6+ sudo mv wp-cli.phar /usr/local/bin/wp
7+ wp --info
You can’t perform that action at this time.
0 commit comments