From f760c143325156eed4bcc1c30bbfc153f4aba594 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 27 Sep 2014 12:28:07 -0700 Subject: [PATCH] website: document init --- .../source/docs/commands/init.html.markdown | 24 +++++++++++++++++++ website/source/layouts/docs.erb | 4 ++++ 2 files changed, 28 insertions(+) create mode 100644 website/source/docs/commands/init.html.markdown diff --git a/website/source/docs/commands/init.html.markdown b/website/source/docs/commands/init.html.markdown new file mode 100644 index 000000000..a157a047a --- /dev/null +++ b/website/source/docs/commands/init.html.markdown @@ -0,0 +1,24 @@ +--- +layout: "docs" +page_title: "Command: init" +sidebar_current: "docs-commands-init" +--- + +# Command: init + +The `terraform init` command is used to initialize a Terraform configuration +using another +[module](/docs/modules/index.html) +as a skeleton. + +## Usage + +Usage: `terraform init [options] SOURCE [DIR]` + +Init will download the module from SOURCE and copy it into the DIR +(which defaults to the current working directory). Version control +information from the module (such as Git history) will not be copied. + +The directory being initialized must be empty of all Terraform configurations. +If the module has other files which conflict with what is already in the +directory, they _will be overwritten_. diff --git a/website/source/layouts/docs.erb b/website/source/layouts/docs.erb index 3b1c92fe6..fa60aac79 100644 --- a/website/source/layouts/docs.erb +++ b/website/source/layouts/docs.erb @@ -59,6 +59,10 @@ get + > + init + + > graph