Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

sheldonscott's avatar

Where art thou, Homestead?

I am very, very, VERY new to Laravel. Because of my unfamiliarity with all of this, I am going to write out as much as I can to explain my environment and situation (so forgive me if some of this is not necessary to solve the problem or even off topic)!

First, the facts:

  • I am running a Mac with OS X Yosemite and am trying to get Laravel going on my machine.
  • I have downloaded VirtualBox and Vagrant and installed each of those.
  • In Terminal, I get a command list when I run vagrant, so that seems to be okay.
  • I ran vagrant box add laravel/homestead and selected 1 for virtualbox (successfully added message)
  • I ran composer global require "laravel/homestead=~2.0" (which is telling me there is nothing to install or update)
  • I ran curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer (which told me all settings are correct for using Composer, downloaded it, and successfully installed it to: /Users/Me/composer.phar)

Now, for the problem: When I try homestead, I am getting:

-bash: homestead: command not found

I don't really know much about Terminal (as I am sure is obvious). I have tried to work through the instructions in a Laravel book I bought, through online resources (including this site), and through Laracasts, but no matter what I do, I am getting the "command not found" message when trying to run homestead.

Anyone know what's going on here?

0 likes
7 replies
sheldonscott's avatar

Yeah, I've taken the time to go through as much of the official docs as I can, but I keep getting stuck. (And my apologies - I did use vagrant up. ;)

I am still getting the same command not found message every time I try running homestead. I can ls and see a Homestead folder (and have tried cd into there and running homestead from in there but get the same not found message). An ls inside Homestead reveals these:

LICENSE.txt
composer.json
homestead
readme.md
src
Vagrantfile
composer.lock
init.sh
scripts

I can't understand why this message keeps popping up. Any suggestions or solutions?

bashy's avatar

There's no command for that any more?

sheldonscott's avatar

I am going to try working through the Getting Started Laracast again - perhaps I missed something!

bashy's avatar

Both. I'm not 100% sure but I believe it was removed. I just wanted someone to confirm my post. :)

lindstrom's avatar

Your terminal reports:

"-bash: homestead: command not found"

Which tells me you issued homestead as the command at the prompt. Bash tells you that the command isn't found because it is not a valid command--it doesn't exist. It can't be run. The correct command to bring the box up is vagrant up. Where did you try vagrant up? What if any error(s) did you receive?

http://laravel.com/docs/5.1/homestead#launching-the-vagrant-box

Am I missing something?

Please or to participate in this conversation.