# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix 安装 mycli

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

## 安装

```sh
sudo av install brew:mycli
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mycli
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mycli
```

  证据: MacPorts ports tree: databases/mycli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add mycli
```

  证据: Alpine Linux edge package indexes: mycli from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install mycli
```

  证据: Debian stable package indexes: mycli from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install mycli
```

  证据: Fedora Rawhide package metadata: mycli from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#mycli
```

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

## 软件包事实

- **软件包键:** brew:mycli
- **软件包管理器:** Homebrew
- **版本:** 2.9.0
- **来源摘要:** CLI for MySQL with auto-completion and syntax highlighting
- **主页:** <https://www.mycli.net/>
- **最后更新:** 2026-08-01T19:23:45Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- mycli (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

mycli is a modern terminal client for MySQL-family databases created in the dbcli ecosystem. Amjith Ramanujam introduced the project in 2015 as mysql-cli, a MySQL counterpart to pgcli, and funded the initial work through a Kickstarter campaign. The DBCLI project later grouped mycli with related command-line database clients such as pgcli and mssql-cli.

### 项目历史

The project README defines mycli as a MySQL command-line client with auto-completion and syntax highlighting, compatible with MySQL, MariaDB, Percona, TiDB, and Apache Doris. Its practical appeal is in interactive database work: context-sensitive completion for SQL keywords and schema objects, Pygments-based highlighting, multiline queries, favorite queries, query timing, formatted table output, SSL support, keyring-backed password storage, and a ~/.myclirc configuration file.

### 使用方式

mycli's adoption is visible both in its GitHub footprint and its packaging spread: it is installable through pip, Homebrew, Debian/Ubuntu, Fedora, and other distribution channels. Its package-manager niche is the friendlier drop-in terminal client for developers and DBAs who still want a shell workflow but prefer completion and display ergonomics closer to newer REPLs.

### 来源

- <https://amjith.com/blog/kickstarter-mysql-cli/>
- <https://github.com/dbcli/mycli>
- <https://raw.githubusercontent.com/dbcli/mycli/main/README.md>
- <https://www.dbcli.com/about/>
- <https://www.kickstarter.com/projects/1839007321/mysql-cli>
- <https://www.mycli.net/>


## 安全说明

没有找到 mycli 的匹配本地密钥处理 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

- Unix: ~/.myclirc, ~/.config/mycli/myclirc

## Credential files

- Unix: ~/.myclirc, ~/.config/mycli/myclirc
## 其他软件包管理器记录

- Debian apt - mycli - 1.31.2-1: normalized package name match | Debian stable package indexes: mycli from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | CLI for MySQL/MariaDB with auto-completion and syntax highlighting | https://www.mycli.net
- Nix - mycli: normalized package name match | nixpkgs package indexes: pkgs/by-name/my/mycli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - mycli - 1.27.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: mycli from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | CLI for MySQL/MariaDB with auto-completion and syntax highlighting | https://www.mycli.net
- apk - mycli - 1.66.0-r0: normalized package name match | Alpine Linux edge package indexes: mycli from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | MySQL CLI with autocompletion and syntax highlighting | https://www.mycli.net/
- apk - mycli-pyc - 1.66.0-r0: normalized package name match | Alpine Linux edge package indexes: mycli-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for mycli | https://www.mycli.net/
- dnf - mycli - 1.66.0-4.fc45: normalized package name match | Fedora Rawhide package metadata: mycli from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Interactive CLI for MySQL Database with auto-completion and syntax highlighting | https://mycli.net
- dnf - python3-mycli+llm - 1.66.0-4.fc45: normalized package name match | Fedora Rawhide package metadata: python3-mycli+llm from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Metapackage for python3-mycli: llm extras | https://mycli.net
- dnf - python3-mycli+ssh - 1.66.0-4.fc45: normalized package name match | Fedora Rawhide package metadata: python3-mycli+ssh from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Metapackage for python3-mycli: ssh extras | https://mycli.net
- MacPorts - mycli: normalized package name match | MacPorts ports tree: databases/mycli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/mycli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mycli.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
