• HashiCorp Developer

  • HashiCorp Cloud Platform
  • Terraform
  • Packer
  • Consul
  • Vault
  • Boundary
  • Nomad
  • Waypoint
  • Vagrant
Terraform
  • Install
  • Tutorials
    • About the Docs
    • Configuration Language
    • Terraform CLI
    • Terraform Cloud
    • Terraform Enterprise
    • CDK for Terraform
    • Provider Use
    • Plugin Development
    • Registry Publishing
    • Integration Program
  • Registry(opens in new tab)
  • Try Cloud(opens in new tab)
  • Sign up
Terraform Home

Terraform CLI

Skip to main content
  • Terraform CLI

  • Overview
  • Basic CLI Features
    • Overview
    • init
    • get

  • Terraform Internals

  • Resources

  • Tutorial Library
  • Certifications
  • Community Forum
    (opens in new tab)
  • Support
    (opens in new tab)
  • GitHub
    (opens in new tab)
  • Terraform Registry
    (opens in new tab)
  1. Developer
  2. Terraform
  3. Terraform CLI
  4. commands
  5. get
  • Terraform
  • v1.2.x
  • v1.1 and earlier

ยปCommand: get

The terraform get command is used to download and update modules mentioned in the root module.

Usage

Usage: terraform get [options] PATH

The modules are downloaded into a .terraform subdirectory of the current working directory. Don't commit this directory to your version control repository.

The get command supports the following option:

  • -update - If specified, modules that are already downloaded will be checked for updates and the updates will be downloaded if present.

  • -no-color - Disable text coloring in the output.

Edit this page on GitHub

On this page

  1. Command: get
  2. Usage
Give Feedback(opens in new tab)
  • Certifications
  • System Status
  • Terms of Use
  • Security
  • Privacy
  • Trademark Policy
  • Trade Controls
  • Give Feedback(opens in new tab)