Skip to main content

PyPI Python 2.7|3.4|3.5|3.6|3.7|3.8

mssql-cli

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 Autocomplete

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 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 opencode@microsoft.com with any additional questions or comments.

License

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

Metadata

Release files for mssql-cli 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for mssql-cli 1.0.0
File
mssql_cli-1.0.0-py2.py3-none-win_amd64.whl Python 2, Python 3 none Windows x86-64 Details
mssql_cli-1.0.0-py2.py3-none-win32.whl Python 2, Python 3 none Windows x86-32 Details
mssql_cli-1.0.0-py2.py3-none-manylinux1_x86_64.whl Python 2, Python 3 none Linux glibc 2.5+ x86-64 Details
mssql_cli-1.0.0-py2.py3-none-macosx_10_11_intel.whl Python 3, Python 2 none macOS 10.11+ Intel (x86-64, i386) Details

Total release size: 173.1 MB

Release files / mssql_cli-1.0.0-py2.py3-none-win_amd64.whl

Download URL mssql_cli-1.0.0-py2.py3-none-win_amd64.whl
Size 45.1 MB
Tags Python 2 Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
c6f705fe0163e190b7697f9696aee0d5b266857408f0a6afafbaef6a35d7b5cb
BLAKE2b-256 checksum
How to use checksums
f6cdcf9be6175ccc241fd70e11e8d8d6455a630e06ffe1c937034b37e1301b2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

Release files / mssql_cli-1.0.0-py2.py3-none-win32.whl

Download URL mssql_cli-1.0.0-py2.py3-none-win32.whl
Size 42.3 MB
Tags Python 2 Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
3666727a7fb9944fbabe2e8e663a0b6d3b3476c63ce1c80018d3d00e84f4f2e2
BLAKE2b-256 checksum
How to use checksums
08e038d4721bcc0f5f013e8a05b722f55675185dc9e62f460a8615f25e4f0098
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

Release files / mssql_cli-1.0.0-py2.py3-none-manylinux1_x86_64.whl

Download URL mssql_cli-1.0.0-py2.py3-none-manylinux1_x86_64.whl
Size 43.4 MB
Tags Linux glibc 2.5+ x86-64 Python 2 Python 3
SHA-256 checksum
How to use checksums
edb3850ab8ffa077c64270f27263f6377fdb5bd5bb5c5b4990c5fb08f49627b6
BLAKE2b-256 checksum
How to use checksums
4698257260e7a520291de8168c91bb10778dcae324e2a236e856dd3cce7fe0b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

Release files / mssql_cli-1.0.0-py2.py3-none-macosx_10_11_intel.whl

Download URL mssql_cli-1.0.0-py2.py3-none-macosx_10_11_intel.whl
Size 42.4 MB
Tags Python 2 Python 3 macOS 10.11+ Intel (x86-64, i386)
SHA-256 checksum
How to use checksums
b8ea7a9be114fb741ab28259659be8f07e96e512acfd1c372643a3c38b137495
BLAKE2b-256 checksum
How to use checksums
142f8ba644a5f8a51048a749441113acd51df282b20ad1497b2aaf599adb10db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

Release history Release notifications | RSS feed

This release

1.0.0 This release

4 release files

0.18.2

4 release files

0.18.0

4 release files

0.17.3

4 release files

0.17.2

3 release files

0.17.1

4 release files

0.17.0

4 release files

0.16.0

4 release files

0.13.0

4 release files

0.10.0

4 release files

0.9.0

4 release files

0.8.0

4 release files

0.7.0

4 release files

0.6.0

4 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page