© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Invoking Commands from Handlers in Effect v4 CLI Module - Effect Community
EC
Effect Community
•
2mo ago
•
6 replies
Federico Biccheddu
Invoking Commands from Handlers in Effect v4 CLI Module
Using effect v4 and the CLI module
, what
's the suggested
/idiomatic way of invoking commands from handlers reusing the same logic
?
I
'm abstracting some common actions
(eg
: building
, tagging and pushing docker images
) that I
'd like to be available both via command
(eg
build --service api
build --service api
) and inside
"workflows
"
(eg
deploy preview api
deploy preview api
)
.
I
've explored these solution for now
:
- declare the common parts as effects or services
- declare the reusable commands as
Command.run
Command.run
but seems hacky
Effect Community
Join
Production-grade applications in TypeScript.
6,221
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Supported Frameworks for `Atom` Module in Effect v4
EC
Effect Community / 🚀-effect
3mo ago
Combining @effect/cli and @effect/io/Config for fallback values in cli options from .env
EC
Effect Community / 🚀-effect
3y ago
Modeling Dependency Inversion with Handlers in Effect-TS
EC
Effect Community / 🚀-effect
8mo ago
Using `Effect.acquireUseRelease` for Middleware in Request Handlers
EC
Effect Community / 🚀-effect
17mo ago