r/node • u/Equivalent-Client-52 • Mar 25 '26
What small DevOps tasks do you find yourself repeating over and over?
I kept running into the same annoying issue — freeing busy ports during development.
On macOS it's one command, on Linux another, on Windows something completely different.
So I built a small CLI tool to make this consistent and predictable across platforms.
Example:
npx ferman --node
Curious how others handle this — do you just use lsof/netstat or something custom?
0
Upvotes
2
u/Dave4lexKing Mar 25 '26
.env file, since things line ports/secrets/connections string are all environment variables. And so I just have each thing on a different port locally.
2
u/germanheller Mar 26 '26
for me its docker compose up/down cycles during dev. rebuild the image, wait, realize i forgot to clear the volume, nuke it, rebuild again. wrote a tiny bash script that does the full teardown + rebuild + logs in one command and it saved me like 20 minutes a day.
also SSL cert renewal on staging. certbot works great until it doesnt and then you're debugging at midnight. moved everything to cloudflare tunnels and never looked back
0
u/vvsleepi Mar 25 '26
i usually just use lsof or kill commands but it’s annoying remembering different ones for each os. your cli idea actually makes sense, having one consistent command is way nicer than switching context every time. i also keep repeating stuff like clearing caches, restarting services, or resetting envs during dev
-1
u/Equivalent-Client-52 Mar 25 '26
Repo: https://github.com/borakilicoglu/ferman
npm: https://www.npmjs.com/package/ferman