vagrant init
Initialize a Vagrant environment in the current directory by creating a
Vagrantfile. More information: https://developer.hashicorp.com/vagrant/docs/cli/init.
- Create a
Vagrantfile:
vagrant init
- Create a
Vagrantfilewithout instructional comments:
vagrant init
- Specify the box name and URL:
vagrant init
- Create a
Vagrantfilewith a specific box version:
vagrant init --box-version
- Send the
Vagrantfiletostdout:
vagrant init -
- Overwrite an existing
Vagrantfile:
vagrant init
- Provide a custom ERB template for generating the
Vagrantfile:
vagrant init --template
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
