I'm testing CiviCRM 4.7 in a WordPress 4.4.2 installation. I'm running this on a local server with Mac OSX 10.11.2 using MAMP Pro.
I'm trying to configure cron using the wp-cli method. I've installed, renamed and moved wp-cli and running
wp --info in /Applications/MAMP/bin gives
PHP binary: /usr/bin/php
PHP version: 5.5.30
WP-CLI root dir: phar://wp-cli.phar WP-CLI global config:
WP-CLI project config:
WP-CLI version: 0.22.0 Phils-MacBook-Air:bin phillip$
wp help shows the WordPress commands
I'm now trying to implement
/path/to/wp --user=<cron> --url=<http://example.com> --path=</path/to/wp> civicrm api job.execute auth=0
In my case I'm trying
/users/phillip/Sites/thetestsite.dev --user=<philnicholl> --url=<http://thetestsite.dev:8888> --path=</users/phillip/Sites/thetestsite.dev> civicrm api job.execute auth=0
but I get
-bash: philnicholl: No such file or directory
(philnicholl is my WordPress administrator username)
I know I'm missing something obvious.
I'm have experience with WordPress and Mamp Pro but am new to both CLI and CIVICRM. Any help would be much appreciated.