Reputation: 2994
The following is a snippet from my console, I baked a shell, and immediately try to use it, it should output getOptionParser, but it throws a MissingShell Exception instead, any ideas?
└──╼ bin/cake bake shell coin --plugin WalletManager
Welcome to CakePHP v3.4.7 Console
---------------------------------------------------------------
App : src
Path: Projects/AltCoinWallet.Solutions/CakeCoin/src/
PHP : 5.6.30
---------------------------------------------------------------
Creating file plugins/WalletManager/src/Shell/CoinShell.php
Wrote `plugins/WalletManager/src/Shell/CoinShell.php`
└──╼ bin/cake coin
Exception: Shell class for "..." could not be found.
in [...src/Console/ShellDispatcher.php, line 327]
Upvotes: 0
Views: 907
Reputation: 60463
You've baked a plugin shell, hence you need to refer to the plugin:
bin/cake wallet_manager.coin
or
bin/cake WalletManager.coin
See also
Upvotes: 2