Question

I am pulling my hair trying to figure out out to get the bake tool to work.

What i've done

Opened terminal and type in

cd ~

Then i've type in

vi .profile

Which already has the following contents

export PATH="$PATH:/Applications/MAMP/bin/php/php5.4.10/bin:/Applications/MAMP/cakephp/lib/Cake/Console/cake:$PATH"

Now when i go into the htdocs folder and type in terminal

cake bake sampleapp

I get the following message

zsh: command not found: cake

I'm not sure on how to troubleshoot this. Thank you for reading this :)

No correct solution

OTHER TIPS

Solved it :) I'm using zsh so i opened the config file like so:

vi .zshrc

Then i scrolled right to the bottom where there was paths set,

# Customize to your needs...
export PATH=$PATH:/path/to/cake/console/folder

You don't have to go right to the cake console, just the folder containing it should suffice.

Now i can access the cake console.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top