added shortcut for switching between configs
parent
590dea9b2a
commit
3e0dce7c8d
|
@ -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 |
|
||||
|:---- |:----------- |
|
||||
|
|
Loading…
Reference in New Issue