vagrant init
all
Initialize a Vagrant environment in the current directory by creating a `Vagrantfile`. See also: `vagrant`.
More info →Options (3)
-m, --minimalbooleanCreate a `Vagrantfile` without instructional comments
Example:
vagrant init {{[-m|--minimal]}}-o, --outputbooleanSend the `Vagrantfile` to `stdout`
Example:
vagrant init {{[-o|--output]}} --f, --forcebooleanOverwrite an existing `Vagrantfile`
Example:
vagrant init {{[-f|--force]}}Examples (7)
Create a `Vagrantfile`
Create a `Vagrantfile` without instructional comments
vagrant init [-m|--minimal]Specify the box name and URL
vagrant init box_name box_urlCreate a `Vagrantfile` with a specific box version
vagrant init --box-version version box_nameSend the `Vagrantfile` to `stdout`
vagrant init [-o|--output] -Overwrite an existing `Vagrantfile`
vagrant init [-f|--force]Provide a custom ERB template for generating the `Vagrantfile`
vagrant init --template path/to/file.erbmade by @shridhargupta | data from tldr-pages