Can't restart ghost after update: "Ghost-CLI commands do not work..." error


I have a 1-click Ghost droplet. It was running fine but was outdated so I did an update, which went smoothly. Unfortunately, now I can’t restart ghost.

When I do sudo -i -u ghost-mgr and attempt ghost restart I get:

ghost-mgr@br-2:/var/www/ghost$ ghost restart
Ghost-CLI commands do not work inside of a git clone, zip download or with Ghost <1.0.0.
Perhaps you meant `grunt restart`?
Otherwise, run `ghost restart` again within a valid Ghost installation.

Can anyone provide any pointers please?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I am having the same issue, tried updating Ghost from 3.2 to 3.40 but when I try to restart Ghost I get “Ghost-CLI commands do not work inside of a git clone, zip download or with Ghost <1.0.0.”

any help?


I’ve tried to replicate this at my end by setting up a Ghost 1-click Droplet and upgrading Ghost but in the end it worked as expected and I did not get the error.

What is the output of the following command:

ghost ls

Also, can you run an ls -lah in the /var/www/ghost folder?

Regards, Bobby