TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How to publish command line tools?

2 pointsby manxover 3 years ago
I wrote a shell script, I&#x27;d like to make available for others to use. Scripting language ideally shouldn&#x27;t matter. Users should not have to care what I used. I&#x27;d like to target users who want to easily install a new command line tool on Linux&#x2F;Mac and receive updates, but preferably without the need to install another package manager.<p>There is the possibility to package it for many package managers, like https:&#x2F;&#x2F;github.com&#x2F;jordansissel&#x2F;fpm<p>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).<p>Any other ideas? What are you using?

2 comments

atsaloliover 3 years ago
I share my shell scripts via Git<p>For example, <a href="https:&#x2F;&#x2F;gitlab.com&#x2F;atsaloli&#x2F;config-files&#x2F;-&#x2F;blob&#x2F;master&#x2F;scripts&#x2F;aws-service-codes.sh" rel="nofollow">https:&#x2F;&#x2F;gitlab.com&#x2F;atsaloli&#x2F;config-files&#x2F;-&#x2F;blob&#x2F;master&#x2F;scrip...</a> lists AWS Support service codes, which are needed to open a support case via the Support API.
评论 #29140150 未加载
Wingyover 3 years ago
I generally use npm, the npx command is useful for running things once.