This page documents an earlier version of InfluxDB. InfluxDB v2.7 is the latest stable version. View this page in the v2.7 documentation.
influx config command displays the active InfluxDB connection configuration
and manages multiple connection configurations stored, by default, in
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
|create||Create a connection configuration|
|list||List connection configurations|
|delete||Delete a connection configuration|
|set||Set or update a connection configuration|
|Help for the |
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB and this documentation. To find support, use the following resources:
InfluxDB Cloud and InfluxDB Enterprise customers can contact InfluxData Support.