You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.