Search code examples
phplaravelcommand-line-interfacelaravel-artisan

How add Artisan cli to existing laravel project?


I have issue with Artisan usage on Windows 10 with Xampp.

What have I done:

  1. clone project from git repositiory
  2. run composer install

In directory with project i trying run:

php artisan

but i get errror:

Could not open input file: artisan

But if i run command

php bin/console i get list of command like cache, debug, eloquent... so some tools are there... But none artisan...

How i can add/use artisan into existing project?


Solution

  • Check if artisan file exists in your project root folder. If it does, then you're probably on the wrong folder. If it doesn't exist, you can just download it from the official repo.