MySQL terminal client with autocompletion, syntax highlighting and dataframes
open sourceBSD-3-Clauseself-hostablefree
mycli is an open source command-line client for MySQL that completes table and column names as you type and highlights SQL syntax. It works with MySQL, MariaDB, Percona, TiDB and Apache Doris, and adds fuzzy history search through fzf, LLM support, dataframe output, a pager, favourite queries and a ~/.myclirc config. It connects over TCP, sockets or URLs with full SSL/TLS options, and integrates with SSH, Kubernetes, HashiCorp Vault and Boundary for reaching servers and fetching credentials. It installs with pip or Homebrew, from most Linux distributions' packages, or runs from a Docker image with a sample database. It's tested on macOS and Linux, BSD-3-Clause licensed and part of the dbcli family alongside pgcli and litecli.
Ways to install
Package managers
Problems it solves
- a MySQL command-line client with autocompletion
- the mysql shell is painful to use: no completion or syntax highlighting
- autocomplete table and column names when writing SQL in the terminal
- search my past SQL queries quickly from the terminal
- a better CLI for MariaDB
- connect to a MySQL database through SSH from the command line
- get MySQL credentials from Vault when connecting from the terminal
- query TiDB or Apache Doris from a friendly terminal client
Features
- context-aware autocompletion of SQL keywords, tables and columns
- syntax highlighting
- fuzzy history search with fzf
- LLM support
- dataframe support
- pager output
- favourite queries and ~/.myclirc config
- SSL/TLS connection options
- SSH, Kubernetes, Vault and Boundary integrations
- MySQL, MariaDB, Percona, TiDB and Apache Doris support
View 1 more
- Docker image with a sample database
Limitations
- Tested on macOS and Linux only; native Windows has known limitations and isn't supported2
Capabilities
| Has a command line tool | plan not known |
|---|
