github.com/hugorut/terraform@v1.1.3/website/docs/cli/commands/logout.mdx (about)

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