1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/vagrant-box.md
aminelch 8386f3c243
vagrant-box: add page (#15650)
* vagrant-box: add page

* vagrant-box: add page

* Apply suggestions from code review

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
Co-authored-by: Juri Dispan <juri.dispan@posteo.net>

---------

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
2025-02-02 10:13:15 +01:00

37 lines
777 B
Markdown

# vagrant box
> Manage Vagrant boxes (virtual machine images).
> See also: `vagrant`.
> More information: <https://developer.hashicorp.com/vagrant/docs/cli/box>.
- List all installed boxes:
`vagrant box list`
- Add a new box:
`vagrant box add {{hashicorp/bionic64}}`
- Add a box from a custom URL:
`vagrant box add {{my-box}} {{https://example.com/my-box.box}}`
- Remove an installed box:
`vagrant box remove {{hashicorp/bionic64}}`
- Update all boxes that are in use in the current Vagrant environment:
`vagrant box update`
- Update a specific box:
`vagrant box update --box {{bento/debian-12}}`
- Check if there is a new version available for the box that you are using:
`vagrant box outdated`
- Clean up old versions of installed boxes:
`vagrant box prune`