Reference

Configuration

URL options and environment variables of the install scripts.

URL options

URL Script
/OWNER/REPO/linux Installs the latest release. Same script as /macos.
/OWNER/REPO/macos Installs the latest release. Same script as /linux.
/OWNER/REPO/windows Installs the latest release, for PowerShell.
/OWNER/REPO/PLATFORM/verbose Installs and prints every decision.
/OWNER/REPO/PLATFORM/uninstall Removes the install.
?version=TAG Installs the release with this tag instead of the latest.

Unknown platforms and invalid names return 404 with a body that prints an error and exits with status 1 when piped into sh.

Environment variables

The script reads these variables at run time. Environment variables override the URL.

Variable Default Effect
INSTL_VERSION latest Release tag to install. Overrides ?version=.
INSTL_VERBOSE 0 1 prints every decision, like the /verbose URL.
INSTL_HOME see Install locations Directory for the installed files. Absolute path.
INSTL_BIN_DIR see Install locations Directory for the command links. Linux and macOS only. Absolute path.
INSTL_MODIFY_PATH ask, or current without a terminal all, current or no. On Windows, all and current both mean yes.
INSTL_FORCE 0 1 reinstalls the same version and replaces conflicting commands.
INSTL_REQUIRE_CHECKSUM 0 1 refuses releases without a checksum.
GITHUB_TOKEN, GH_TOKEN unset Token for the GitHub API, to raise the rate limit.
NO_COLOR unset Disables colors.
FORCE_COLOR unset Enables colors when the output is not a terminal.
CI unset Set by CI systems. Disables the PATH question.
GITHUB_PATH set by GitHub Actions The script appends the bin directory, so later steps find the commands.

Set a variable for one run

In sh, put the variable in front of the shell that runs the script, not in front of curl:

curl -fsSL https://instl.sh/OWNER/REPO/linux | INSTL_VERSION=v1.2.3 sh

In PowerShell, set it in the session first:

$env:INSTL_VERSION = 'v1.2.3'; irm https://instl.sh/OWNER/REPO/windows | iex

Exit status

The Linux and macOS script exits with 0 on success and 1 on any error. The Windows script never calls exit, because that would close the PowerShell window it runs in. It throws an error instead, which fails the step in CI.