Skip to content

Commit c67a077

Browse files
shellydaviddmmqzFazleArefin
authored
vagrant-{global-status, port, ssh}: add page (#19035)
Co-authored-by: Dylan <[email protected]> Co-authored-by: Fazle Arefin <[email protected]>
1 parent 0f1cf37 commit c67a077

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# vagrant global-status
2+
3+
> Display the state of all Vagrant machines on the system.
4+
> The info is based on a cache, which may become stale and require pruning.
5+
> See also: `vagrant`, `vagrant status`.
6+
> More information: <https://developer.hashicorp.com/vagrant/docs/cli/global-status>.
7+
8+
- Display the state of all machines:
9+
10+
`vagrant global-status`
11+
12+
- Prune any stale entries from the output:
13+
14+
`vagrant global-status --prune`

pages/common/vagrant-port.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# vagrant port
2+
3+
> List mappings between guest and host ports.
4+
> See also: `vagrant`.
5+
> More information: <https://developer.hashicorp.com/vagrant/docs/cli/port>.
6+
7+
- List all port mappings of machine(s) running in the current directory:
8+
9+
`vagrant port`
10+
11+
- List mappings for a specific machine (if `Vagrantfile` is multi-machine):
12+
13+
`vagrant port {{machine_name}}`
14+
15+
- Display info for a specific guest port:
16+
17+
`vagrant port --guest {{port_number}}`
18+
19+
- Display machine-readable output:
20+
21+
`vagrant port --machine-readable`

pages/common/vagrant-ssh.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# vagrant ssh
2+
3+
> SSH into a running Vagrant machine.
4+
> See also: `vagrant`.
5+
> More information: <https://developer.hashicorp.com/vagrant/docs/cli/ssh>.
6+
7+
- SSH into the machine running in the current directory:
8+
9+
`vagrant ssh`
10+
11+
- Target a running machine by name or ID:
12+
13+
`vagrant ssh {{name|id}}`
14+
15+
- Execute an SSH command and exit:
16+
17+
`vagrant ssh {{[-c|--command]}} {{ssh_command}}`
18+
19+
- SSH without authentication, leaving authentication up to the user:
20+
21+
`vagrant ssh {{[-p|--plain]}}`

0 commit comments

Comments
 (0)