-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #146 from shadyvb/patch-1
Update docs to reference the new vagrant scheme
- Loading branch information
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,8 @@ Success: Rewrite rules flushed. | |
|
||
You don't need to SSH into machines, change directories, and generally spend a full minute to get to a given WordPress install, you can just let WP-CLI know what machine to work with and it knows how to make the actual connection. | ||
|
||
It can also easily utilise Vagrant's ssh helper command to figure out the SSH parameters, by piping the WP-CLI command to `vagrant ssh` using the `vagrant` scheme like `--ssh=vagrant:default` where `default` is the Vagrant machine name/id, or if defined as an alias like the examples below. Some Vagrant boxes [ship this by default](https://github.com/Chassis/Chassis/blob/master/wp-cli.yml) so you can use WP-CLI from the host machine out-of-the-box. | ||
|
||
Additionally, alias groups let you register groups of aliases. If you want to run a command against both configured example sites, you can use a group like `@both`: | ||
|
||
``` | ||
|
@@ -54,6 +56,8 @@ Aliases can be registered in your project’s `wp-cli.yml` file, or your user’ | |
ssh: [email protected]~/webapps/production | ||
@dev: | ||
ssh: [email protected]/srv/www/example.dev | ||
@local: | ||
ssh: vagrant:default | ||
@both: | ||
- @prod | ||
- @dev | ||
|