Skip to main content

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

Project description

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.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

mssql_cli-0.18.2-py2.py3-none-win_amd64.whl (45.1 MB view details)

Uploaded Python 2 Python 3 Windows x86-64

mssql_cli-0.18.2-py2.py3-none-win32.whl (42.3 MB view details)

Uploaded Python 2 Python 3 Windows x86

mssql_cli-0.18.2-py2.py3-none-manylinux1_x86_64.whl (43.4 MB view details)

Uploaded Python 2 Python 3

mssql_cli-0.18.2-py2.py3-none-macosx_10_11_intel.whl (42.4 MB view details)

Uploaded Python 2 Python 3 macOS 10.11+ intel

File details

Details for the file mssql_cli-0.18.2-py2.py3-none-win_amd64.whl.

File metadata

  • Download URL: mssql_cli-0.18.2-py2.py3-none-win_amd64.whl
  • Upload date:
  • Size: 45.1 MB
  • Tags: Python 2, Python 3, Windows x86-64
  • Uploaded using 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.43.0 CPython/3.8.2

File hashes

Hashes for mssql_cli-0.18.2-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 d6165fc9d551ae172852e24978b148ad2e203f561e9f77286f5e14dc96b40456
MD5 96c86fc21daedda90b069661cfee4f18
BLAKE2b-256 b3d9f7c5eb456ef5f000ff3ff9b79bd6ab1e3ac679316d7ef4238fb7b56c2ca8

See more details on using hashes here.

File details

Details for the file mssql_cli-0.18.2-py2.py3-none-win32.whl.

File metadata

  • Download URL: mssql_cli-0.18.2-py2.py3-none-win32.whl
  • Upload date:
  • Size: 42.3 MB
  • Tags: Python 2, Python 3, Windows x86
  • Uploaded using 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.43.0 CPython/3.8.2

File hashes

Hashes for mssql_cli-0.18.2-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 2f5a63d8445a12b779d8db9b1fefe7cba6a0a2a814e9e1021f817830928c9126
MD5 743ad3904e29b8cff3c6056e42a600d6
BLAKE2b-256 dda6aaeb23178ca818256293a4435da661572957482e324c640a69f59e0696bd

See more details on using hashes here.

File details

Details for the file mssql_cli-0.18.2-py2.py3-none-manylinux1_x86_64.whl.

File metadata

  • Download URL: mssql_cli-0.18.2-py2.py3-none-manylinux1_x86_64.whl
  • Upload date:
  • Size: 43.4 MB
  • Tags: Python 2, Python 3
  • Uploaded using 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.43.0 CPython/3.8.2

File hashes

Hashes for mssql_cli-0.18.2-py2.py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1fa2632d3471e3c272d54b6b6426a6fb9b993cb2d3cd03bec3c7cfa82df848f9
MD5 72f02198bfd63e51c80f3bf7e57612fe
BLAKE2b-256 801f3e6f6ff9f873b78e525304aca86ae78cbf9ca82a8aeba718e5b71bdf6dc4

See more details on using hashes here.

File details

Details for the file mssql_cli-0.18.2-py2.py3-none-macosx_10_11_intel.whl.

File metadata

  • Download URL: mssql_cli-0.18.2-py2.py3-none-macosx_10_11_intel.whl
  • Upload date:
  • Size: 42.4 MB
  • Tags: Python 2, Python 3, macOS 10.11+ intel
  • Uploaded using 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.43.0 CPython/3.8.2

File hashes

Hashes for mssql_cli-0.18.2-py2.py3-none-macosx_10_11_intel.whl
Algorithm Hash digest
SHA256 b0a64d516451208edaf45789e51ba40b149d1feb1602a2014d405ca52e673869
MD5 cd7d37ff0000c81a6c19b1a2544a5f16
BLAKE2b-256 8463a7a13544f2c5be41e5446c4630bce924e0f8646238e7aae2687c319279ae

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page