mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
27 lines
609 B
Plaintext
27 lines
609 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# vagrant port
|
|
|
|
> List mappings between guest and host ports.
|
|
> See also: `vagrant`.
|
|
> More information: <https://developer.hashicorp.com/vagrant/docs/cli/port>.
|
|
|
|
- List all port mappings of machine(s) running in the current directory:
|
|
|
|
`vagrant port`
|
|
|
|
- List mappings for a specific machine (if `Vagrantfile` is multi-machine):
|
|
|
|
`vagrant port {{machine_name}}`
|
|
|
|
- Display info for a specific guest port:
|
|
|
|
`vagrant port --guest {{port_number}}`
|
|
|
|
- Display machine-readable output:
|
|
|
|
`vagrant port --machine-readable`
|