# 使用 Homebrew, winget 安装 influxdb-cli

查看 influxdb-cli 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:influxdb-cli
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install influxdb-cli
```

  证据: local Homebrew formula metadata

### Windows

- winget (92%):

```sh
winget install --id InfluxData.InfluxDB.CLI -e
```

  证据: Windows Package Manager source index: InfluxData.InfluxDB.CLI from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:influxdb-cli
- **软件包管理器:** Homebrew
- **版本:** 2.8.0
- **来源摘要:** CLI for managing resources in InfluxDB v2
- **主页:** <https://influxdata.com/time-series-platform/influxdb/>
- **仓库:** <https://github.com/influxdata/influx-cli>
- **最后更新:** 2026-06-22T14:03:47-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- influx (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.8.0
## 项目历史与用法

InfluxDB CLI is the separately packaged influx command for managing InfluxDB v2 resources. It handles setup, config profiles, organizations, buckets, authorizations, tasks, templates, backups, restores, writes, queries, and related administrative workflows.

### 项目历史

InfluxDB v2 originally shipped the influx CLI alongside the server. InfluxData release notes announced that beginning with InfluxDB 2.1 the CLI would no longer be packaged with the server release, and future CLI versions would come from the influxdata/influx-cli repository.

The influx-cli README explains the split plainly: decoupling made it easier to track InfluxDB Cloud API changes, ship CLI-only fixes faster, and build releases for more platforms than the server could support. That turned influx from a server-adjacent binary into a separately versioned package.

### 采用历史

The CLI remained central to InfluxDB v2 operations after the split because the docs use it for setup, writing data, querying data, profile management, and automation. The input metadata shows a dedicated Homebrew formula and winget package, separate from the InfluxDB server package.

### 使用方式

Users run influx setup to initialize a v2 instance, manage config profiles stored under ~/.influxdbv2/configs, create buckets and organizations, manage auth tokens, write line protocol, run Flux queries, and automate backup or restore operations. The separate package is especially useful on admin workstations that need to control remote InfluxDB servers without installing the server.

### 为什么软件包爱好者会关心

influxdb-cli is a neat packaging case study: a CLI split out of a database server because cloud APIs, platform support, and release cadence needed a smaller artifact. Package managers expose that boundary directly by shipping influxdb-cli apart from influxdb.

### 时间线

- 2020: InfluxDB 2.0 GA shipped with v2 API, Flux, setup, backup, and restore CLI workflows.
- 2021: InfluxDB 2.1 packaging notes announced the CLI/server split.
- 2021: influx CLI v2.1.0 documented as the first release from influxdata/influx-cli.
- 2026: influx CLI v2.8.0 release notes documented continued standalone maintenance.

### Related projects

- InfluxDB v2 is the server line this CLI manages. InfluxDB Cloud drove part of the decoupling rationale. Flux, InfluxQL compatibility, OpenAPI-generated clients, and the InfluxData downloads portal are closely related to the CLI's workflows and distribution.

### 来源

- <https://docs.influxdata.com/influxdb/v2/reference/release-notes/influx-cli/>
- <https://docs.influxdata.com/influxdb/v2/reference/release-notes/influxdb/>
- <https://docs.influxdata.com/influxdb/v2/tools/influx-cli/>
- <https://github.com/influxdata/influx-cli>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.influxdbv2/configs

## Credential files

- Unix: ~/.influxdbv2/configs
## 其他软件包管理器记录

- winget - InfluxData.InfluxDB.CLI: normalized package name match | Windows Package Manager source index: InfluxData.InfluxDB.CLI from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/influxdb-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/influxdb-cli.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
