WP-CLI: Arguments with space character throws “Too many positional arguments”
-
Hi,
I’m trying to run
wp core install
with a two words title parameter and I get thisToo many positional arguments
error. I’ve tried escaping the space char and surrounding the whole string with double and simple quotes, but without success.The command:
wp core install --url=https://localhost/ --title="Two Words" --admin_user=username --admin_password=xDeFeP37s_7 [email protected] --skip-email
The error:
Too many positional arguments: Words
I have temporarily solved it passing a dummy text to
wp core install
and changing to the real value withwp option update blogname "Two Words"
, but I’d really like to know if it there is a way of doing it with a single step.Thank you all, wp-cli is amazing! ??
- The topic ‘WP-CLI: Arguments with space character throws “Too many positional arguments”’ is closed to new replies.