vagrant
Manage lightweight, reproducible, and portable development environments. Some subcommands such as `box`, `snapshot`, `halt`, etc. have their own usage documentation.
More info →Subcommands (15)
Manage Vagrant boxes (virtual machine images). See also: `vagrant`.
Stop a guest machine and destroy all its resources. Any boxes installed are kept intact. See also: `vagrant`.
Shuts down the running machine Vagrant is managing. See also: `vagrant`, `vagrant box`, `vagrant plugin`, `vagrant validate`.
Initialize a Vagrant environment in the current directory by creating a `Vagrantfile`. See also: `vagrant`.
Manage Vagrant plugins. See also: `vagrant`.
List mappings between guest and host ports. See also: `vagrant`.
Equivalent of running `halt` followed by `up`. A reload is usually required for changes in a Vagrantfile to take effect. See also: `vagrant`.
Resume a Vagrant managed machine that was previously suspended.
Manage snapshots of Vagrant machines. See also: `vagrant`.
SSH into a running Vagrant machine. See also: `vagrant`.
Display the state of machines in the current Vagrant environment. See also: `vagrant`, `vagrant global-status`.
Save the state of the guest machine rather than fully shutting it down. See also: `vagrant`.
Upload files and directories from the host to the guest machine.
Check the validity of a Vagrantfile. See also: `vagrant`, `vagrant box`, `vagrant plugin`.
Display Vagrant version information. Note: Internet access is required for vagrant version to check the latest available version.
Examples (8)
Create a `Vagrantfile` in the current directory with the base Vagrant box
Create a `Vagrantfile` with a box from the Vagrant Public Registry
vagrant init ubuntu/focal64Start and provision the Vagrant environment
vagrant upSuspend the machine
Halt the machine
Connect to the machine via SSH
Output the SSH configuration file of the running Vagrant machine
List all local boxes
vagrant box list