Have Terminus installed on your computer first

https://pantheon.io/docs/terminus/install/

 

Every time a sync is run either through Terminus or Cron, the last sync time is automatically updated with the time of that the sync began. If the plan is to run events sync manually for now, it would be best to just disable cron entirely for events (command below) and then reset the last_sync time back to the date of our last manual sync for that first run, which is November 9, 2017, Unix timestamp 1510185600. Any events that have already been added will simply be skipped. Then just run the manual sync command and it will automatically sync just the latest events.

Test

If you want to get the time of last sync (in Unix Timestamp format)

terminus wp cornell-alumni.test -- option get cornell_events_last_sync


To set the last sync time to sync events from an earlier date (in Unix Timestamp format)

terminus wp cornell-alumni.test -- option update cornell_events_last_sync 1510185600
 

To turn cron off (should be done before running manual sync)

terminus wp cornell-alumni.test -- cornell events cron --off
 

To run a full sync, imports all events from the last sync time

terminus wp cornell-alumni.test -- cornell events sync --all

 

To turn cron back on

terminus wp cornell-alumni.test -- cornell events cron --on

Live

If you want to get the time of last sync (in Unix Timestamp format)

terminus wp cornell-alumni.live -- option get cornell_events_last_sync

 

To set the last sync time to sync events from an earlier date (in Unix Timestamp format)

terminus wp cornell-alumni.live -- option update cornell_events_last_sync 1510185600

 

To turn cron off (should be done before running manual sync)

terminus wp cornell-alumni.live -- cornell events cron --off

 

To run a full sync, imports all events from the last sync time

terminus wp cornell-alumni.live -- cornell events sync --all

 

To turn cron back on

terminus wp cornell-alumni.live -- cornell events cron --on

 

 

Run all command in one line separated by colon:  (Remember to replace the time)

terminus wp cornell-alumni.live -- option update cornell_events_last_sync 1510185600;terminus wp cornell-alumni.live -- cornell events cron --off;terminus wp cornell-alumni.live -- cornell events sync --all;terminus wp cornell-alumni.live -- cornell events cron --on