We’re excited to introduce osql-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.
- Auto-completion
- Syntax highlighting
- Query history
- Configuration file support
- Multi-line queries
Supported Platform | Downloads (stable) | Downloads (preview) | How to Install |
---|---|---|---|
Windows (x64) | .whl windows (x64) | .whl windows (x64) (dev) | Install on windows |
Windows (x86) | .whl windows (x86) | .whl windows (x86) (dev) | Install on windows |
macOS 10.12+ | .whl | .whl (dev) | Install on macos |
Ubuntu 17.04 | .deb | .deb (dev) | Install on ubuntu17 |
Ubuntu 16.04 | .deb | .deb (dev) | Install on ubuntu16 |
Ubuntu 14.04 | .deb | .deb (dev) | Install on ubuntu14 |
Debian 8.7+ | .deb | .deb (dev) | Install on debian8 |
Debian 9 | .deb | .deb (dev) | Install on debian9 |
CentOS 7 | .rpm | .rpm (dev) | Install on centos |
Red Hat Enterprise Linux 7 | .rpm | .rpm (dev) | Install on rhel7 |
OpenSUSE 42.2+ | .rpm | .rpm (dev) | Install on opensuse42 |
Fedora 25 | .rpm | .rpm (dev) | Install on fedora25 |
Fedora 26 | .rpm | .rpm (dev) | Install on fedora26 |
Please refer to Get osql-cli for detailed install instructions per platform.
$ pip install osql-cli
Please refer to Install via pip for detailed install instructions via pip on each platform
Please refer to the usage guide for details on options and example usage. If you are having any issues using osql-cli, please see the troubleshooting guide.
For general help content, pass in the -h
parameter:
$ osql-cli --help
The osql-cli tool includes a telemetry feature. Please refer to the telemetry guide for more information.
If you would like to contribute to the project, please refer to the development guide.
If you encounter any bugs with the tool please file an issue in the Issues section of our GitHub repo.
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.
osql-cli is licensed under the BSD-3 license.