vagrant-init

Create a new Vagrantfile configuration

TLDR

Initialize with default box
$ vagrant init
Initialize with specific box
$ vagrant init [box_name]
Initialize with minimal Vagrantfile
$ vagrant init -m [box_name]
Initialize with box URL
$ vagrant init [name] [url]

SYNOPSIS

vagrant init [options] [name] [url]

DESCRIPTION

vagrant init creates a new Vagrantfile in the current directory. The Vagrantfile defines VM configuration including box, networking, and provisioning. Start of every Vagrant project.

PARAMETERS

-m, --minimal

Create minimal Vagrantfile.
-f, --force
Overwrite existing Vagrantfile.
--box-version version
Specify box version.
-o, --output file
Output file path.

INSTALL

sudo apt install vagrant
sudo dnf install vagrant
nix profile install nixpkgs#vagrant

SEE ALSO

vagrant(1), vagrant-box(1)