Configuration

URL options and environment variables of the install scripts.

URL options

Every URL works on installer.dev and on the short domain instl.sh. Both serve the same scripts.

URL Script
installer.dev/OWNER/REPO/linux Installs the latest release. Same script as /macos.
installer.dev/OWNER/REPO/macos Installs the latest release. Same script as /linux.
installer.dev/OWNER/REPO/windows Installs the latest release, for PowerShell.
installer.dev/OWNER/REPO/PLATFORM/verbose Installs and prints every decision.
?version=TAG Installs the release with this tag instead of the latest.
uninstall.installer.dev/OWNER/REPO/PLATFORM Removes the install. installer.dev/OWNER/REPO/PLATFORM/uninstall serves the same script. See Uninstall.
uninstall.installer.dev/PLATFORM Removes every install and its PATH changes. See Remove everything.
update.installer.dev/PLATFORM Updates every install to its latest release. See Update.

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.
INSTL_YES 0 1 lets Remove everything remove without asking.
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:

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

In PowerShell, set it in the session first:

PowerShell
$env:INSTL_VERSION = 'v1.2.3'; irm https://installer.dev/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.