Commands

The install and uninstall commands of a repository for Linux, macOS and Windows, as JSON.

Use this endpoint to show install instructions for a project on your own site or in a tool, without building the URLs yourself.

GET

https://installer.dev/api/commands//?version=

Press Send request.

 

Query parameters

Parameter Default Effect
version latest release Pins the install commands to a release tag, such as v1.2.0. An invalid tag returns 400.

Response

Field Type Meaning
repository string {owner}/{repo}, as requested.
version string or null The pinned release tag, or null for the latest release.
install object The install command for linux, macos and windows. linux and macos share the same install.sh command.
uninstall object The uninstall command for each platform. It removes any installed version, so it never pins one.

Each command is an object with two fields:

Field Meaning
command The one-liner to run: curl … | sh on Linux and macOS, irm … | iex on Windows.
url The script URL the command fetches.
JSON
{
  "repository": "installer/demo",
  "version": null,
  "install": {
    "linux": {
      "command": "curl -fsSL https://installer.dev/installer/demo/install.sh | sh",
      "url": "https://installer.dev/installer/demo/install.sh"
    },
    "macos": {
      "command": "curl -fsSL https://installer.dev/installer/demo/install.sh | sh",
      "url": "https://installer.dev/installer/demo/install.sh"
    },
    "windows": {
      "command": "irm https://installer.dev/installer/demo/install.ps1 | iex",
      "url": "https://installer.dev/installer/demo/install.ps1"
    }
  },
  "uninstall": {
    "linux": {
      "command": "curl -fsSL https://un.installer.dev/installer/demo/install.sh | sh",
      "url": "https://un.installer.dev/installer/demo/install.sh"
    },
    "macos": { "command": "…", "url": "…" },
    "windows": { "command": "…", "url": "…" }
  }
}

To update a project, run its install command again. Update covers the command that updates every project at once.