Options
The script URLs, query parameters and environment variables of the install scripts, as JSON.
Use this endpoint to build install commands for any repository in a tool, or to offer the script settings in your own interface. It returns the same options as Configuration, in a form a program can read.
Press Send request.
Response
| Field | Type | Meaning |
|---|---|---|
domains |
array | The domains that serve the scripts, installer.dev first. |
platforms |
array | linux, macos and windows. |
scriptFiles |
object | The script file of each platform: install.sh for linux and macos, install.ps1 for windows. |
scripts |
object | URL templates of the scripts, with {owner}, {repo} and {script} to fill in. {script} is a value of scriptFiles. |
parameters |
array | The query parameters of the repository script URLs. |
environment |
array | The environment variables the scripts read at run time. |
scripts has one URL template for each script:
| Field | Script |
|---|---|
install |
Installs the latest release of a repository. |
installVerbose |
The same, and prints every decision. |
uninstall |
Removes the install of a repository. |
update |
Updates every install on the machine. |
remove |
Removes every install on the machine. |
Each entry of environment has these fields:
| Field | Type | Meaning |
|---|---|---|
name |
string | The variable, such as INSTL_VERSION. |
default |
string or null | The value the scripts use when the variable is unset. null when there is none, or when it depends on the machine. |
values |
array or null | The values the scripts accept. null for free text, such as a path or a token. |
platforms |
array | The platforms whose script reads the variable. |
description |
string | What the variable does. |
{
"domains": ["installer.dev", "instl.sh"],
"platforms": ["linux", "macos", "windows"],
"scriptFiles": { "linux": "install.sh", "macos": "install.sh", "windows": "install.ps1" },
"scripts": {
"install": "https://installer.dev/{owner}/{repo}/{script}",
"installVerbose": "https://installer.dev/{owner}/{repo}/{script}/verbose",
"uninstall": "https://un.installer.dev/{owner}/{repo}/{script}",
"update": "https://update.installer.dev/{script}",
"remove": "https://un.installer.dev/{script}"
},
"parameters": [{ "name": "version", "default": null, "description": "…" }],
"environment": [
{
"name": "INSTL_MODIFY_PATH",
"default": null,
"values": ["all", "current", "no"],
"platforms": ["linux", "macos", "windows"],
"description": "…"
}
]
}On Linux and macOS, a variable goes in front of sh, not in front of curl. Set a variable for one run shows both shells.