HACKER Q&A
📣 manx

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 Accepted Answer ✓
I share my shell scripts via Git

For example, 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.


👤 Wingy
I generally use npm, the npx command is useful for running things once.