object-sync-for-salesforce
object-sync-for-salesforce copied to clipboard
Add support for WP-CLI
Users should be able to run CLI commands to interact between WordPress and Salesforce.
what kind of functionality are you thinking here?
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:
- User runs a push command.
- Plugin runs the normal cron event that pushes any queued data to Salesforce.
- It then sends data to Salesforce as normal.
Pull could be like this:
- User runs a pull command.
- Plugin runs the cron event that checks for any queued data to pull from Salesforce.
- 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.
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