Use in-cli to stay organized
dev.to·2d·
Discuss: DEV
💻CLI Tools
Preview
Report Post

We all "love" microservices, allegedly. But you know what isn’t fun? Realizing you need to bump a dependency, run a build, or git pull across 15 different repositories at the same time.

You usually have two options (if you don’t want to use AI agents):

The "Tab Hoarder" Strategy Manually open 15 terminal tabs, cd into each one, run the command, and pray you didn’t miss one. 1.

The "Unix Wizard" Strategy You try to construct a one-liner that iterates over directories. You start typing:

find . -maxdepth 1 -type d -exec sh -c 'cd "{}" && git pull' \;

It works, but it’s painfully slow because it runs serially (one at a time). So you switch to xargs to run it in parallel:

ls -d */ | xargs -P 4 -I {} bash -c "cd {} && pnpm update"

Now you have a prob…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help