# 使用 Homebrew, Nix, scoop, 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

- Scoop (92%):

```sh
scoop install extras/dbx
```

  证据: Scoop official bucket manifest trees: bucket/dbx.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

- 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
- **版本:** 0.4.53
- **来源摘要:** Command-line interface for DBX database connections, schema, and safe queries
- **主页:** <https://dbxio.com>
- **仓库:** <https://github.com/t8y2/dbx>
- **最后更新:** 2026-08-03T07:36:34Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- dbx (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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
## 其他软件包管理器记录

- 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
- Scoop - extras/dbx: installed executable or alias match | Scoop official bucket manifest trees: bucket/dbx.json from https://api.github.com/repos/ScoopInstaller/Extras/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


## Combined YAML source

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


## 来源

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