Integrate console script in laminas application

Hello,
I would like to know how to integrate command line scripts in my laminas project.
I tried to use laminas-cli but I do not know how to call (for retrieving my mapper from container) my repositories inside for calling my existing functions

In the same way as for other services: register the command with a factory.

The import point can be found in the introduction of laminas-cli in step 3:

If your command has dependencies, register the command and its factory in the container. Commands that can be instantiated with no constructor arguments can omit container configuration…

Thank you @froschdesign
I found a solution by following a post here in discourse.laminas.dev

:wink: