From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/vagrant/cli%2Finit.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 devdocs/vagrant/cli%2Finit.html (limited to 'devdocs/vagrant/cli%2Finit.html') diff --git a/devdocs/vagrant/cli%2Finit.html b/devdocs/vagrant/cli%2Finit.html new file mode 100644 index 00000000..0b074a05 --- /dev/null +++ b/devdocs/vagrant/cli%2Finit.html @@ -0,0 +1,20 @@ +

Init

Command: vagrant init [name [url]]

This initializes the current directory to be a Vagrant environment by creating an initial Vagrantfile if one does not already exist.

If a first argument is given, it will prepopulate the config.vm.box setting in the created Vagrantfile.

If a second argument is given, it will prepopulate the config.vm.box_url setting in the created Vagrantfile.

Options

Examples

Create a base Vagrantfile:

$ vagrant init hashicorp/precise64
+
+

Create a minimal Vagrantfile (no comments or helpers):

$ vagrant init -m hashicorp/precise64
+
+

Create a new Vagrantfile, overwriting the one at the current path:

$ vagrant init -f hashicorp/precise64
+
+

Create a Vagrantfile with the specific box, from the specific box URL:

$ vagrant init my-company-box https://boxes.company.com/my-company.box
+
+

Create a Vagrantfile, locking the box to a version constraint:

$ vagrant init --box-version '> 0.1.5' hashicorp/precise64
+
+

+ © 2010–2018 Mitchell Hashimoto
Licensed under the MPL 2.0 License.
+ https://www.vagrantup.com/docs/cli/init.html +

+
-- cgit v1.2.3