Skip to content

Commit 1839558

Browse files
committed
wpcli install & update
1 parent 27f41ec commit 1839558

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

Vagrantfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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",

wpcli.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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

0 commit comments

Comments
 (0)