Skip to content

Commit 71b982a

Browse files
committed
show instructions for setting up the wp alias
... instead of using `utils/local-build`. see wp-cli/wp-cli#353
1 parent 746322a commit 71b982a

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

index.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,19 @@ You can replace `~/git/wp-cli` with whatever you want.
4141
```
4242
git clone git://github.com/wp-cli/wp-cli.git ~/git/wp-cli
4343
cd ~/git/wp-cli
44-
./utils/local-build
44+
curl -sS https://getcomposer.org/installer | php
45+
php composer.phar install
4546
```
4647

48+
Now, set up the `wp` alias:
49+
50+
```bash
51+
alias wp='~/git/wp-cli/bin/wp'
52+
source ~/git/wp-cli/utils/wp-completion.bash
53+
```
54+
55+
Add the above two lines to your `.bashrc` or `.bash_profile` file to have it set up automatically when you log in.
56+
4757
MAMP, XAMP, etc.
4858
-----------
4959

0 commit comments

Comments
 (0)