# 使用 Homebrew, Nix, winget 安装 dbx-cli

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dbx-cli
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#dbx
```

  证据: nixpkgs package indexes: pkgs/by-name/db/dbx/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- winget (92%):

```sh
winget install --id t8y2.DBX -e
```

  证据: Windows Package Manager source index: t8y2.DBX from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:dbx-cli
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dbx-cli>
- **版本:** 0.4.42
- **来源摘要:** Command-line interface for DBX database connections, schema, and safe queries
- **主页:** <https://dbxio.com>
- **仓库:** <https://github.com/t8y2/dbx>
- **上游文档:** <https://github.com/t8y2/dbx#readme>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/t8y2/dbx/archive/refs/tags/packages-v0.4.42.tar.gz>
- **最后更新:** 2026-07-23T18:27:01Z
- **已生成:** 2026-07-25T07:20:51+00:00

## 可执行文件

- dbx (cli)
- dbx (别名)

## 构建依赖

- pkgconf
- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-25
- 管理器版本: 0.4.42
- 管理器更新时间: 2026-07-23
- 本地数据: OK
- 上游仓库: https://github.com/t8y2/dbx
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

DBX CLI is the command-line companion for DBX, focused on database connections, schema inspection, safe SQL queries, and prompt-ready schema context.

### 项目历史

The CLI lives inside the DBX monorepo, whose README describes DBX as a lightweight cross-platform database client and manager with desktop, web, Docker, and MCP-oriented workflows.

### 采用历史

Official installation paths include npm and Homebrew, which places the CLI in normal package-manager workflows for developers who want database metadata and query output in scripts.

### 使用方式

Typical CLI usage includes listing connections, describing schemas, running read-only queries, printing compact context for prompts, and opening DBX desktop views.

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

Package-manager users care because DBX CLI bridges local database connection state with shell automation and AI-agent workflows while documenting stable JSON and CSV output modes.

### 时间线

- Current: DBX CLI is documented as installable through npm and Homebrew.
- Current: DBX documents MCP and Codex-oriented database workflows.

### Related projects

- DBX Desktop, DBX MCP server, database clients such as DBeaver and TablePlus.

### 来源

- <https://github.com/t8y2/dbx#readme>
- <https://github.com/t8y2/dbx/blob/main/packages/cli/README.md>


## 安全说明

没有找到 dbx-cli 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## 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

- Linux: $DBX_DATA_DIR/dbx.db, ~/.local/share/com.dbx.app/dbx.db
- macOS: $DBX_DATA_DIR/dbx.db, ~/Library/Application Support/com.dbx.app/dbx.db
- Windows: %DBX_DATA_DIR%\dbx.db, %APPDATA%\com.dbx.app\dbx.db

## Credential files

- Linux: $DBX_DATA_DIR/dbx.db, ~/.local/share/com.dbx.app/dbx.db
- macOS: $DBX_DATA_DIR/dbx.db, ~/Library/Application Support/com.dbx.app/dbx.db
- Windows: %DBX_DATA_DIR%\dbx.db, %APPDATA%\com.dbx.app\dbx.db
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** dbx-cli
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- Nix - dbx: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/db/dbx/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- winget - t8y2.DBX: installed executable or alias match | Windows Package Manager source index: t8y2.DBX from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [MCP tool packages](https://www.automicvault.com/zh-hans/pkg/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [AI and agent packages](https://www.automicvault.com/zh-hans/pkg/ai-agent-tools/) - Matched AI model, agent, coding-agent, orchestration, or MCP metadata.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [pkgconf](https://www.automicvault.com/zh-hans/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [anyquery](https://www.automicvault.com/zh-hans/pkg/brew/anyquery/) - Shares av.db curated category or tags: cli, data, mcp, sql.
- [clickhouse-sql-parser](https://www.automicvault.com/zh-hans/pkg/brew/clickhouse-sql-parser/) - Shares av.db curated category or tags: cli, data, database-tools.
- [couchbase-shell](https://www.automicvault.com/zh-hans/pkg/brew/couchbase-shell/) - Shares av.db curated category or tags: cli, data, database-tools.
- [cqlkit](https://www.automicvault.com/zh-hans/pkg/brew/cqlkit/) - Shares av.db curated category or tags: cli, data, database-tools.
- [gqlplus](https://www.automicvault.com/zh-hans/pkg/brew/gqlplus/) - Shares av.db curated category or tags: cli, data, database-client, sql.
- [percona-toolkit](https://www.automicvault.com/zh-hans/pkg/brew/percona-toolkit/) - Shares av.db curated category or tags: cli, data, database-tools.
- [psql2csv](https://www.automicvault.com/zh-hans/pkg/brew/psql2csv/) - Shares av.db curated category or tags: cli, data, database-tools.
- [rainfrog](https://www.automicvault.com/zh-hans/pkg/brew/rainfrog/) - Shares av.db curated category or tags: cli, data, database-tools.
- [knex](https://www.automicvault.com/zh-hans/pkg/npm/knex/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, data, database, database-tools, query.
- [kysely-ctl](https://www.automicvault.com/zh-hans/pkg/npm/kysely-ctl/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, command-line, data, database, database-tools.

## Combined YAML source

View the package source record on GitHub. [combined/dbx-cli.yml](https://github.com/automic-vault/db/blob/main/combined/dbx-cli.yml)


## 来源

- Nucleus package database
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
