xwp / wp-cli-ssh

[OBSOLETE] Seamlessly run WP-CLI commands on a remote server via SSH
157 stars 14 forks source link

Error: Too many positional arguments #19

Closed tillkruss closed 10 years ago

tillkruss commented 10 years ago

When I run: wp ssh plugin status --host=staging I get this error: Error: Too many positional arguments: status

This is my project's wp-cli.yml:

ssh:
    staging:
        cmd: ssh %pseudotty% user@foobar.com %cmd%
        url: staging.foobar.com
        path: /var/www/staging.foobar.com`

This is my global wp-cli.yml:

require:
  - vendor/autoload.php

The result of wp cli info

PHP binary: /usr/bin/php
PHP version:    5.4.24
php.ini used:   /etc/php.ini
WP-CLI root dir:    phar://wp-cli.phar
WP-CLI global config:   /Users/Foo/.wp-cli/config.yml
WP-CLI project config:  /Users/Foo/Sites/foobar.com/wp-cli.yml
WP-CLI version: 0.16.0
jonathanbardo commented 10 years ago

This was seen in the past #13. I'll update wp-cli and see if I can reproduce.

jonathanbardo commented 10 years ago

@tillkruess I just tested with wp-cli 0.16.0 and it seems to work as expected.

On your host machine if you write wp ssh does it output something. Also did you make sure you are using the master branch?

tillkruss commented 10 years ago

I assume I'm using 0.16.0, because that's what wp cli info says. I used Composer to install it.

When I run wp ssh, I get this: usage: wp ssh <command> --host=<host>

tillkruss commented 10 years ago

Is there any way I can help debug this? I'd love to get wp cli ssh running.

jonathanbardo commented 10 years ago

Do you happen to know the version of wp-cli on your staging server? This could have an impact as well.

tillkruss commented 10 years ago

I just re-installed WP CLI everywhere and it seems to work fine now.