influx config

  • influx CLI 2.0.0+
  • InfluxDB 2.0.0+

The influx config command displays the active InfluxDB connection configuration and manages multiple connection configurations stored, by default, in ~/.influxdbv2/configs. Each connection includes a URL, token, associated organization, and active setting. InfluxDB reads the token from the active connection configuration, so you don’t have to manually enter a token to log into InfluxDB.

Usage

1. influx config [flags]
2. influx config [command]
3. influx config <config-name>
Quickly switch between configurations
1. # Syntax
2. influx config <config-name>

4. # Example
5. influx config local-config

To quickly switch back to the previous configuration, use the following command:

1. influx config -

Examples

1. # Show the active connection configuration
2. influx config

4. # Set a connection configuration as active
5. influx config local-config

Subcommands

Subcommand Description
create Create a connection configuration
list List connection configurations
delete Delete a connection configuration
set Set or update a connection configuration

Flags

Flag Description
-h —help Help for the config command

config