Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vagrant-box: add page #15650

Merged
merged 5 commits into from
Feb 2, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions pages/common/vagrant-box.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 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`