mssql-cli command-line query tool for SQL Server

THIS TOPIC APPLIES TO: yesSQL ServeryesAzure SQL DatabaseyesAzure SQL Data Warehouse noParallel Data Warehouse

mssql-cli is an interactive command-line tool for querying SQL Server, install it on Windows, macOS, or Linux.

Install mssql-cli

For detailed installation instructions, see the Installation Guide, or if you know pip, install by running the following command:

$ pip install mssql-cli

mssql-cli documentation

Documentation for mssql-cli is located in the mssql-cli GitHub repository.

Additional documentation is located in the doc folder.