# Command not working?

**URL:** <https://discourse.cakephp.org/t/command-not-working/6745>\
**Category:** Need Help\
**Created:** [October 12, 2019, 6:06pm UTC](https://discourse.cakephp.org/t/command-not-working/6745 "2019-10-12T18:06:56Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![FinlayDaG33k](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/finlaydag33k/32/1049_2.png) [@FinlayDaG33k](https://discourse.cakephp.org/u/FinlayDaG33k)\
**Post date:** [October 12, 2019, 6:06pm UTC](https://discourse.cakephp.org/t/command-not-working/6745/1 "2019-10-12T18:06:56Z")

</div>

Hii there,

I;m trying to build a plugin that allows the use of a `Command` using `Cake\Console\Command` class.

For this, I have created a file in `src/Command` called `TranslateCommand.php`, containing the following content:

```php
<?php
  namespace FinlayDaG33k\Translate\Command;

  use Cake\Console\Arguments;
  use Cake\Console\Command;
  use Cake\Console\ConsoleIo;

  class TranslateCommand extends Command {
    public function execute(Arguments $args, ConsoleIo $io) {
      $io->out('Translate command ran');
    }
  }

```

I’ve also added the following line in my `src/Application.php` (of the main app):

```php
$this->addPlugin('FinlayDaG33k/Translate');

```

But when I run `cake --help` it’s not in the list nor when I call `cake translate`, I get a “command not found” error (from the cake cli).  
My question hereby is, how do I call the console commands created by a plugin?

---

_[View the full topic](https://discourse.cakephp.org/t/command-not-working/6745)._
