• 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
    • CLI Configuration
    • Environment Variables

  • 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. CLI Configuration
  • Terraform
  • v1.2.x
  • v1.1 and earlier

ยปCLI Configuration

Terraform CLI can be configured with some global settings, which are separate from any Terraform configuration and which apply across all working directories.

We've designed Terraform such that an average user running Terraform CLI interactively will not need to interact with any of these settings. As a result, most of the global settings relate to advanced or automated workflows, or unusual environmental conditions like running Terraform on an airgapped instance.

  • The CLI config file configures provider installation and security features.
  • Several environment variables can configure Terraform's inputs and outputs; this includes some alternate ways to provide information that is usually passed on the command line or read from the state of the shell.
Edit this page on GitHub
Give Feedback(opens in new tab)
  • Certifications
  • System Status
  • Terms of Use
  • Security
  • Privacy
  • Trademark Policy
  • Trade Controls
  • Give Feedback(opens in new tab)