Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

CLI for SQL Server Database. With auto-completion and syntax highlighting.

Project Description


We’re excited to introduce mssql-cli, a new and interactive command line query tool for SQL Server. This open source tool works cross-platform and proud to be a part of the community.


  • Auto-completion
  • Syntax highlighting
  • Query history
  • Configuration file support
  • Multi-line queries


$ pip install mssql-cli

Please refer to the installation guide for detailed install instructions.


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.

For general help content, pass in the -h parameter:

$ mssql-cli --help

The mssql-cli tool includes a telemetry feature. Please refer to the telemetry guide for more information.


If you would like to contribute to the project, please refer to the development guide.

Reporting issues and feedback

If you encounter any bugs with the tool 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 with any additional questions or comments.


mssql-cli is licensed under the BSD-3 license.

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(33.2 MB) Copy SHA256 Hash SHA256
Wheel py2.py3 Feb 16, 2018
(34.3 MB) Copy SHA256 Hash SHA256
Wheel py2.py3 Feb 16, 2018
(33.6 MB) Copy SHA256 Hash SHA256
Wheel py2.py3 Feb 16, 2018
(36.3 MB) Copy SHA256 Hash SHA256
Wheel py2.py3 Feb 16, 2018

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers