Skip to content

A command-line client for SQL Server with auto-completion and syntax highlighting

License

Notifications You must be signed in to change notification settings

hejack0207/osql-cli

 
 

Repository files navigation

osql-cli

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.

screenshots/osql-cli-autocomplete.gif

Features

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

Get osql-cli

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

Installation via apt, yum

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

Installation via pip

$ pip install osql-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 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.

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

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

About

A command-line client for SQL Server with auto-completion and syntax highlighting

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.2%
  • Shell 1.7%
  • Other 1.1%