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
influx config set [flags]
Aliases
set
, update
Flags
Flag | Description | Input type | Maps 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-name | Name for the InfluxDB connection configuration to set or update | string | |
-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-url | URL for InfluxDB connection configuration to set or update | string | |
—json | Output data as JSON (default false ) | INFLUX_OUTPUT_JSON | ||
-o | —org | Organization name for the connection configuration | string |
Examples
# Update a connection configuration and set it to active
influx config set --active \
-n config-name \
-t mySuP3rS3cr3tT0keN \
-o example-org
# Update a connection configuration and do not set it to active
influx config set \
-n config-name \
-t mySuP3rS3cr3tT0keN \
-o example-org