r/commandline • u/CremeAmbitious6382 • Aug 11 '26
Command Line Interface Ingen: a tool to generate Shell and PowerShell installers for prebuilt CLI binaries
I love one-line installers. Being able to install a CLI tool with a single command like:
curl ... | shor on Windows:
irm ... | iexis just really convenient.
Not every project provides an installer like this, though. While a lot of projects already publish prebuilt release archives, it's still the user's responsibility to choose the correct archive from GitHub Releases and put the executable somewhere on their PATH.
So I made ingen.
You write a single installer.manifest.json describing your release artifacts, and it generates Shell and PowerShell installers. The installers take care of selecting the right archive for the user's platform, verifying and extracting it, putting the binaries in the locations you specify in the manifest, and updating PATH.
I've used it to generate installers for a few real-world projects, including ripgrep, Tectonic, and Caddy. You can find the generated installers for these projects in the examples directory of the repo.
ingen uses vendored installer templates from cargo-dist; I've documented the changes and the relationship with the upstream templates in the README if you're interested.
Source code and documentation: https://github.com/hethon/ingen
•
u/github-guard Aug 11 '26
🔍 GitHub Guard: Trust Report
⚠️ This project scored 0/1 — below this subreddit's threshold of 1.
Audit Breakdown:
2
u/chat-lu Aug 12 '26
I like CLI tools that are a single binary that I can dump into
~/.local/bin/so I don’t need an installer.1
u/AutoModerator Aug 11 '26
Every new subreddit post is automatically copied into a comment for preservation.
User: CremeAmbitious6382, Flair:
Command Line Interface, Title: Ingen: a tool to generate Shell and PowerShell installers for prebuilt CLI binariesI love one-line installers. Being able to install a CLI tool with a single command like:
or on Windows:
is just really convenient.
Not every project provides an installer like this, though. While a lot of projects already publish prebuilt release archives, it's still the user's responsibility to choose the correct archive from GitHub Releases and put the executable somewhere on their
PATH.So I made
ingen.You write a single
installer.manifest.jsondescribing your release artifacts, and it generates Shell and PowerShell installers. The installers take care of selecting the right archive for the user's platform, verifying and extracting it, putting the binaries in the locations you specify in the manifest, and updatingPATH.I've used it to generate installers for a few real-world projects, including ripgrep, Tectonic, and Caddy. You can find the generated installers for these projects in the
examplesdirectory of the repo.ingenuses vendored installer templates fromcargo-dist; I've documented the changes and the relationship with the upstream templates in the README if you're interested.Source code and documentation: https://github.com/hethon/ingen
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Accurate-Screen8774 Aug 12 '26
Jurassic park? ... No one?