# influx-cli
CLI for managing resources in InfluxDB v2
## Motivation
This repository decouples the `influx` CLI from the OSS `influxdb` codebase. Our goals are to:
1. Make it easier to keep the CLI up-to-date with InfluxDB Cloud API changes
2. Enable faster turn-around on fixes/features that only affect the CLI
3. Allow the CLI to be built & released for a wider range of platforms than the server can support
## Building
Run `make` or `make influx` to build the CLI. The output binary will be written to `bin/$(GOOS)/influx`.
### Regenerating OpenAPI client
We use [`OpenAPITools/openapi-generator`](https://github.com/OpenAPITools/openapi-generator) to generate
the underlying HTTP client used by the CLI. Run `make openapi` to re-generate the code. You'll need Docker
running locally for the script to work.
## Running
After building, use `influx -h` to see the list of available commands.
### Enabling Completions
The CLI supports generating completions for `bash`, `zsh`, and `powershell`. To enable completions for a
single shell session, run one of these commands:
```
# For bash:
source <(influx completion bash)
# For zsh:
source <(influx completion zsh)
# For pwsh:
Invoke-Expression ((influx completion powershell) -join "`n`")
```
To enable completions across sessions, add the appropriate line to your shell's login profile (i.e. `~/.bash_profile`).
## Testing
Run `make test` to run unit tests.
YunFeiDong
- 粉丝: 173
- 资源: 4045
最新资源
- Labview仪器开发,2路模拟量采集,8路IO口输入输出,标准信号源,带详细Labview示例程序,可以快速开发仪器
- MATLAB代码:基于滚动优化的大规模电动汽车随机充放电策略优化 关键词:电动汽车充放电优化 电动汽车 滚动优化 充放电策略 参考文档:Optimal Scheduling for Chargi
- 流水线全套仿真方案,包含PLC、HMI程序和工厂仿真界面 完美仿真流水线电气和机械动作,物料流转,信息传递
- 14、只需一部手机就能月入过万的影视剪辑项目,操作简单,搬运即可.pdf
- 12、今日头条的问答有收入吗?教你操作问答月入过万!.pdf
- 恒功率负载下Buck变器的建模与控制simulink仿真文件 现代控制理论 附赠参考文献 另有一份word或PDF报告
- 基于C#语言的FreeSql设计源码,支持多种数据库ORM解决方案
- 35、无人直播项目详细操作步骤分解,能赚多少你进来看看.pdf
- 38、爱奇艺联盟无脑搬砖项目,可配合操作CPS.pdf
- 41、如何利用youtube躺赚美元,奇葩玩法也能年赚百万元.pdf
- 47、互联网月入3万的细分领域玩法,学会后立马突破瓶颈.pdf
- 49、做网站实现一单利润数十万的玩法.pdf
- 西门子PLC动态密码程序,1200PLC和1500PLC通用,催款程序,动态密保,底层使用SCL写的,并且录制了视频讲解,详细介绍了程序编写的思路和画面操作步骤,非常值得拥有
- 58、录制软件类安装视频教程,月入万元.pdf
- 61、电脑重装系统,被我们忽视的零成本创业项目项目.pdf
- 60、卖电脑怎么赚钱?组装电脑信息差年赚50W+.pdf
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈