wp-cli/wp-cli — pull request #966 by kurtpayne (2014-01-18 14:37:43+00:00)
Title: Don't run as root, don't run plugins, and bonus spec file

First, sorry for three commits in one PR. I fail at github.

---------------

It's a bad idea to run wp-cli as root. This is a bit heavy handed. Maybe needs a config option? Looking for feedback.

---------------

Also, bad plugins can break wp-cli altogether. Example:
http://plugins.svn.wordpress.org/redirect/tags/0.8/redirect.php

The fix is to only load specified plugins. For most functions, you don't need plugins. For when you do, just run with "--enable-plugins=plugin1,plugin2" and it works with globbing, too so "--enable-plugins=*" works.

---------------

And finally ... I use a variant of this makefile/spec combo to build a wp-cli rpm for easy deployment. Hope it's useful!

(Again sorry for the three commits in one PR)