Archived documentation version rendered and hosted by DevNetExpertTraining.com
Documentation

influx config

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

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

# Example
influx config local-config

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

influx config -

Examples

# Show the active connection configuration
influx config

# Set a connection configuration as active
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

Select your region

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.