3 ms·
Ask HN: How to publish command line tools?
I wrote a shell script, I'd like to make available for others to use. Scripting language ideally shouldn't matter. Users should not have to care what I used. I'd like to target users who want to easily install a new command line tool on Linux/Mac and receive updates, but preferably without the need to install another package manager.
There is the possibility to package it for many package managers, like https://github.com/jordansissel/fpm
Other possibilities would be npm (most people have it already installed), zsh plugins (limited user base), deno (rewrite your shell script in typescript - which is probably a good thing).
Any other ideas? What are you using?
- atsaloli 5y agoI share my shell scripts via Git For example, https://gitlab.com/atsaloli/config-files/-/blob/master/scripts/aws-service-codes.sh https://gitlab.com/atsaloli/config-files/-/blob/master/scrip... lists AWS Support service codes, which are needed to open a support case via the Support API.
- manx 5y agoThat's how I do it as well right now. But users have to clone/download the file themselves and manage the script location and updates themselves. That's an inconvenient installation procedure, which I'm usually too lazy to do.
- Wingy 5y agoI generally use npm, the npx command is useful for running things once.