Install
aqua is a single binary written in Go.
- Install the binary
aqua
inPATH
- Set the environment variable
PATH
- (Optional) Shell completion
1. Install the binary aqua
in PATH
- Homebrew
- Windows
- aqua-installer (Shell Script)
- aqua-installer (GitHub Actions)
- CircleCI Orb
- go install
- Download prebuilt binaries from GitHub Releases
Homebrew
brew install aquaproj/aqua/aqua
Winget
From aqua v2.17.4, you can install aqua by Winget.
winget install aquaproj.aqua
Due to the mechanism of Winget, it takes a few days at most until we can install the latest version after the latest version has been released. Everytime a new version is released, we need to send a pull request to microsoft/winget-pkgs and wait until the pull request is merged. The list of pull requests
Scoop
From aqua v2.16.2, you can also install aqua by Scoop.
scoop bucket add aquaproj https://github.com/aquaproj/scoop-bucket
scoop install aqua
go install
go install github.com/aquaproj/aqua/v2/cmd/aqua@latest
Download prebuilt binaries from GitHub Releases
https://github.com/aquaproj/aqua/releases
2. Set the environment variable PATH
From aqua v2.8.0, aqua root-dir
command is available.
export PATH="$(aqua root-dir)/bin:$PATH"
If you use aqua combined with other version manager such as asdf,
please add ${AQUA_ROOT_DIR}/bin
to the environment variable PATH
after other version manager.
For detail, please see here.
Linux, macOS
export PATH="${AQUA_ROOT_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/aquaproj-aqua}/bin:$PATH"
Windows
About Windows, please see here too.
- Git Bash (mingw)
- PowerShell
- Command Prompt
Git Bash (mingw)
export PATH="${AQUA_ROOT_DIR:-${XDG_DATA_HOME:-${LOCALAPPDATA:-$HOME/AppData/Local}}/aquaproj-aqua}/bin:$PATH"
The order of priority is as follows:
$AQUA_ROOT_DIR/bin
: If$AQUA_ROOT_DIR
is set$XDG_DATA_HOME/aquaproj-aqua/bin
: If$XDG_DATA_HOME
is set$LOCALAPPDATA/aquaproj-aqua/bin
: If$LOCALAPPDATA
is set$HOME/AppData/Local/aquaproj-aqua/bin
PowerShell
Set-Item Env:Path "$Env:LOCALAPPDATA\aquaproj-aqua\bat;$Env:LOCALAPPDATA\aquaproj-aqua\bin;$Env:Path"
If LOCALAPPDATA
isn't set,
Set-Item Env:Path "$Env:HOMEPATH\AppData\Local\aquaproj-aqua\bat;$Env:HOMEPATH\AppData\Local\aquaproj-aqua\bin;$Env:Path"
You can customize the path with the environment variable AQUA_ROOT_DIR
.
Set-Item Env:Path "$Env:AQUA_ROOT_DIR\bat;$Env:AQUA_ROOT_DIR\bin;$ENV:Path"
Command Prompt
SET PATH=%LOCALAPPDATA%\aquaproj-aqua\bat;%LOCALAPPDATA%\aquaproj-aqua\bin;%PATH%
If LOCALAPPDATA
isn't set,
SET PATH=%HOMEPATH%\AppData\Local\aquaproj-aqua\bat;%HOMEPATH%\AppData\Local\aquaproj-aqua\bin;%PATH%
You can also customize the path with the environment variable AQUA_ROOT_DIR
.
SET PATH=%AQUA_ROOT_DIR%\bat;%AQUA_ROOT_DIR%\bin;%PATH%