# Install dbx-cli with Homebrew, Nix, winget

Command-line interface for DBX database connections, schema, and safe queries. Version 0.4.42 via Homebrew; verified 2026-07-23. Also installable with nix: nix profile install nixpkgs#dbx.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

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

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:dbx-cli
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/dbx-cli>
- **Version:** 0.4.42
- **Source summary:** Command-line interface for DBX database connections, schema, and safe queries
- **Homepage:** <https://dbxio.com>
- **Repository:** <https://github.com/t8y2/dbx>
- **Upstream docs:** <https://github.com/t8y2/dbx#readme>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/t8y2/dbx/archive/refs/tags/packages-v0.4.42.tar.gz>
- **Last updated:** 2026-07-23T18:27:01Z
- **Generated:** 2026-07-25T07:20:51+00:00

## Executables

- dbx (cli)
- dbx (alias)

## Build dependencies

- pkgconf
- rust

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-25
- Package-manager version: 0.4.42
- Package-manager updated: 2026-07-23
- Local data: ok
- Upstream repository: https://github.com/t8y2/dbx
- info: No cached GitHub release or tag data was available.
## Project history and usage

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

### Project history

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.

### Adoption history

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.

### How it is used

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

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

No matching local secret-handling manifest was found for dbx-cli. Nucleus package metadata is still published here so future coverage has a stable package 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 Details

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

## Other Package-Manager Records

- 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


## Related links

- [MCP tool packages](https://www.automicvault.com/pkg/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [AI and agent packages](https://www.automicvault.com/pkg/ai-agent-tools/) - Matched AI model, agent, coding-agent, orchestration, or MCP metadata.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [anyquery](https://www.automicvault.com/pkg/brew/anyquery/) - Shares av.db curated category or tags: cli, data, mcp, sql.
- [clickhouse-sql-parser](https://www.automicvault.com/pkg/brew/clickhouse-sql-parser/) - Shares av.db curated category or tags: cli, data, database-tools.
- [couchbase-shell](https://www.automicvault.com/pkg/brew/couchbase-shell/) - Shares av.db curated category or tags: cli, data, database-tools.
- [cqlkit](https://www.automicvault.com/pkg/brew/cqlkit/) - Shares av.db curated category or tags: cli, data, database-tools.
- [gqlplus](https://www.automicvault.com/pkg/brew/gqlplus/) - Shares av.db curated category or tags: cli, data, database-client, sql.
- [percona-toolkit](https://www.automicvault.com/pkg/brew/percona-toolkit/) - Shares av.db curated category or tags: cli, data, database-tools.
- [psql2csv](https://www.automicvault.com/pkg/brew/psql2csv/) - Shares av.db curated category or tags: cli, data, database-tools.
- [rainfrog](https://www.automicvault.com/pkg/brew/rainfrog/) - Shares av.db curated category or tags: cli, data, database-tools.
- [knex](https://www.automicvault.com/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/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)


## Sources

- 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
