Files
opentf/website/docs/cli/commands/logout.mdx
Kuba Martin 4d665a0091 Update website/docs/cli. (#171)
* Initial renaming, rewriting and cleaning up wave for the CLI docs.

Signed-off-by: Jakub Martin <kubam@spacelift.io>

* More renaming.

Signed-off-by: Jakub Martin <kubam@spacelift.io>

* More renaming.

Signed-off-by: Jakub Martin <kubam@spacelift.io>

* More renaming.

Signed-off-by: Jakub Martin <kubam@spacelift.io>

* Remove tutorial references.

Signed-off-by: Jakub Martin <kubam@spacelift.io>

* Post-review fixes.

Signed-off-by: Jakub Martin <kubam@spacelift.io>

---------

Signed-off-by: Jakub Martin <kubam@spacelift.io>
2023-08-25 11:09:18 +02:00

26 lines
841 B
Plaintext

---
page_title: 'Command: logout'
description: >-
The opentf logout command is used to remove credentials stored by opentf
login.
---
# Command: logout
The `opentf logout` command is used to remove credentials stored by
`opentf login`. These credentials are API tokens for any host that offers OpenTF-compatible services.
## Usage
Usage: `opentf 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, OpenTF 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](/opentf/cli/config/config-file#credentials-helpers), OpenTF
will use the helper's `forget` command to remove it.