Skip to content

Latest commit

 

History

History
64 lines (43 loc) · 2.42 KB

mssql-cli.md

File metadata and controls

64 lines (43 loc) · 2.42 KB
title description author ms.author ms.reviewer ms.date ms.service ms.subservice ms.topic ms.custom monikerRange
mssql-cli
mssql-cli is an interactive command-line query tool for SQL Server that runs on Windows, macOS, or Linux.
markingmyname
maghan
alayu, maghan
02/22/2018
sql
tools-other
conceptual
tools|mssql-cli, linux-related-content
=azuresqldb-current||=azure-sqldw-latest||>=sql-server-2016||>=sql-server-linux-2017

mssql-cli command-line query tool for SQL Server (Preview)

[!INCLUDEappliesto-ss-asdb-asdw-xxx-md]

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

Install mssql-cli

For detailed installation instructions, see the Installation Guide. The most common install scenarios are summarized below.

Windows and macOS Installation

mssql-cli is installed on Windows and macOS using pip:

$ pip install mssql-cli

For more detailed instructions, please see the Installation Guide.

Linux Installation

After registering the Microsoft repository, mssql-cli can be installed and upgraded through package managers on several Linux distributions.

The following example applies to Ubuntu 18.04 (Bionic), more information and examples for other distributions can be found in the Installation Guide.

# Import the public repository GPG keys
curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc

# Register the Microsoft Ubuntu repository
sudo apt-add-repository https://packages.microsoft.com/ubuntu/18.04/prod

# Update the list of products
sudo apt-get update

# Install mssql-cli
sudo apt-get install mssql-cli

# Install missing dependencies
sudo apt-get install -f

mssql-cli documentation

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

Additional documentation is located in the doc folder.