Command: login | Terraform | HashiCorp Developer

The terraform login command can be used to automatically obtain and save an API token for HCP Terraform, Terraform Enterprise, or any other host that offers Terraform services.