This is a big commit, and I apologize in advance for the future
git-blames all pointing to me. This commit does a few things:
1. Merges the website/docs and website/www repo into a single website repo
to be in line with other HashiCorp projects
2. Updates to use middleman-hashicorp
3. Converts less to scss to be in line with other projects
4. Updates page styles to be in line with other projects
5. Optimizes images
6. Prepare for S3 + Fastly deployment with scripts, etc.
7. Removes blog posts (they have been transferred to hashicorp.com with
redirects in place
8. Updated sitemap generation script for better SEO
9. Fixed many broken links
10. Add description to all fields
35 lines
1.1 KiB
Markdown
35 lines
1.1 KiB
Markdown
---
|
|
layout: "docs"
|
|
page_title: "vagrant init - Command-Line Interface"
|
|
sidebar_current: "cli-init"
|
|
description: |-
|
|
The "vagrant init" command is used to initialize the current directory to be
|
|
a Vagrant environment by creating an initial Vagrantfile.
|
|
---
|
|
|
|
# Init
|
|
|
|
**Command: `vagrant init [box-name] [box-url]`**
|
|
|
|
This initializes the current directory to be a Vagrant environment
|
|
by creating an initial [Vagrantfile](/docs/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
|
|
|
|
* `--force` - If specified, this command will overwite any existing
|
|
`Vagrantfile`.
|
|
|
|
* `--minimal` - If specified, a minimal Vagrantfile will be created. This
|
|
Vagrantfile does not contain the instructional comments that the normal
|
|
Vagrantfile contains.
|
|
|
|
* `--output FILE` - This will output the Vagrantfile to the given file.
|
|
If this is "-", the Vagrantfile will be sent to stdout.
|