influx config
influx config
命令显示活动的 InfluxDB 连接配置,并管理默认存储在 ~/.influxdbv2/configs
中的多个连接配置。每个连接包括 URL、令牌、关联的组织和活动设置。InfluxDB 从活动连接配置中读取令牌,因此您无需手动输入令牌即可登录 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 命令的帮助 |
此页内容是否有帮助?
感谢您的反馈!