Register to Better Coder! It's free.
Enjoy the premium features and succeed at every job interview.

Using Terraform CLI, how do you remove locally-stored credentials for specified hostname of Terraform Enterprise?

Experience Level: Junior
Tags: Terraform

Answer

Run the following command:

terraform logout your-hostname

The API token is only removed from local storage, not destroyed on the remote server, so it will remain valid until manually revoked.

Comments

No Comments Yet.
Be the first to tell us what you think.
Terraform CLI
Terraform CLI

Are you learning Terraform ? Try our test we designed to help you progress faster.

Test yourself