sq can be installed from source, via an install script, or via package managers for various platforms.

Quick install

Use in most cases other than Windows.

/bin/sh -c "$(curl -fsSL" determines what OS is in use, and attempts to use an appropriate package manager. The following have been tested:

Package ManagerOS / DistributionArchitecture
aptDebian-based (Ubuntu etc.)arm64 amd64
yumRPM-based (Rocky Linux, Fedora etc.)arm64 amd64
apkAlpine Linuxarm64 amd64
pacmanArch Linuxamd64
yayArch Linuxamd64
brewmacOSarm64 amd64

You can view the source for on GitHub.

Shell completion

The install packages will generally install shell completion. Note that sq provides extensive completion functionality. If installing from source, it is highly recommended to manually install shell completion. For instructions:

sq completion --help


Requires Go.

go install


Pre-built binaries are available from GitHub releases.


brew install neilotoole/sq/sq


Requires scoop.

scoop bucket add sq
scoop install sq


Generally you can use

/bin/sh -c "$(curl -fsSL"

If you need more control over the install, consult source.