dbcli/mssql-cli
dbcli/mssql-cli has 1,422 GitHub stars and 190 forks. GitHot measured +1 stars in 24 hours and +1 in 7 days. Last checked 2026-11-10 04:27 UTC. Last push 2024-02-26.
A command-line client for SQL Server with auto-completion and syntax highlighting
Crecimiento de estrellas medido
- in 24h
- +1
- in 7 days
- +1
- in 15 days
- Recopilando historial
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
Originalmssql-cli
DEPRECATION NOTICE mssql-cli is on the path to deprecation, and will be fully replaced by the new go-sqlcmd utility once it becomes generally available. We are actively in development for the new sqlcmd, and would love to hear feedback on it here!
mssql-cli is an interactive command line query tool for SQL Server. This open source tool works cross-platform and proud to be a part of the dbcli community.

mssql-cli supports a rich interactive command line experience, with features such as:
- Auto-completion: fewer keystrokes needed to complete complicated queries.
- Syntax highlighting: highlights T-SQL keywords.
- Query history: easily complete an auto-suggested query that was previously executed.
- Configuration file support: customize the mssql-cli experience for your needs.
- Multi-line queries: execute multiple queries at once using the multi-line edit mode.
- Non-interactive support: execute a query without jumping into the interactive experience.
Quick Start
Read the section below to quickly get started with mssql-cli. Consult the usage guide for a deeper dive into mssql-cli features.
Install mssql-cli
Platform-specific installation instructions are below:
| Windows (preview) | macOS | Linux |
|---|
Visit the installation reference guide to view all supported releases and downloads.
Install with Linux Package Manager
Follow the Linux installation instructions to install mssql-cli using apt-get, yum, and other Linux package managers.
Install with pip
python -m pip install mssql-cli
Please refer to the pip installation docs for more platform-specific information.
Connect to Server
Complete the command below to connect to your server:
mssql-cli -S <server URL> -d <database name> -U <username> -P <password>
Exit mssql-cli
Press Ctrl+D or type quit.
Show Options
For general help content, pass in the -h parameter:
mssql-cli --help
Usage Docs
Please refer to the usage guide for details on options and example usage. If you are having any issues using mssql-cli, please see the troubleshooting guide.
Telemetry
The mssql-cli tool includes a telemetry feature. Please refer to the telemetry guide for more information.
Contributing
If you would like to contribute to the project, please refer to the development guide.
Contact Us
If you encounter any bugs or would like to leave a feature request, please file an issue in the Issues section of our GitHub repo.
Code of Conduct
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
License
mssql-cli is licensed under the BSD-3 license.
Explorar proyectos relacionados
Asabeneh/30-Days-Of-Python
El reto de programación 30 Days of Python es una guía paso a paso para aprender el lenguaje de programación Python en 30 días. Este reto puede llevar más de 100 días. Sigue tu propio ritmo. Estos vídeos también pueden ayudarte: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,486 estrellasgrafana/grafana
Plataforma abierta y componible de observabilidad y visualización de datos. Visualiza métricas, registros y trazas de múltiples fuentes, como Prometheus, Loki, Elasticsearch, InfluxDB, Postgres y muchas más.
77,790 estrellasredis/redis
Para los desarrolladores que crean aplicaciones en tiempo real basadas en datos, Redis es la opción preferida, la más rápida y la de más funciones como caché, servidor de estructuras de datos y motor de consultas de documentos y vectores.
77,332 estrellasapache/superset
Apache Superset es una plataforma de visualización y exploración de datos.
75,455 estrellas