LoginSignup
1
1

More than 5 years have passed since last update.

Vagrant コマンドラインインターフェース INIT

Last updated at Posted at 2016-02-01

INIT

command: vagrant init [box-name] [box-url]

Vagrantfileがない場合、カレントのディレクトリにそれを作成し、Vagrantの環境を作る。

第1引数がある場合、その値がVagrantfileのconfig.vm.boxに設定される。
第2引数がある場合、その値がVagrantfileのconfig.vm.box_urlに設定される。

オプション

--force
既存のVagrantfileを上書きする。
--minimal
最小のVagrantfileが作成される。通常のVagrantfileにあるような説明のコメントが省略されている。
--output ${FILE}
Vagrantfileが\${FILE}に出力される。${FILE}に「-」が指定されている場合、Vagrantfileは標準出力に出力される。。
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1