Vagrant Commands: Examples & Reference

Vagrant Commands: Examples & Reference

Last updated:

A smal compilation of some of the most commonly-used Vagrant commands.

Boxes

  • vagrant box add

    Adds a box definition into your local collection. You can then refer to these in Vagrantfiles anywhere in your computer.

    • vagrant box add hashicorp/precise32 (actually existing box from VagrantCloud)
    • vagrant box add <my-new-box> /path/to/box/definition/file (.json or .box file on your local machine)
    • vagrant box add <my-new-box> http://url/to/my/box.box (vagrantbox.es is a good source for standalone boxes)