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/