macOS
brew install sqlx-clilocal Homebrew formula metadata
brew / rank 2519
Command-line utility for SQLx, the Rust SQL toolkit. Version 0.9.0 via Homebrew; verified 2026-07-04. Also installable with nix: nix profile install nixpkgs#sqlx-cli.
install
brew install sqlx-clilocal Homebrew formula metadata
nix profile install nixpkgs#sqlx-clinixpkgs package indexes · pkgs/by-name/sq/sqlx-cli/package.nix · source: api.github.com
sudo pacman -S sqlx-cliArch Linux sync databases · sqlx-cli · source: geo.mirror.pkgbuild.com
sudo apk add cargo-sqlxAlpine Linux edge package indexes · cargo-sqlx · source: dl-cdn.alpinelinux.org
overview
Command-line utility for SQLx, the Rust SQL toolkit
history
sqlx-cli is the command-line companion to SQLx, the Rust SQL toolkit, used for database management, migrations, and offline query metadata generation.
The SQLx repository's official README describes SQLx as an async, pure-Rust SQL crate with optional compile-time checked queries and support for PostgreSQL, MySQL, MariaDB, and SQLite. The sqlx-cli README describes the CLI as SQLx's associated command-line utility for managing databases, migrations, and offline mode for query macros.
Official repository metadata places the SQLx project in public GitHub development from late 2019. The CLI became important because SQLx's compile-time query checking creates a developer workflow need: capture query metadata with cargo sqlx prepare so projects can build without a live development database.
The supplied package-manager facts show sqlx-cli distributed as sqlx-cli or cargo-sqlx through Homebrew, Alpine, Nix, and Arch. That packaging matters because Rust users often need the executable in CI images and developer shells even when the application itself depends on SQLx as a library.
The official sqlx-cli README documents cargo install options by database backend and TLS stack, DATABASE_URL via command-line option, environment, or .env file, database create/drop commands, migration creation and execution, reversible migrations, cargo sqlx prepare, the .sqlx metadata directory, and prepare --check for CI.
Package nerds care about sqlx-cli because it bridges Rust's compile-time SQL checking with ordinary package-manager workflows. It is a CLI that must stay version-compatible with a Rust library, database drivers, TLS choices, and CI environments.
security posture
broad file, network, media, or database tool signal.
blue risk · medium confidence · tool
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Credential-bearing paths to review before unattended agent runs.
.envexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
cargo-sqlx | executable | indexed executable | Discovered from the local executable index. |
sqlx | executable | indexed executable | Discovered from the local executable index. |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:sqlx-cli |
|---|---|
| Version | 0.9.0 |
| Package manager | Homebrew |
| Homepage | https://github.com/transact-rs/sqlx |
| Repository | https://github.com/transact-rs/sqlx |
| Last updated | 2026-07-04T16:53:45+09:00 |
| Pulse | updated |
| Bottle | not recorded |
| Service | none declared |
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
sqlx-cli
nix profile install nixpkgs#sqlx-clisqlx-cli 0.9.0-1
Command-line utility for SQLx, the Rust SQL toolkit
https://github.com/launchbadge/sqlx
sudo pacman -S sqlx-clicargo-sqlx 0.8.6-r0
Command-line utility for SQLx, the Rust SQL toolkit - cargo subcommand
https://github.com/launchbadge/sqlx
sudo apk add cargo-sqlxsqlx 0.8.6-r0
Command-line utility for SQLx, the Rust SQL toolkit
https://github.com/launchbadge/sqlx
sudo apk add sqlxsqlx-bash-completion 0.8.6-r0
Bash completions for sqlx
https://github.com/launchbadge/sqlx
sudo apk add sqlx-bash-completionsqlx-doc 0.8.6-r0
Command-line utility for SQLx, the Rust SQL toolkit (documentation)
https://github.com/launchbadge/sqlx
sudo apk add sqlx-docsqlx-fish-completion 0.8.6-r0
Fish completions for sqlx
https://github.com/launchbadge/sqlx
sudo apk add sqlx-fish-completionsqlx-zsh-completion 0.8.6-r0
Zsh completions for sqlx
https://github.com/launchbadge/sqlx
sudo apk add sqlx-zsh-completionsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.