terraform login command reference | Terraform | HashiCorp Developer
The `terraform login` command obtains an API token for HCP Terraform, Terraform Enterprise, or other host that offers Terraform services.