🍺 BREW Explorer

← all formulae

sqlcmd

brew install sqlcmd v1.10.0 MIT

Go-based command-line client for Microsoft SQL Server, Azure SQL Database, and Azure Synapse.

Why you might care

Drop-in modern replacement for the legacy SQLCMD utility, written in Go for cross-platform single-binary distribution. Useful if you manage SQL Server instances from the shell or CI/CD pipelines and want native macOS/Linux support without .NET dependencies. Provides the same query execution and scripting interface but with improved performance and portability.

Categories

Alternatives

sqlcmd (legacy .NET) sqlplus psql mysql
2.7k
30-day installs · #842
8.6k
90-day · #873
28.7k
365-day · #908
565
★ GitHub stars · updated 1d ago

Build dependencies

go

GitHub topics

azure-sql mssql sql-server sqlcmd

Links

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [],
  "alternatives": [
    "sqlcmd (legacy .NET)",
    "sqlplus",
    "psql",
    "mysql"
  ],
  "build_dependencies": [
    "go"
  ],
  "categories": [
    "database-client"
  ],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Microsoft SQL Server command-line interface",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:41:08+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "sqlcmd",
  "github_default_branch": "main",
  "github_last_commit_at": "2026-06-19T19:15:03Z",
  "github_readme_excerpt": "# SQLCMD CLI\n\n[![Open in Dev Containers](https://img.shields.io/static/v1?label=Dev%20Containers\u0026message=Open\u0026color=blue\u0026logo=visualstudiocode)](.devcontainer/README.md)\n\nThis repo contains the `sqlcmd` command line tool and Go packages for working with Microsoft SQL Server, Azure SQL Database, and Azure Synapse.  \n\nLearn more about how `sqlcmd` is used from a articles/posts written by the community: [Community Buzz][].\n\n## Installation\n\n`sqlcmd` is available in package managers for all major platforms.\n\n### Windows\n\n`sqlcmd` is available via [Winget][], [Choco][] and as a downloadable .msi or .zip from the [releases page][]. The .msi installer is signed with a Microsoft Authenticode certificate.\n\n#### WinGet\n\n| Install:                | Upgrade:                    |\n| ----------------------- |-----------------------------|\n| `winget install sqlcmd` | `winget upgrade sqlcmd`     |\n\n#### Choco\n\n| Install:                | Upgrade:                |\n| ----------------------- |-------------------------|\n| `choco install sqlcmd`  | `choco upgrade sqlcmd`  |\n\n### macOS\n\n`sqlcmd` is available via [Homebrew][], and as a downloadable .tar from the [releases page][].\n\n#### Homebrew\n\n| Install:              | Upgrade:              |\n| --------------------- | --------------------- |\n| `brew install sqlcmd` | `brew upgrade sqlcmd` |\n\n##### Apple Silicon Macs (M1/M2)\nMacs running Apple Silicon require [Docker][] Desktop to use Rosetta for x86/amd64 emulation. Follow these steps before creating a SQL Server instance:\n- Open Docker Desktop.\n- Go to the settings/preferences menu.\n- Find the \u201cFeatures in development\u201d section.\n- Enable the \"Use Rosetta for x86/amd64 emulation on Apple Silicon\" checkbox.\n\n### Linux\n\n`sqlcmd` is available via [Linuxbrew][], and as a downloadable .rpm/.deb and .tar from the [releases page][].\n\nOn Linux, `sqlcmd` is also available through `apt-get`, `yum` and `zypper` package managers.  Instructions can be found [here](https://learn.microsoft.com/sql/tool",
  "github_repo": "microsoft/go-sqlcmd",
  "github_stars": 565,
  "github_topics": [
    "azure-sql",
    "mssql",
    "sql-server",
    "sqlcmd"
  ],
  "homepage": "https://github.com/microsoft/go-sqlcmd",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 2675,
  "installs_365d": 28731,
  "installs_90d": 8595,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "MIT",
  "llm_generated_at": "2026-06-20T23:47:26+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "sqlcmd",
  "oldnames": [],
  "one_liner": "Go-based command-line client for Microsoft SQL Server, Azure SQL Database, and Azure Synapse.",
  "optional_dependencies": [],
  "rank_30d": 842,
  "rank_365d": 908,
  "rank_90d": 873,
  "raw_hash": "3d7d1f1649d09404",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/s/sqlcmd.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": null,
  "version_stable": "1.10.0",
  "versioned_formulae": [],
  "why_use_this": "Drop-in modern replacement for the legacy SQLCMD utility, written in Go for cross-platform single-binary distribution. Useful if you manage SQL Server instances from the shell or CI/CD pipelines and want native macOS/Linux support without .NET dependencies. Provides the same query execution and scripting interface but with improved performance and portability."
}