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.


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 -


# Show the active connection configuration
influx config

# Set a connection configuration as active
influx config local-config


createCreate a connection configuration
listList connection configurations
deleteDelete a connection configuration
setSet or update a connection configuration


-h--helpHelp for the config command

Was this page helpful?

Thank you for your feedback!

Set your InfluxDB URL

Introducing InfluxDB 3.0

The new core of InfluxDB built with Rust and Apache Arrow. Available today in InfluxDB Cloud Dedicated.

Learn more

State of the InfluxDB Cloud Serverless documentation

The new documentation for InfluxDB Cloud Serverless is a work in progress. We are adding new information and content almost daily. Thank you for your patience!

If there is specific information you’re looking for, please submit a documentation issue.