github.com/loicalbertin/terraform@v0.6.15-0.20170626182346-8e2583055467/website/docs/commands/get.html.markdown (about) 1 --- 2 layout: "docs" 3 page_title: "Command: get" 4 sidebar_current: "docs-commands-get" 5 description: |- 6 The `terraform get` command is used to download and update modules. 7 --- 8 9 # Command: get 10 11 The `terraform get` command is used to download and update 12 [modules](/docs/modules/index.html) mentioned in the root module. 13 14 ## Usage 15 16 Usage: `terraform get [options] [dir]` 17 18 The modules are downloaded into a local `.terraform` folder. This 19 folder should not be committed to version control. The `.terraform` 20 folder is created relative to your current working directory 21 regardless of the `dir` argument given to this command. 22 23 If a module is already downloaded and the `-update` flag is _not_ set, 24 Terraform will do nothing. As a result, it is safe (and fast) to run this 25 command multiple times. 26 27 The command-line flags are all optional. The list of available flags are: 28 29 * `-update` - If specified, modules that are already downloaded will be 30 checked for updates and the updates will be downloaded if present. 31 * `dir` - Sets the path of the [root module](/docs/modules/index.html#definitions).