vagrant

vagrant

TLDR

Create Vagrantfile in current directory with the base Vagrant box

$ vagrant init
copy

Create Vagrantfile with the Ubuntu 20.04 (Focal Fossa) box from HashiCorp Atlas

$ vagrant init ubuntu/focal64
copy

Start and provision the vagrant environment

$ vagrant up
copy

Suspend the machine

$ vagrant suspend
copy

Halt the machine

$ vagrant halt
copy

Connect to machine via SSH

$ vagrant ssh
copy

Output the SSH configuration file of the running Vagrant machine

$ vagrant ssh-config
copy

List all local boxes

$ vagrant box list
copy

SYNOPSIS

vagrant [-v] [-h] command [<args>]

DESCRIPTION

Vagrant is a tool for building and distributing virtualized development environments.

Vagrant provides the framework and configuration format to create and manage complete portable development environments. These development environments can live on your computer or in the cloud, and are portable between Windows, Mac OS X, and Linux.

OPTIONS

-v, --version

Print the version and exit.

-h, --help

Print this help.

Available subcommands:

box

manages boxes: installation, removal, etc.

destroy

stops and deletes all traces of the vagrant machine

halt

stops the vagrant machine

help

shows the help for a subcommand

init

initializes a new Vagrant environment by creating a Vagrantfile

package

packages a running vagrant environment into a box

plugin

manages plugins: install, uninstall, update, etc.

provision

provisions the vagrant machine

reload

restarts vagrant machine, loads new Vagrantfile configuration

resume

resume a suspended vagrant machine

ssh

connects to machine via SSH

ssh-config

outputs OpenSSH valid configuration to connect to the machine

status

outputs status of the vagrant machine

suspend

suspends the machine

up

starts and provisions the vagrant environment

SEE ALSO

For help on any individual command run vagrant COMMAND -h

AUTHOR

Mitchell Hashimoto <mitchell.hashimoto@gmail.com>

Copied to clipboard
snescontroller