docs-v2/content/v2.0/reference/cli/influx/config/_index.md

1.5 KiB

title description menu weight v2.0/tags
influx config The 'influx config' command and subcommands manage multiple InfluxDB connection configurations.
v2_0_ref
name parent
influx config influx
101
config

The influx config command manages multiple InfluxDB connection configurations file (by default, stored at ~/.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]
Quickly switch between configurations
# Syntax
influx config <config-name>

# Example
influx config local-config

Subcommands

Subcommand Description
create Create a new 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

{{% cli/influx-global-flags %}}