MinnPost / object-sync-for-salesforce

WordPress plugin that maps and syncs data between Salesforce objects and WordPress objects.
https://wordpress.org/plugins/object-sync-for-salesforce/
GNU General Public License v2.0
97 stars 52 forks source link

Add support for WP-CLI #49

Open jonathanstegall opened 7 years ago

jonathanstegall commented 7 years ago

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

rclations commented 7 years ago

what kind of functionality are you thinking here?

jonathanstegall commented 7 years ago

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.

rclations commented 7 years ago

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