LinuxCommandLibrary

vagrant-init

Create a new Vagrantfile configuration

TLDR

Initialize with default box

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

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.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community