Using installer

Getting started

Install a GitHub release with one command, and read the script before you run it.

instl.sh serves an install script for every public GitHub repository that publishes release files. The script downloads the release that fits your machine, checks it and puts its commands on your PATH. It needs no admin rights.

Install a project

Replace OWNER/REPO with the repository, for example installer/demo.

On Linux and macOS, run this in a terminal:

curl -fsSL https://instl.sh/OWNER/REPO/linux | sh

The macos URL serves the same script, so either one works on both systems.

On Windows, run this in PowerShell:

irm https://instl.sh/OWNER/REPO/windows | iex

To try it without installing anything you care about, install the demo project and run it:

curl -fsSL https://instl.sh/installer/demo/linux | sh
instl-demo

Read the script first

The script runs with your user’s rights, so read it before you run it. Open the script URL in a browser, or page through it in the terminal:

curl -fsSL https://instl.sh/installer/demo/linux | less

Every request returns the same script for the same URL. The script decides nothing on the server: it asks GitHub for the release on your machine, and every decision it makes is in the text you just read. How it works walks through it.

What you see

A successful install prints one line per step:

◆  instl.sh · installer/demo
│
◇  Release     v2.0.0 · linux/x86_64
◇  Downloaded  instl-demo_Linux_x86_64.tar.gz · 762.7 KB
◇  Verified    sha256 · GitHub digest
◇  Installed   ~/.local/share/instl/installer/demo
◇  Linked      instl-demo → ~/.local/bin/instl-demo
◇  PATH        added to ~/.zshrc
│
└  Done. Open a new terminal, then run instl-demo

If ~/.local/bin is not on your PATH yet, the script asks before it edits a shell file. Answer 1 to update every shell you have installed, 2 for the current shell only, or n to change nothing and see the line to add yourself.

Requirements

  • Linux, macOS and BSD: sh, curl or wget, and tar. Releases that ship only .zip files also need unzip, bsdtar or python3.
  • Windows: Windows PowerShell 5.1, which ships with Windows 10 and 11, or PowerShell 7.

Next steps