github.com/rstandt/terraform@v0.12.32-0.20230710220336-b1063613405c/website/docs/commands/logout.html.markdown (about)

     1  ---
     2  layout: "docs"
     3  page_title: "Command: logout"
     4  sidebar_current: "docs-commands-logout"
     5  description: |-
     6    The terraform logout command is used to remove credentials stored by terraform login.
     7  ---
     8  
     9  # Command: logout
    10  
    11  The `terraform logout` command is used to remove credentials stored by
    12  `terraform login`. These credentials are API tokens for Terraform Cloud,
    13  Terraform Enterprise, or any other host that offers Terraform services.
    14  
    15  ## Usage
    16  
    17  Usage: `terraform logout [hostname]`
    18  
    19  If you don't provide an explicit hostname, Terraform will assume you want to
    20  log out of Terraform Cloud at `app.terraform.io`.
    21  
    22  -> **Note:** the API token is only removed from local storage, not destroyed on
    23  the remote server, so it will remain valid until manually revoked.
    24  
    25  ## Credentials Storage
    26  
    27  By default, Terraform will remove the token stored in plain text in a local CLI
    28  configuration file called `credentials.tfrc.json`. If you have configured a
    29  [credentials helper program](cli-config.html#credentials-helpers), Terraform
    30  will use the helper's `forget` command to remove it.