object-sync-for-salesforce icon indicating copy to clipboard operation
object-sync-for-salesforce copied to clipboard

Add support for WP-CLI

Open jonathanstegall opened this issue 8 years ago • 3 comments

Users should be able to run CLI commands to interact between WordPress and Salesforce.

jonathanstegall avatar Dec 21 '16 22:12 jonathanstegall

what kind of functionality are you thinking here?

rclations avatar May 12 '17 16:05 rclations

Off the top of my head, I don't remember, but the only thing I can think of is maybe the ability to manually run a push/pull would be nice.

Push could be something like this:

  1. User runs a push command.
  2. Plugin runs the normal cron event that pushes any queued data to Salesforce.
  3. It then sends data to Salesforce as normal.

Pull could be like this:

  1. User runs a pull command.
  2. Plugin runs the cron event that checks for any queued data to pull from Salesforce.
  3. It saves data into WordPress as normal.

This would only be useful for developers obviously. It is maybe not useful enough to add, really, but it was one of those things I didn't want to forget.

jonathanstegall avatar May 12 '17 16:05 jonathanstegall

https://github.com/MinnPost/object-sync-for-salesforce/tree/49-wp-cli has the basic scaffolding for a command when we're ready to add one

rclations avatar May 12 '17 20:05 rclations