Passing Parameters and Providing Layers in `@effect/cli`

I'm trying to build a CLI using @effect/cli. What's the appropriate way to pass parameters to an effect that needs layers providing? If I declare my program as an effect, how can I get parameters into it, and also provide the layers, because if it's just an anonymous function, I can't apply layers to that. And if I use Effect.gen, I can't pass parameters to that
Was this page helpful?