page_title: Get an API token for HCP Terraform and Terraform Enterprise
page_title: Get an API token for HCP Terraform or Terraform Enterprise
description: >-
Use the terraform login and terraform logout commands get
an API token for your HCP Terraform or Terraform Enterprise account.
@ -18,7 +18,7 @@ This topic describes how to use the `terraform login` and `terraform logout` to
Terraform runs to provision infrastructure, offering a collaboration-focused
environment that makes it easier for teams to use Terraform together.
You can integrate the Terraform CLI with Terraform web platform in the following ways:
You can integrate the Terraform CLI with HCP Terraform and Terraform Enterprise in the following ways:
- Use the Terraform CLI as a front-end for [CLI-driven runs](/terraform/cloud-docs/run/cli) in HCP Terraform
- Use HCP Terraform or Terraform Enterprise as a state backend and a private module registry.
@ -28,6 +28,6 @@ with your HCP Terraform account.
## Authentication
Run the `terraform login` command to automate the process of getting an API token for your HCP Terraform user account. Refer to the [`terraform login` command](/terraform/cli/commands/login) reference documentation for details.
Run the `terraform login` command to generate an API token for your HCP Terraform user account. Refer to the [`terraform login` command](/terraform/cli/commands/login) reference documentation for details.
Run the `terrafom logout` coommand to end your HCP Terraform or Terraform Enterprise session. Refer to the [`terraform logout` command](/terraform/cli/commands/logout) reference documentation for details.
Run the `terraform logout` command to end your HCP Terraform or Terraform Enterprise session. Refer to the [`terraform logout` command](/terraform/cli/commands/logout) reference documentation for details.
page_title: Use HCP Terraform and Terraform Enterprise with Terraform CLI overview
page_title: Use HCP Terraform or Terraform Enterprise with the Terraform CLI
description: >-
Learn how to use HCP Terraform and Terraform Enterprise on the command line with the Terraform CLI.
---
# Use HCP Terraform with Terraform CLI Overview
# Use HCP Terraform with the Terraform CLI
The Terraform CLI integration with HCP Terraform lets you use HCP Terraform and Terraform Enterprise on the command line. In the documentation HCP Terraform instructions also apply to Terraform Enterprise, except where explicitly stated.
@ -5,7 +5,7 @@ description: The Terrafrom CLI includes commands for provisioning infrastructure
# Terraform CLI Overview
This topic provides an overview of the Terraform command line.
This topic provides an overview of the Terraform command line interface.
> **Hands-on:** Try the [Terraform: Get Started](/terraform/tutorials/aws-get-started?utm_source=WEBSITE&utm_medium=WEB_IO&utm_offer=ARTICLE_PAGE&utm_content=DOCS) tutorials.
description: The `terraform state` group of commands help you inspect Terraform state. Learn how inspecting Terraform state can help you read and update state.
Terraform state commands can move and remove resources and transfer existing resources to a different provider. Learn how about changing or moving resources.
description: The -replace flag and taint command help you replace infrastructure objects. Learn how the -replace flag and taint command can help you recreate resources.
Terraform can print details about state, configuration, and proposed infrastructure plans to the terminal in JSON format. Learn about the JSON representation.
Learn how to configure Terraform to print JSON-formatted details about state, configuration, and proposed infrastructure plans.
Terraform provides streamd machine-readable UI output in JSON format so that you can integrate with monitoring software. Learn about the machine-readlable output.
Terraform streams machine-readable output in JSON format, letting you use third-party tools to monitor operations.
Use the provider registry protocol to enable Terraform to discover metadata about providers available for installation and to locate their distribution packages.
Use the provider registry protocol to enable Terraform to discover metadata about available providers and locate their distribution packages.