Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

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!
This comment has been deleted
Thanks for the wp-cli tutorial. I think what is missing ( at least for my ) is how to do batch operations on multiple blogs / sites with this tool ( which isactually where it comes most helpful )
I have noticed that wp core update does NOT replace the loose files that are in htdocs.
But everything says it’s upgraded. Have you noticed this or is there some kind of problem I’m experiencing like permission errors that there are no warnings about?
URL above updated:
curl https://raw.githubusercontent.com/wp-cli/wp-cli.github.com/master/installer.sh | bash
Hey there, I tried several times but it didn’t work when I went strait :
$curl https://raw.github.com/wp-cli/wp-cli.github.com/master/installer.sh | bash
However, spitting the command worked out :
$ curl https://raw.github.com/wp-cli/wp-cli.github.com/master/installer.sh $ installer.sh bash
@charleslouis: Thanks for catching that! It looks like the url is now being redirected to:
https://raw.githubusercontent.com/wp-cli/wp-cli.github.com/master/installer.sh
By default, curl won’t follow redirects. I’ll update the article.
Hey again,
I need to specify " --allow-root" when using “wp”. Hence I created an alias in .bash_profile "alias wp=“wp --allow-root” That did the trick, but I doubt that the way I should handle this.
Does anyone has an idea on this ?
Thanks in a advance.
@charleslouis: Are you running wp-cli as “root”? It’s more secure to use a regular non-root user instead.
Great tutorial…however when I log in as the root user I get this error: “YIKES! It looks like you’re running this as root. You probably meant to run this as the user that your WordPress install exists under.” So when I change to my non-root user log in I get this error message: “wp: command not found”…
Probably a very simple fix…I just don’t know it (newbie shell user here). Thanks!
@timorr: Try following the tutorial from the beginning as your non-root user (including installing wp-cli). Does that fix it?