website/docs: clarify command line for multi-machine

This commit is contained in:
Mitchell Hashimoto 2014-04-11 18:33:12 -07:00
parent 2cb6a21a5a
commit c4c8dbc888
1 changed files with 8 additions and 5 deletions

View File

@ -68,11 +68,14 @@ The moment more than one machine is defined within a Vagrantfile, the
usage of the various `vagrant` commands changes slightly. The change should usage of the various `vagrant` commands changes slightly. The change should
be mostly intuitive. be mostly intuitive.
Most commands, such as `vagrant up`, begin requiring the name of the machine Commands that only make sense to target a single machine, such as
to control. Using the example above, you could say `vagrant up web`, or `vagrant ssh`, now _require_ the name of the machine to control. Using
`vagrant up db`. If no name is specified, it is assumed you mean to perform the example above, you would say `vagrant ssh web` or `vagrant ssh db`.
that operation on every machine. Therefore, `vagrant up` alone will bring
up both the web and DB machine. Other commands, such as `vagrant up`, operate on _every_ machine by
default. So if you ran `vagrant up`, Vagrant would bring up both the
web and DB machine. You could also optionally be specific and say
`vagrant up web` or `vagrant up db`.
Additionally, you can specify a regular expression for matching only Additionally, you can specify a regular expression for matching only
certain machines. This is useful in some cases where you specify many similar certain machines. This is useful in some cases where you specify many similar