File tree Expand file tree Collapse file tree 3 files changed +56
-0
lines changed Expand file tree Collapse file tree 3 files changed +56
-0
lines changed Original file line number Diff line number Diff line change 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 `
Original file line number Diff line number Diff line change 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 `
Original file line number Diff line number Diff line change 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]}} `
You can’t perform that action at this time.
0 commit comments