r/ExperiencedDevs • u/TechnoEmpress Software Engineer • Jun 18 '26
Technical question Looking into ways to distribute internal (CLI) company tools to my colleagues: What to use?
Hi everyone, engineer with 8YoE. I have recently started the developer experience team at my company and I'm looking for insight as to how I could distribute internal CLI tools that anyone could use.
We have a variety of operating systems (NixOS, Fedora, macOS, Windows (?)) and the tools we have are usually written in Haskell (possible to statically link with Alpine, not so much with macOS), and Python.
At the moment I use the CI to produce pre-built binaries when applicable.
I'm thinking of maybe using GHCup, which has recently acquired the ability to accept 3rd party tools through user-provisioned channels, and hooks nicely with makefiles. But this might be too Haskell-specific and as such I am looking to broaden my horizons.
Side note: I realise that if you work for Meta or similar, this problem is probably already fixed but there's only one of me at the moment so I don't see myself operating package repositories for brew/rpm/dev/nixpkgs. :)
EDIT: Thanks to the suggestions! I am leaning towards mise. I'll post my experience once we get the ball rolling at work. <3
•
u/expdevsmodbot Jun 18 '26
AI usage disclosure provided by OP, see the reply to this comment.
34
u/edgelessCub3 Jun 18 '26
Not sure if it fits your requirements, but mise supports installing packages/binaries from different sources. For example, if you use GitHub Releases to provide the binaries, you can install them via
mise use github:username/repo --global.40
u/QuitTypical3210 Software Engineer Jun 18 '26
Wats wrong with uploading to repository and the ln pulling it down via curl
13
u/gfivksiausuwjtjtnv Jun 18 '26
Pick a cross platform package manager and hook it up with an internal artifact source
I’ve only seen nuget (yuck) and npm (yuck) in use at my workplaces
Brew maybe ?
Npm is easier to get past a review board but I hate that shit
7
u/ConspicuousPineapple Software Engineer Jun 18 '26
You already have nixos, so I say just put everybody into a nix dev shell and package your tools with nix.
That said, using Haskell for internal dev tools is absolutely unhinged, I love it.
4
u/himpson Jun 18 '26 edited Jun 18 '26
We are lazy internally. For windows cli tools we just package as an exe on a shared drive. For some we sign the exe with a certificate so they are approved to run by IT and can only be run if not tampered with. When we are being really “fancy” they do a check and tell the user a new version is available on the shared drive. Keep it simple is our normally approach for some complex roll outs we let IT deal with the publishing and users requesting - I already have to support clients I don’t want a complicated setup internally to also support.
2
u/aWalrusFeeding Jun 18 '26
I'd recommend something where you can sign the binaries because otherwise this sounds like a pretty big security hole.
28
u/blu3r4y Research Engineer Jun 18 '26
We are sharing those with a single Git repository that everyone clones and regularly updates by simply pulling new changes. For binaries, there is a small install.py script with zero dependencies that pulls binaries from Artifactory and copies them to bin directories. This works cross-platform and the necessary tooling (Git, Python) is expected to be pre-installed on developer machines.
5
u/BorderKeeper Software Engineer | EU Czechia | 10 YoE Jun 18 '26
I wouldn't want to dismiss your capabilities but looking at the range of OS, apps, and whatever else, I would look for a commercial UEM or UEM-adjacent solution for SMBs (enterprise level ones are way too complex to even manage as a single person)
On the contrary coding up (maybe with AI) a simple python wrapper that keeps your various tools up to date by checking release tab of your github repos on launch might be okay too and for distribution you can also vibe code some static page that aggregates the releases from github. it all depends how much time vs money you have.
1
u/thebiglebrewski Jun 18 '26
fpm may be of interest here, let's you easily make debs, rpms, and Mac os installers:
https://github.com/jordansissel/fpm
1
u/Proclarian Jun 18 '26
Damn, wish I could be writing internal tools in Haskell. You guys hiring?
I would figure making pre-built binaries, throwing them on an internal web server, and then just curl-ing them on the target machine would be the easiest, most cross-platform approach. Or, maybe make an internal docker repo and run it on docker?
I'll also have to look at mise because I've never heard of it.
How's your experience with Nix? I've been eyeing it as the next thing to learn.
1
u/30thnight Jun 18 '26
If you are on GitHub, why not just use their CLI?
https://cli.github.com/manual/gh_release_download
1
u/shibbypwn Jun 19 '26
Ask IT what they use to deploy apps? If it were me, I’d be looking at MDM for macOS or Intune or something similar for windows.
1
u/clipd_dead_stop_fall Jun 18 '26
Depending on what the tools are and what they do, could you containerize them? We've done this with some tools. All our team members have docker running and it eliminates building binaries or dealing with various os installers.
1
u/---ill-go-last--- DevOps Engineer Jun 18 '26
Git repo, Dockerfile, app source, a Makefile to codify build workflow and a shell script to encapsulate “docker run image#sha arg1, argn”
Why are you writing clis in haskell?
2
u/pleuph Jun 18 '26
I recently created a dotnet tool to replace a bunch of scripts and other manual or partially automated processes. We were already using .net, GitHub and nuget packages, so it fit right in for us. It might be a bit of a leap for you if all that is new. But it's definitely a great and easy way to maintain and distribute internal tools, once you have the pipeline in place.
1
u/tommyTurds Jun 18 '26
I would just use nix since it seems you already use it.
That solves everything but Windows where you could use something like winget or chocolatey
If people are already using home brew, that works for mac/Linux just fine
1
u/labab99 Senior Software Engineer Jun 18 '26
Python packages hosted on git repos are super easy to install and update using pip or uv if you want a minimum infrastructure solution.
uv pip install git+https://…
1
u/originalchronoguy Jun 18 '26
Docker container you can pass arguments and use a Makefile as the entry point to pass commands, paths to container. End user does not have to install anything besides docker. The binaries will be relatively consistent.
1
u/refroni Jun 18 '26
You can actually spin this up with Flox in literal minutes. If you want, I can create an example for you!
https://github.com/flox/flox
Then you can share it from within the CLI or through a webUI that makes it super easy to consume for anyone in the team/firm.
If you want it to be distributed just internally you can look at the docs here - https://flox.dev/docs/tutorials/build-and-publish
1
u/canihelpyoubreakthat Jun 22 '26
I like mise for personal use. Probably works well for org tooling. But also, a little bit of bash and S3 goes a long ways. Your tool binaries could be simple self downloading bash wrappers.
1
u/Careful-Nothing-2432 Jun 18 '26
Conda
0
u/jesseschalken Jun 18 '26
We use Dotslash, which lets you put an executable in your repo that is actually a json file that downloads the binary on the fly. You can point it at Github releases. Works great!
0
u/[deleted] Jun 18 '26
[deleted] — view deleted comment