I just updated to Craft 3.1 and logged into the admin to make the required updates to the database and this all worked fine. However, when I use the new ./craft update CLI feature, it responds with "Craft isn't installed yet", even though it's on a year old Craft project and just successfully updated to Craft 3.1?

There's not really any other messages to go on for this one. See below.

Craft 3.1 update error


Have you tried running ./craft setup to double check if your setup is correct?

If ./craft setup completes successfully ./craft should find the existing installation and complete any required setup.

In my experience, this is usually related to a non-default /config/db.php or problematic .env file.

Note: Always do a backup before trying anything related to setup just to be on the safe side.

  • In my case the craft.bat file was missing. You might double check that as well ;)
    – outline4
    Apr 17 '20 at 5:08
  • 1
    My issue was using localhost instead of 127.0.01 - the latter worked.
    – iamkeir
    Jul 2 '20 at 11:25

You can get this error message even if Craft installation is OK. If you work in MAMP environment and have this error message, check if your PHP and MySQL are available from command line (Terminal).

To check PHP, do following:

Open terminal and type: $ which php If you see something like "/usr/bin/php" that means MAMP's PHP is not available from command line.

We have to modify the $PATH variable modifying the file ~/.bash_profile located in your root user folder. Type: $ sudo nano ~/.bash_profile

Edit PATH by entering path to MySQL and PHP (pay attention on php version that you have in your MAMP)


Save changes and reload edited .bash_profile with:

$ source ~/.bash_profile

Check PHP with:

$ which php

If you see "/Applications/MAMP/bin/php/php7.3.9/bin/php" this is it ;)

  • In MAMP Pro there is a tickbox which basically does all this for you under PHP > Make this version available on the command line. Mar 16 '20 at 17:57
  • cheers Dusko, this worked for me on MAMP Apr 10 '20 at 14:56
  • This was exactly my issue and fixed me up perfectly. Thanks!
    – Brimby
    Apr 25 '20 at 1:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.