{"id":13405597,"url":"https://github.com/dbcli/mssql-cli","last_synced_at":"2025-05-14T08:07:39.364Z","repository":{"id":37431205,"uuid":"106766050","full_name":"dbcli/mssql-cli","owner":"dbcli","description":"A command-line client for SQL Server with auto-completion and syntax highlighting","archived":false,"fork":false,"pushed_at":"2024-02-26T20:08:44.000Z","size":570403,"stargazers_count":1388,"open_issues_count":163,"forks_count":193,"subscribers_count":54,"default_branch":"main","last_synced_at":"2025-05-14T04:53:11.007Z","etag":null,"topics":["cli","database","python","sqlserver"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dbcli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-10-13T02:03:44.000Z","updated_at":"2025-05-05T12:11:31.000Z","dependencies_parsed_at":"2023-01-21T07:15:54.383Z","dependency_job_id":"d0243fc2-50bb-4765-a33d-f1d536bd575a","html_url":"https://github.com/dbcli/mssql-cli","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbcli%2Fmssql-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbcli%2Fmssql-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbcli%2Fmssql-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbcli%2Fmssql-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbcli","download_url":"https://codeload.github.com/dbcli/mssql-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254101557,"owners_count":22014908,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","database","python","sqlserver"],"created_at":"2024-07-30T19:02:06.249Z","updated_at":"2025-05-14T08:07:35.915Z","avatar_url":"https://github.com/dbcli.png","language":"Python","funding_links":[],"categories":["Python","Uncategorized","CLI"],"sub_categories":["Uncategorized","dbcli"],"readme":"[![PyPI](https://badge.fury.io/py/mssql-cli.svg)](https://pypi.python.org/pypi/mssql-cli)\n[![Python 2.7|3.4|3.5|3.6|3.7|3.8](https://img.shields.io/badge/python-2.7\u0026nbsp;|\u0026nbsp;3.4\u0026nbsp;|\u0026nbsp;3.5\u0026nbsp;|\u0026nbsp;3.6\u0026nbsp;|\u0026nbsp;3.7\u0026nbsp;|\u0026nbsp;3.8-blue.svg)](https://github.com/dbcli/mssql-cli)\n\n# mssql-cli\n\n\n\n\u003e **DEPRECATION NOTICE** mssql-cli is on the path to deprecation, and will be fully replaced by the new [go-sqlcmd](https://learn.microsoft.com/sql/tools/sqlcmd/go-sqlcmd-utility) utility once it becomes generally available. We are actively in development for the new sqlcmd, and would love to hear feedback on it [here](https://github.com/microsoft/go-sqlcmd/issues)!\n\n[**mssql-cli**](https://github.com/dbcli/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](https://github.com/dbcli) community. \n\n![mssql-cli Autocomplete](https://github.com/dbcli/mssql-cli/raw/main/screenshots/mssql-cli-autocomplete.gif)\n\nmssql-cli supports a rich interactive command line experience, with features such as:\n- **Auto-completion**: fewer keystrokes needed to complete complicated queries.\n- **Syntax highlighting**: highlights T-SQL keywords.\n- **Query history**: easily complete an auto-suggested query that was previously executed.\n- **Configuration file support**: customize the mssql-cli experience for your needs.\n- **Multi-line queries**: execute multiple queries at once using the multi-line edit mode.\n- **Non-interactive support**: execute a query without jumping into the interactive experience.\n\n## Quick Start\nRead the section below to quickly get started with mssql-cli. Consult the [usage guide](https://github.com/dbcli/mssql-cli/tree/main/doc/usage_guide.md) for a deeper dive into mssql-cli features.\n\n### Install mssql-cli\nPlatform-specific installation instructions are below:\n| [Windows](https://github.com/dbcli/mssql-cli/blob/main/doc/installation/windows.md#windows-installation) (preview) | [macOS](https://github.com/dbcli/mssql-cli/blob/main/doc/installation/macos.md#macos-installation) | [Linux](https://github.com/dbcli/mssql-cli/blob/main/doc/installation/linux.md) |\n| - | - | - |\n\nVisit the [installation reference guide](https://github.com/dbcli/mssql-cli/tree/main/doc/installation) to view all supported releases and downloads.\n\n#### Install with Linux Package Manager\nFollow the [Linux installation instructions]('https://github.com/dbcli/mssql-cli/blob/main/doc/installation/linux.md') to install mssql-cli using `apt-get`, `yum`, and other Linux package managers.\n\n#### Install with pip\n```sh\npython -m pip install mssql-cli\n```\nPlease refer to the [pip installation docs](https://github.com/dbcli/mssql-cli/blob/main/doc/installation/pip.md) for more platform-specific information.\n\n### Connect to Server\nComplete the command below to connect to your server:\n```sh\nmssql-cli -S \u003cserver URL\u003e -d \u003cdatabase name\u003e -U \u003cusername\u003e -P \u003cpassword\u003e\n```\n\n### Exit mssql-cli\nPress **Ctrl+D** or type `quit`.\n\n### Show Options\nFor general help content, pass in the `-h` parameter:\n```sh\nmssql-cli --help\n```\n\n### Usage Docs\nPlease refer to the [usage guide](https://github.com/dbcli/mssql-cli/tree/main/doc/usage_guide.md) for details on options and example usage. If you are having any issues using mssql-cli, please see the [troubleshooting guide](https://github.com/dbcli/mssql-cli/blob/main/doc/troubleshooting_guide.md).\n\n## Telemetry\nThe mssql-cli tool includes a telemetry feature. Please refer to the [telemetry guide](https://github.com/dbcli/mssql-cli/tree/main/doc/telemetry_guide.md) for more information.\n\n## Contributing\nIf you would like to contribute to the project, please refer to the [development guide](https://github.com/dbcli/mssql-cli/tree/main/doc/development_guide.md).\n\n## Contact Us\nIf you encounter any bugs or would like to leave a feature request, please file an issue in the\n[**Issues**](https://github.com/dbcli/mssql-cli/issues) section of our GitHub repo.\n\n## Code of Conduct\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact\nopencode@microsoft.com with any additional questions or comments.\n\n## License\nmssql-cli is licensed under the [BSD-3 license](https://github.com/dbcli/mssql-cli/blob/main/LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbcli%2Fmssql-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbcli%2Fmssql-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbcli%2Fmssql-cli/lists"}