A command-line client for SQL Server with auto-completion and syntax highlighting
Clone or download
Permalink
Failed to load latest commit information.
build_scripts Bumping version to 0.15.0 Jul 5, 2018
doc Update usage_guide.md (#223) Sep 26, 2018
mssqlcli Bumping version to 0.15.0 Jul 5, 2018
screenshots Updating docs for OpenSUSE install. (#193) May 1, 2018
sqltoolsservice Refreshing sqltoolsservice. (#213) Jun 27, 2018
tests Update import path for test row limit. May 7, 2018
.bumpversion.cfg Bumping version to 0.15.0 Jul 5, 2018
.gitattributes Create .gitattributes Nov 9, 2017
.gitignore Debian and Rpm packaging scripts (#181) Apr 4, 2018
LICENSE.txt mssqlcliclient and jsonrpc implementation and integration Nov 9, 2017
MANIFEST.in Single platform builds and updated manifest with mssqlcli naming (#57) Dec 1, 2017
README.rst Update README.rst with raw image url to screenshot Jun 28, 2018
build.py Installation docs update (#188) Apr 17, 2018
dev_setup.py Debian and Rpm packaging scripts (#181) Apr 4, 2018
dos2unix.py Fix Pep8 and flake issues (#76) Dec 8, 2017
mssql-cli Refactor code to use mssqlcli (#51) Dec 1, 2017
mssql-cli.bat Refactor code to use mssqlcli (#51) Dec 1, 2017
pylintrc Initial Commit copy pgcli source Oct 30, 2017
release.py Update daily builds to drop in daily/whl (#183) Apr 10, 2018
requirements-dev.txt Update twine from 1.8.1 to 1.11.0 (#196) May 8, 2018
run_in_virtual_env.sh Run in virtual environment script (#43) Nov 22, 2017
setup.cfg flake 8 fixes. (#182) Apr 4, 2018
setup.py Debian and Rpm packaging scripts (#181) Apr 4, 2018
tox.ini Updating test environment with mock which is not installed in tox. Nov 16, 2017
utility.py Refactor code to use mssqlcli (#51) Dec 1, 2017

README.rst

mssql-cli

We’re excited to introduce mssql-cli, a new and interactive command line query tool for SQL Server. This open source tool works cross-platform and proud to be a part of the dbcli.org community.

https://github.com/dbcli/mssql-cli/raw/master/screenshots/mssql-cli-autocomplete.gif

Features

  • Auto-completion
  • Syntax highlighting
  • Query history
  • Configuration file support
  • Multi-line queries

Get mssql-cli

Install Instructions
Windows (x64)
Windows (x86)
macOS 10.12+
Ubuntu 17.04
Ubuntu 16.04
Ubuntu 14.04
Debian 8.7+
Debian 9
CentOS 7
Red Hat Enterprise Linux 7
OpenSUSE 42.2+
Fedora 25
Fedora 26

Direct downloads

Direct downloads for both latest stable and preview bits can be found at Direct download.

Installation via apt, yum

Please refer to Get mssql-cli for detailed install instructions per platform.

Installation via pip

$ pip install mssql-cli

Please refer to Install via pip for detailed install instructions via pip on each platform

Usage

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.

For general help content, pass in the -h parameter:

$ mssql-cli --help

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.

Reporting issues and feedback

If you encounter any bugs with the tool 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.