Prompts for or opens a browser to obtain an API token for the given hostname, defaulting to HCP Terraform, and saves it in the credentials file. Needed before publishing modules or using private registries. Related: terraform logout.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.