influx 配置
该 influx config 命令显示活动的 InfluxDB 连接配置,并管理多个默认存储在 ~/.influxdbv2/configs 中的连接配置。每个连接包括一个 URL、token、相关组织和活动设置。InfluxDB 从活动连接配置中读取 token,因此您不必手动输入 token 以登录 InfluxDB。
用法
influx config [flags]
influx config [command]
influx config <config-name>
快速切换配置
# Syntax
influx config <config-name>
# Example
influx config local-config
要快速切换回之前的配置,请使用以下命令:
influx config -
示例
# Show the active connection configuration
influx config
# Set a connection configuration as active
influx config local-config
子命令
| 子命令 | 描述 |
|---|---|
| create | 创建连接配置 |
| list | 列出连接配置 |
| delete | 删除连接配置 |
| set | 设置或更新连接配置 |
标志
| 标志 | 描述 | |
|---|---|---|
-h | --help | 用于config命令的帮助信息 |