Skip to content

Instantly share code, notes, and snippets.

@brynary
Created December 4, 2025 02:05
Show Gist options
  • Select an option

  • Save brynary/b40bd2bd4168599e628460bb2db57944 to your computer and use it in GitHub Desktop.

Select an option

Save brynary/b40bd2bd4168599e628460bb2db57944 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
QLTY_CLI_VERSION="${QLTY_CLI_VERSION:-latest}"
case $(uname -ms) in
'Darwin x86_64')
target=x86_64-apple-darwin
;;
'Darwin arm64')
target=aarch64-apple-darwin
;;
'Linux aarch64' | 'Linux arm64')
target=aarch64-unknown-linux-gnu
;;
'Linux x86_64' | *)
target=x86_64-unknown-linux-gnu
;;
esac
echo "Downloading qlty $QLTY_CLI_VERSION for $target..."
curl -fsSL "https://qlty-releases.s3.amazonaws.com/qlty/$QLTY_CLI_VERSION/qlty-$target.tar.xz" -o /tmp/qlty.tar.xz
echo "Extracting qlty..."
mkdir -p "$HOME/.qlty/bin"
tar -xJf /tmp/qlty.tar.xz -C "$HOME/.qlty/bin" --strip-components=1
chmod +x "$HOME/.qlty/bin/qlty"
export PATH="$HOME/.qlty/bin:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment