---
title: influx server-config
description: The influx server-config command displays the runtime server configuration.
url: https://docs.influxdata.com/influxdb/v2/reference/cli/influx/server-config/
estimated_tokens: 912
product: InfluxDB OSS v2
version: v2
publisher: InfluxData
canonical: https://docs.influxdata.com/influxdb/v2/reference/cli/influx/server-config/
date: '2023-11-06T15:53:12-07:00'
lastmod: '2023-11-06T15:53:12-07:00'
---

* influx CLI 2.3.0+
* InfluxDB 2.0.0+

This page documents an earlier version of InfluxDB OSS.[InfluxDB 3 Core](/influxdb3/core/) is the latest stable version.

#### API token hashing is enabled by default in InfluxDB OSS 2.9.0

Stronger token security: tokens are stored as hashes on disk, so a
copy of the database file doesn’t expose usable tokens. Existing
tokens are hashed on first startup and the original strings can’t
be recovered afterward — **capture any plaintext tokens you still
need before you upgrade**.

For more information, see [Token hashing](/influxdb/v2/admin/tokens/#token-hashing).

The `influx server-config` command displays the InfluxDB runtime [server configuration](/influxdb/v2/reference/config-options/).

> [!Note]
> To display the server configuration, you must use an [operator token](/influxdb/v2/admin/tokens/#operator-token).

## Usage

```
influx server-config [flags]
influx server-config [command]
```

## Examples

```sh
# Show the server configuration.
influx server-config

# Show the server configuration as YAML.
influx server-config --yaml
```

## Flags

|Flag|                 |                             Description                             |
|----|-----------------|---------------------------------------------------------------------|
|`-c`|`--active-config`|                CLI configuration to use for command                 |
|    |`--configs-path` |Path to `influx` CLI configurations (default `~/.influxdbv2/configs`)|
|`-h`|    `--help`     |                     Help for the `list` command                     |
|    |`--hide-headers` |                Hide table headers (default `false`)                 |
|    |    `--host`     |     HTTP address of InfluxDB (default `http://localhost:8086`)      |
|    | `--http-debug`  |             Inspect communication with InfluxDB servers             |
|`-i`|     `--id`      |                           Organization ID                           |
|    |    `--json`     |                Output data as JSON (default `false`)                |
|`-n`|    `--name`     |                          Organization name                          |
|    | `--skip-verify` |                  Skip TLS certificate verification                  |
|`-t`|    `--token`    |                              API token                              |
|    |    `--toml`     |            Output configuration as TOML instead of JSON             |
|    |    `--yaml`     |            Output configuration as YAML instead of JSON             |

#### Related

* [influx CLI—Provide required authentication credentials](/influxdb/v2/reference/cli/influx/#provide-required-authentication-credentials)
* [influx CLI—Flag patterns and conventions](/influxdb/v2/reference/cli/influx/#flag-patterns-and-conventions)

[config](/influxdb/v2/tags/config/)
| Flag |  | Description |
| --- | --- | --- |
| Flag |  | Description |
| -c | --active-config | CLI configuration to use for command |
|  | --configs-path | Path to  influx  CLI configurations (default  ~/.influxdbv2/configs ) |
| -h | --help | Help for the  list  command |
|  | --hide-headers | Hide table headers (default  false ) |
|  | --host | HTTP address of InfluxDB (default  http://localhost:8086 ) |
|  | --http-debug | Inspect communication with InfluxDB servers |
| -i | --id | Organization ID |
|  | --json | Output data as JSON (default  false ) |
| -n | --name | Organization name |
|  | --skip-verify | Skip TLS certificate verification |
| -t | --token | API token |
|  | --toml | Output configuration as TOML instead of JSON |
|  | --yaml | Output configuration as YAML instead of JSON |
