mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-12 17:12:01 -06:00
4c0bda5386
Co-authored-by: Damian Stasik <920747+damianstasik@users.noreply.github.com> Co-authored-by: Roman Grinovski <roman.grinovski@gmail.com>
27 lines
804 B
Plaintext
27 lines
804 B
Plaintext
---
|
|
description: >-
|
|
The tofu logout command is used to remove credentials stored by tofu
|
|
login.
|
|
---
|
|
|
|
# Command: logout
|
|
|
|
The `tofu logout` command is used to remove credentials stored by
|
|
`tofu login`. These credentials are API tokens for any host that offers OpenTofu-compatible services.
|
|
|
|
## Usage
|
|
|
|
Usage: `tofu logout [hostname]`
|
|
|
|
:::note
|
|
The API token is only removed from local storage, not destroyed on
|
|
the remote server, so it will remain valid until manually revoked.
|
|
:::
|
|
|
|
## Credentials Storage
|
|
|
|
By default, OpenTofu will remove the token stored in plain text in a local CLI
|
|
configuration file called `credentials.tfrc.json`. If you have configured a
|
|
[credentials helper program](/docs/cli/config/config-file#credentials-helpers), OpenTofu
|
|
will use the helper's `forget` command to remove it.
|