# onBootstrap not called for CLI commands

**URL:** <https://discourse.laminas.dev/t/onbootstrap-not-called-for-cli-commands/2447>\
**Category:** Components & MVC\
**Tags:** laminas-cli\
**Created:** [August 13, 2021, 6:19am UTC](https://discourse.laminas.dev/t/onbootstrap-not-called-for-cli-commands/2447 "2021-08-13T06:19:42Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![froschdesign](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/froschdesign/32/38_2.png) [@froschdesign](https://discourse.laminas.dev/u/froschdesign)\
**Post date:** [August 14, 2021, 8:50am UTC](https://discourse.laminas.dev/t/onbootstrap-not-called-for-cli-commands/2447/9 "2021-08-14T08:50:17Z")

</div>

> [@imitakov](#):
>
> …it is after all not intended to be a replacement for laminas-console and laminas-mvc-console.

It is a replacement, but with a different approach. laminas-console and laminas-mvc-console are **abandoned** and should no longer be used for new developments.

> [@imitakov](#):
>
> I need the url view helper, which requires MvcEvent upon creation.

No, laminas-view and there helpers does not need `Laminas\Mvc\MvcEvent`.

> [@imitakov](#):
>
> So I guess the best solution is just to roll back to laminas-console and laminas-mvc-console.

This will not help for the future.

> [@imitakov](#):
>
> Thanks again, you helped me to gain deeper understanding in the area so I can make a better choice.

You marked my last answer as solution but it does not work for you.  
It would be helpful if you could describe your use case, to find a correct solution. And it would help to improve laminas-cli.

The work on laminas-cli will continue and use cases like yours are needed! And if this forum post leads to a new feature request, then that’s good.

---

_[View the full topic](https://discourse.laminas.dev/t/onbootstrap-not-called-for-cli-commands/2447)._
