I've got wp cli installed on my cpanel server successfully, and via terminal under the account or via putty it works as it should, however calling it via a cron job it doesn't seem to find the wordpress install, wp commands work but the path target doesn't so you just get the default info rather than executing the command.
I've tried cd to the root dir and running under the main crontab, as well as via the account cron and none seem to work, this is my test cron script at the moment, which should create a new post and log to cron the action:
/usr/local/bin/php /usr/local/bin/wp post create --post_type=post --post_title='test 123' --post_status=publish --path=/home/development/public_html/ > /home/development/cron.txt
I've tried cd to the root dir and running under the main crontab, as well as via the account cron and none seem to work, this is my test cron script at the moment, which should create a new post and log to cron the action:
/usr/local/bin/php /usr/local/bin/wp post create --post_type=post --post_title='test 123' --post_status=publish --path=/home/development/public_html/ > /home/development/cron.txt