Categories
wp-cli

Allow Root from wp-cli 2.5

export WP_CLI_ALLOW_ROOT=true

In the past on order to run wp commands from the root user we would amend `–allow-root` to the wp command. With the release of wp-cli 2.5 we may now set the new environment variable: WP_CLI_ALLOW_ROOT just once.

 export WP_CLI_ALLOW_ROOT=true

More info here https://make.wordpress.org/cli/

Leave a Reply

Your email address will not be published. Required fields are marked *