• Resolved Felipe Elia

    (@felipeelia)


    Hi,

    I’m trying to run wp core install with a two words title parameter and I get this Too 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 with wp 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! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    WP-CLI’s support: https://wp-cli.org/#support

    Thread Starter Felipe Elia

    (@felipeelia)

    Yeah, I went there and read this:

    Post a new thread in the www.remarpro.com support forum and tag it ‘WP-CLI’ so it’s seen by the community.

    that was why I came here…

    But well, thanks anyway. I discovered the problem: I was using a wrapper for calling wp-cli. Changing $* to "$@" solved the question, as seen here.

    Moderator t-p

    (@t-p)

    Okay, glad you got it sorted ??

    But well, thanks anyway. I discovered the problem: I was using a wrapper for calling wp-cli.

    Glad to hear you figured it out. I thought it was a quoting issue too.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WP-CLI: Arguments with space character throws “Too many positional arguments”’ is closed to new replies.