mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-20 02:01:40 +00:00
Update cheatsheets
This commit is contained in:
38
tldr/vagrant-init
Normal file
38
tldr/vagrant-init
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# vagrant init
|
||||
|
||||
> Initialize a Vagrant environment in the current directory by creating a `Vagrantfile`.
|
||||
> See also: `vagrant`.
|
||||
> More information: <https://developer.hashicorp.com/vagrant/docs/cli/init>.
|
||||
|
||||
- Create a `Vagrantfile`:
|
||||
|
||||
`vagrant init`
|
||||
|
||||
- Create a `Vagrantfile` without instructional comments:
|
||||
|
||||
`vagrant init {{[-m|--minimal]}}`
|
||||
|
||||
- Specify the box name and URL:
|
||||
|
||||
`vagrant init {{box_name}} {{box_url}}`
|
||||
|
||||
- Create a `Vagrantfile` with a specific box version:
|
||||
|
||||
`vagrant init --box-version {{version}} {{box_name}}`
|
||||
|
||||
- Send 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.erb}}`
|
||||
Reference in New Issue
Block a user