Install CLI (apeturectl)
The Aperture CLI is available as a binary executable for all major platforms, the binaries can be downloaded from GitHub Release Page.
Alternatively, download it using the following script:
- dpkg
- rpm
- binary
VERSION="2.6.0"
ARCH="amd64"
PACKAGER="deb"
url="https://github.com/fluxninja/aperture/releases/download/v${VERSION}/aperturectl_${VERSION}_${ARCH}.${PACKAGER}"
echo "Will download ${PACKAGER} package version ${VERSION} compiled for ${ARCH} machine"
curl --fail --location --remote-name "${url}"
VERSION="2.6.0"
ARCH="x86_64"
PACKAGER="rpm"
url="https://github.com/fluxninja/aperture/releases/download/v${VERSION}/aperturectl-${VERSION}.${ARCH}.${PACKAGER}"
echo "Will download ${PACKAGER} package version ${VERSION} compiled for ${ARCH} machine"
curl --fail --location --remote-name "${url}"
# Substitute BIN for your bin directory.
VERSION="2.6.0"
BIN="/usr/local/bin"
OS="$(uname | tr '[:upper:]' '[:lower:]')"
ARCH="$(uname -m)"
case "$ARCH" in
x86_64) ARCH="amd64";;
aarch64) ARCH="arm64";;
*) echo "Unsupported architecture: $ARCH"; exit 1;;
esac
echo "Will download $OS package version $VERSION compiled for $ARCH machine"
url="https://github.com/fluxninja/aperture/releases/download/v${VERSION}/aperturectl-${VERSION}-${OS}-${ARCH}"
curl --fail --location --remote-name "${url}"
mv aperturectl* "${BIN}/aperturectl"
chmod +x "${BIN}/aperturectl"
Installation
info
Skip the following steps if you have obtained the binary file directly using the steps mentioned above.
- macOS
- Linux
With Homebrew:
brew install fluxninja/aperture/aperturectl
With Homebrew:With dpkg:With rpm:
brew install fluxninja/aperture/aperturectl
sudo dpkg -i aperturectl_2.6.0*.deb
sudo rpm -i aperturectl-2.6.0*.rpm
Enable shell autocompletion
To configure your shell to load aperturectl
bash completions, add to your
profile:
- bash
- zsh
- fish
- powershell
source <(aperturectl completion bash)
source <(aperturectl completion zsh); compdef _aperturectl aperturectl
aperturectl completion fish | source
aperturectl completion powershell | Out-String | Invoke-Expression
Uninstall
- macOS
- Linux
With Homebrew:
brew uninstall aperturectl
brew untap fluxninja/aperture
With Homebrew:With dpkg:With rpm:
brew uninstall aperturectl
brew untap fluxninja/aperture
sudo dpkg -r aperturectl
sudo rpm -e aperturectl