01
Install the CLI
npm install -g launchr-cli
Config-Driven URL Launcher
launchr helps teams open dashboards, logs, and runbook
links from reusable command templates. Keep links typed, validated,
and fast to execute.
launchr-cliQuick Start
01
npm install -g launchr-cli
02
launchr add
03
mkdir -p ~/.zsh/completions
launchr completion zsh > ~/.zsh/completions/_launchr
Features
Define URL templates once, then reuse them with typed parameters and short flags.
launchr validates command schema, placeholders, missing required values, and allowed choices.
Use -i or --interactive before a custom
command to fill missing required parameters in a terminal.
Use launchr list and built-in help to inspect custom
commands. In zsh, launchr <TAB> also completes saved
command names from your config.
Version 1.x supports both launchr add and deprecated
alias launchr init.
Commands
| Command | Purpose |
|---|---|
launchr |
Starts CLI entrypoint and prints guidance. |
launchr help |
Shows built-in help and usage details. |
launchr list |
Lists configured custom commands from your JSON config file. |
launchr add |
Interactive flow for creating a new custom command. |
launchr -i <custom> [flags] |
Prompts for missing required parameters in an interactive terminal. |
launchr init |
Deprecated alias for add in v1.x. |
launchr <custom> help |
Shows usage for one configured custom command. |
launchr <custom> [flags] |
Builds URL from template and opens it in your browser. |
Shell setup: generate the zsh completion file with
launchr completion zsh > ~/.zsh/completions/_launchr.
This is a setup command and is intentionally hidden from the normal
top-level command list.
Configuration
launchr stores command definitions at
~/.launchr-configurations/launchr-commands.json.
Saved command names in this file are also what zsh completion shows
after launchr.
{
"grafana": {
"description": "Open Grafana with typed parameters",
"url": "https://grafana.com/{environments}/{query}/{timeframe}",
"parameters": {
"environments": {
"type": "single-choice-list",
"flag": "e",
"defaultValue": "staging",
"required": true,
"values": ["staging", "production"]
},
"query": {
"type": "string",
"flag": "q",
"defaultValue": "error",
"required": true
},
"timeframe": {
"type": "single-choice-list",
"flag": "t",
"defaultValue": "5m",
"required": true,
"values": ["5m", "10m", "1h", "6h"]
}
}
}
}
Release Notes
v1.2.0
launchr completion zsh remains available as a setup-only command.-i / --interactive can prompt for missing required parameters.v1.1.1
launchr add is now the canonical command.launchr init remains as a deprecated alias in v1.x.add.v1.0.0
Development
npm install
npm start -- help
npm test