-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36083 from hashicorp/docs/seo-updates
Docs/seo updates
- Loading branch information
Showing
93 changed files
with
669 additions
and
778 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,33 @@ | ||
--- | ||
page_title: Authentication - Terraform CLI | ||
page_title: Get an API token for HCP Terraform or Terraform Enterprise | ||
description: >- | ||
Documentation about the login and logout commands that help automate getting | ||
an API token for your HCP Terraform account. | ||
Use the `terraform login` and `terraform logout` commands get | ||
an API token for your HCP Terraform or Terraform Enterprise account. | ||
--- | ||
|
||
# CLI Authentication | ||
# Get an API token for HCP Terraform and Terraform Enterprise | ||
|
||
This topic describes how to use the `terraform login` and `terraform logout` to authenticate with HCP Terraform and Terraform Enterprise. | ||
|
||
> **Hands-on:** Try the [Authenticate the CLI with HCP Terraform](/terraform/tutorials/cloud/cloud-login?utm_source=WEBSITE&utm_medium=WEB_IO&utm_offer=ARTICLE_PAGE&utm_content=DOCS) tutorial. | ||
## Overview | ||
|
||
[HCP Terraform](https://cloud.hashicorp.com/products/terraform) and | ||
[Terraform Enterprise](/terraform/enterprise) are platforms that perform | ||
Terraform runs to provision infrastructure, offering a collaboration-focused | ||
environment that makes it easier for teams to use Terraform together. (For | ||
expediency, the content below refers to both products as "HCP Terraform.") | ||
environment that makes it easier for teams to use Terraform together. | ||
|
||
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. | ||
|
||
Terraform CLI integrates with HCP Terraform in several ways — it can be a | ||
front-end for [CLI-driven runs](/terraform/cloud-docs/run/cli) in HCP Terraform, | ||
and can also use HCP Terraform as a state backend and a private module | ||
registry. All of these integrations require you to authenticate Terraform CLI | ||
These integrations require you to authenticate the Terraform CLI | ||
with your HCP Terraform account. | ||
|
||
The best way to handle CLI authentication is with the `login` and `logout` | ||
commands, which help automate the process of getting an API token for your | ||
HCP Terraform user account. | ||
## Authentication | ||
|
||
For details, see: | ||
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. | ||
|
||
- [The `terraform login` command](/terraform/cli/commands/login) | ||
- [The `terraform logout` command](/terraform/cli/commands/logout) | ||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.