influx config set

The influx config set command updates information in an InfluxDB connection configuration in the configs file (by default, stored at ~/.influxdbv2/configs).

Usage

  1. influx config set [flags]

Aliases

set , update

Flags

FlagDescriptionInput typeMaps to ?
-a—active</td><td>Set the specified connection to active</td><td></td><td></td></tr><tr><td><code>-n</code></td><td>--config-nameName for the InfluxDB connection configuration to set or updatestring
-h—help</td><td>Help for the <code>set</code> command</td><td></td><td></td></tr><tr><td></td><td><code>--hide-headers</code></td><td>Hide table headers (default <code>false</code>)</td><td></td><td><code>INFLUX_HIDE_HEADERS</code></td></tr><tr><td><code>-u</code></td><td>--host-urlURL for InfluxDB connection configuration to set or updatestring
—jsonOutput data as JSON (default false)INFLUX_OUTPUT_JSON
-o—orgOrganization name for the connection configurationstring

Examples

  1. # Update a connection configuration and set it to active
  2. influx config set --active \
  3. -n config-name \
  4. -t mySuP3rS3cr3tT0keN \
  5. -o example-org
  6. # Update a connection configuration and do not set it to active
  7. influx config set \
  8. -n config-name \
  9. -t mySuP3rS3cr3tT0keN \
  10. -o example-org