open-consul/website/content/commands/logout.mdx
Zachary Shilton 5b53b5aef5
website: implement mktg 032 (#9953)
* website: migrate to new nav-data format

* website: clean up unused intro content

* website: remove deprecated sidebar_title from frontmatter

* website: add react-content to fix global style import issue
2021-04-07 15:50:38 -04:00

35 lines
718 B
Plaintext

---
layout: commands
page_title: 'Commands: Logout'
description: >
The `logout` command will destroy the provided token if it was created from
`consul login`.
---
# Consul Logout
Command: `consul logout`
The `logout` command will destroy the provided token if it was created from
`consul login`.
## Usage
Usage: `consul logout [options]`
-> The token to delete should be specified with the `-token` argument, the
`CONSUL_HTTP_TOKEN` environment variable, the `-token-file` argument, or the
`CONSUL_HTTP_TOKEN_FILE` environment variable.
#### API Options
@include 'http_api_options_client.mdx'
### Examples
Logout and delete a login token.
```shell-session
$ consul logout -token-file 'consul.token'
```