added shortcut for switching between configs

pull/883/head
Scott Anderson 2020-03-27 14:52:46 -06:00
parent 590dea9b2a
commit 3e0dce7c8d
1 changed files with 14 additions and 1 deletions

View File

@ -9,7 +9,11 @@ weight: 101
v2.0/tags: [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.
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
```
@ -17,6 +21,15 @@ influx config [flags]
influx config [command]
```
##### Quickly switch between configurations
```sh
# Syntax
influx config <config-name>
# Example
influx config local-config
```
## Subcommands
| Subcommand | Description |
|:---- |:----------- |