# 使用 Homebrew 安装 vi-sql

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

## 安装

```sh
sudo av install brew:vi-sql
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install vi-sql
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:vi-sql
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/vi-sql>
- **版本:** 0.6.0
- **来源摘要:** Terminal UI for SQL databases
- **主页:** <https://vi-sql.com>
- **仓库:** <https://github.com/kopecmaciej/vi-sql>
- **上游文档:** <https://vi-sql.com>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/kopecmaciej/vi-sql/archive/refs/tags/v0.3.0.tar.gz>
- **最后更新:** 2026-10-08T18:56:11Z
- **已生成:** 2026-10-12T03:48:17+00:00

## 可执行文件

- vi-sql (cli)
- vi-sql (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-10-12
- 管理器版本: 0.6.0
- 管理器更新时间: 2026-10-08
- 本地数据: OK
- 上游仓库: https://github.com/kopecmaciej/vi-sql
- 检测到的最新版本: v0.3.0 (当前)
## 项目历史与用法

vi-sql is a customizable, keyboard-driven terminal SQL client with database browsing, editing, query analysis, import/export, encrypted connection profiles, and an optional MCP server.

### 项目历史

vi-sql is an open-source Go terminal interface for SQL databases. Its official materials describe support for PostgreSQL-family servers, MySQL-family servers, and SQLite, alongside a multi-tab editor and database-object browser.

### 采用历史

vi-sql is distributed as downloadable binaries, through its installation script, Homebrew, and from source. It targets terminal users who want database browsing and editing without moving to a graphical SQL client.

### 使用方式

Run vi-sql and enter connection details interactively, pass a PostgreSQL, MySQL, or SQLite DSN with --connect, or select a saved connection by name. Use vi-sql --paths to print the resolved configuration and ancillary paths. The optional local MCP endpoint is disabled by default and separates read and write permissions.

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

vi-sql combines a keyboard-driven SQL TUI with schema browsing, query-plan inspection, import/export, customizable YAML themes, encrypted saved connections, and an HTTP MCP server. The blend of Vim-style interaction and controlled AI-tool access is its distinctive packaging niche.

### 时间线

- 2026: The official website advertises the 0.2 series and presents vi-sql as an open-source, multi-database terminal client.

### Related projects

- PostgreSQL
- MySQL
- MariaDB
- CockroachDB
- SQLite
- Model Context Protocol
- Vim

### 来源

- <https://github.com/kopecmaciej/vi-sql#readme>
- <https://vi-sql.com/>
- <https://vi-sql.com/docs>
- <https://vi-sql.com/docs/config>


## 安全说明

没有找到 vi-sql 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 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: $XDG_CONFIG_HOME/vi-sql/config.yaml, ~/.config/vi-sql/config.yaml
- macOS: ~/Library/Application Support/vi-sql/config.yaml
- Windows: %LOCALAPPDATA%\vi-sql\config.yaml
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** vi-sql
- **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


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Database and data packages](https://pkg.so/zh-hans/database-data-tools/) - Matched database, SQL, migration, or data-store metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [beads_viewer](https://pkg.so/zh-hans/brew/beads-viewer/) - Local package facts share a topical domain. Shared terms: terminal, ui.
- [cql](https://pkg.so/zh-hans/brew/cql/) - Local package facts share a topical domain. Shared terms: databases, sql.
- [flawz](https://pkg.so/zh-hans/brew/flawz/) - Local package facts share a topical domain. Shared terms: terminal, ui.

## Combined YAML source

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


## 来源

- pkg.so package database
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
