aqua-installer
Install aqua quickly
Shell Script
$ curl -sSfL https://raw.githubusercontent.com/aquaproj/aqua-installer/v1.1.2/aqua-installer | bash
You can pass the following parameters.
-v [aqua version]
: aqua version
-i [aqua install path]
: aqua's install path
- default (linux, macOS):
${AQUA_ROOT_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/aquaproj-aqua}/bin/aqua
- default (windows):
${AQUA_ROOT_DIR:-$HOME/AppData/Local/aquaproj-aqua}/bin/aqua
e.g.
$ curl -sSfL https://raw.githubusercontent.com/aquaproj/aqua-installer/v1.1.2/aqua-installer | bash -s -- -v v1.25.0 -i bin/aqua
If the version isn't specified, the latest version would be installed.
Go
$ go run github.com/aquaproj/aqua-installer@latest -help
aqua-installer - Install aqua
https://github.com/aquaproj/aqua-installer
Usage:
$ aqua-installer [--aqua-version latest] [-o <install path>] [-os <OS>] [-arch <ARCH>]
Options:
--help show this help message
--version show aqua-installer version
--aqua-version aqua version. The default value is "latest"
-o File Path where aqua is installed. The default value is ${AQUA_ROOT_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/aquaproj-aqua}/bin
-os OS (e.g. linux, darwin, windows). By default, Go's runtime.GOOS. You can change by the environment variable AQUA_GOOS
-arch CPU Architecture (amd64 or arm64). By default, Go's runtime.GOARCH. You can change by the environment variable AQUA_GOARCH
e.g.
$ go run github.com/aquaproj/aqua-installer@latest
GitHub Actions
e.g.
- uses: aquaproj/aqua-installer@v1.1.2
with:
aqua_version: v1.25.0
- uses: aquaproj/aqua-installer@v1.1.2
with:
aqua_version: v1.25.0
install_path: /tmp/bin/aqua
working_directory: foo
aqua_opts: ""
env:
AQUA_CONFIG: aqua-config.yaml
AQUA_LOG_LEVEL: debug
Please see action.yaml too.
name |
description |
aqua_version |
Installed aqua version |
name |
default |
description |
install_path |
${AQUA_ROOT_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/aquaproj-aqua}/bin/aqua |
aqua's install path |
enable_aqua_install |
"true" |
if this is "false" , executing aqua i and updating GITHUB_PATH are skipped |
aqua_opts |
-l |
aqua i 's option. If you want to specify global options, please use environment variables |
working_directory |
"" |
working directory |
Outputs
Please see action.yaml too.
Nothing.
License
MIT