# Run Console Command from a Controller in 3.7

**URL:** <https://discourse.cakephp.org/t/run-console-command-from-a-controller-in-3-7/5570>\
**Category:** Need Help\
**Created:** [January 24, 2019, 9:28am UTC](https://discourse.cakephp.org/t/run-console-command-from-a-controller-in-3-7/5570 "2019-01-24T09:28:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![butre](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/butre/32/1282_2.png) [@butre](https://discourse.cakephp.org/u/butre)\
**Post date:** [January 24, 2019, 9:28am UTC](https://discourse.cakephp.org/t/run-console-command-from-a-controller-in-3-7/5570/1 "2019-01-24T09:28:55Z")

</div>

Hi, i recently updated to 3.7 I created some Console Commands and i need to call them from a controller.  
In previous CakePhp ShellDispatcher was the way, now i can’t figure out how i can achieve the same purpose.

Thanks.  
Fabio.

---

<div class="post-metadata">

**Author:** ![deanoj](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@deanoj](https://discourse.cakephp.org/u/deanoj)\
**Post date:** [January 24, 2019, 1:33pm UTC](https://discourse.cakephp.org/t/run-console-command-from-a-controller-in-3-7/5570/2 "2019-01-24T13:33:43Z")

</div>

check this out: [https://github.com/dereuromark/cakephp-queue](https://github.com/dereuromark/cakephp-queue)

add jobs from your controller action, worker picks up the job (task) which can in-turn run code or dispatch shells.
