Back to Influxdb

influxctl token get

content/influxdb3/clustered/reference/cli/influxctl/token/get.md

latest1.1 KB
Original Source

The influxctl token get command returns information about a database token in an {{% product-name omit=" Clustered" %}} cluster.

The --format flag lets you print the output in other formats. The json format is available for programmatic parsing by other tooling. Default: table.

Usage

sh
influxctl token get [command options] <TOKEN_ID>

Flags

FlagDescription
--formatOutput format (table (default) or json)
--include-revokedAllow returning a revoked token
-h--helpOutput command help

{{% caption %}} Also see influxctl global flags. {{% /caption %}}

Examples

{{% code-placeholders "TOKEN_ID" %}}

sh
influxctl token get TOKEN_ID

{{% /code-placeholders %}}

Replace the following:

  • {{% code-placeholder-key %}}TOKEN_ID{{% /code-placeholder-key %}}: token ID to get