InfluxDB Docs

influx 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

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

Flags

FlagDescription
-h, --helpHelp for the config command

Global Flags

FlagDescriptionInput typeMaps to ?
--hostHTTP address of InfluxDB (default http://localhost:9999)stringINFLUX_HOST
--localRun commands against the local filesystem
--skip-verifySkip certificate verification (use when connecting over TLS with a self-signed certificate)
-t, --tokenAPI token to use in client callsstringINFLUX_TOKEN