0

I've managed to install and use cake bake with xampp, but I have no idea how to install bake with my command line on the hosting.

The error I get is:

CakePHP 3.4.4 Red Velvet already installed.

Can anyone give me some directions? Thanks.

zx485
  • 28,498
  • 28
  • 50
  • 59
Erik180486
  • 1
  • 1
  • 5

1 Answers1

0

Just cd to your /path/to/project/bin/ and execute the Cake command line tool with ./cake bake model Products, for example. ✌

Marijan
  • 1,825
  • 1
  • 13
  • 18
  • Thanks for your reply. I am in the /bin/ directory, but when I type cake bake it sais: unknown command. I'm using PSFTP in cmd. – Erik180486 Mar 31 '17 at 19:29
  • Please note the leading `./` – so try this, when you are inside the folder: `./cake` – Marijan Mar 31 '17 at 19:35
  • Not working. in the /bin/ folder there are three files; cake, cake.bat and cake.php. – Erik180486 Mar 31 '17 at 19:40
  • Make sure that a PHP CLI is available on the system. Also check this doc: https://book.cakephp.org/3.0/en/console-and-shells.html – Marijan Mar 31 '17 at 19:45
  • Can't run anything. How do I check if there is a PHP CLI on my server? php -v is not working also.... – Erik180486 Mar 31 '17 at 20:04
  • Depends on your system, but maybe this helps. http://unix.stackexchange.com/questions/10976/how-do-i-install-a-php-cli-with-a-usable-interactive-prompt-on-debian-wheezy – Marijan Mar 31 '17 at 20:07
  • Thank you! I have some directions now. Hopefully I manage to work it out! – Erik180486 Mar 31 '17 at 20:19