Back to Influxdb

Tokens

content/shared/influxdb3-cli/show/tokens.md

latest2.6 KB
Original Source

The influxdb3 show tokens command lists authentication tokens in your {{< product-name >}} server.

Usage

<!--pytest.mark.skip-->
bash
influxdb3 show tokens [OPTIONS]

Options

OptionDescription
-H--hostHost URL of the running {{< product-name >}} server (default is http://127.0.0.1:8181)
--token({{< req >}}) Authentication token
--formatOutput format (pretty (default), json, jsonl, csv, or parquet)
--outputPath where to save output when using the parquet format
--tls-caPath to a custom TLS certificate authority (for testing or self-signed certificates)
--tls-no-verifyDisable TLS certificate verification (Not recommended in production, useful for self-signed certificates)
-h--helpPrint help information
--help-allPrint detailed help information

Option environment variables

You can use the following environment variables to set command options:

Environment VariableOption
INFLUXDB3_HOST_URL--host
INFLUXDB3_AUTH_TOKEN--token
INFLUXDB3_TLS_NO_VERIFY--tls-no-verify

Examples

List all tokens

<!--pytest.mark.skip-->
bash
influxdb3 show tokens

List tokens in different output formats

You can specify the output format using the --format option:

<!--pytest.mark.skip-->
bash
# JSON format
influxdb3 show tokens --format json

# JSON Lines format
influxdb3 show tokens --format jsonl

# CSV format
influxdb3 show tokens --format csv

Output tokens to a Parquet file

Parquet is a binary format. Use the --output option to specify the file where you want to save the Parquet data.

<!--pytest.mark.skip-->
bash
influxdb3 show tokens \
  --format parquet \
  --output /Users/me/tokens.parquet