WP-CLI - Force sudo command

: ' sudo wp {command} {args} --allow-root ' sudo wp plugin install w3-total-cache --allow-root
If your SSH access does not match the folder permissions, sometimes you'll need to `sudo`, which Vagrant hates and WP-CLI discourages.

But it is possible with `--allow-root`

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.