Install
sq
can be installed from source, via an install script, or via package managers for various platforms.
Quick install
Use install.sh
in most cases other than Windows.
/bin/sh -c "$(curl -fsSL https://sq.io/install.sh)"
install.sh
determines what OS is in use, and attempts to use an appropriate package manager.
The following have been tested:
Package Manager | OS / Distribution | Architecture |
---|---|---|
apt | Debian-based (Ubuntu etc.) | arm64 amd64 |
yum | RPM-based (Rocky Linux, Fedora etc.) | arm64 amd64 |
apk | Alpine Linux | arm64 amd64 |
pacman | Arch Linux | amd64 |
yay | Arch Linux | amd64 |
brew | macOS | arm64 amd64 |
brew | Linux | arm64 |
You can view the source for install.sh
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
Source
Requires Go.
go install github.com/neilotoole/sq
Binaries
Pre-built binaries are available from GitHub releases.
macOS
brew install neilotoole/sq/sq
Windows
Requires scoop.
scoop bucket add sq https://github.com/neilotoole/sq
scoop install sq
Linux
Generally you can use install.sh
.
/bin/sh -c "$(curl -fsSL https://sq.io/install.sh)"
If you need more control over the install, consult install.sh source.