CMS Content Sync supports Drush Version 8 and 9.

The following Drush commands are available:

Export configuration

Exports the complete pool and flow configuration of this site to the Sync Core.

Drush 8

  • content-sync-configuration-export
    • Aliases: cse, csce

Drush 9/10

  • cms_content_sync:configuration-export
    • Aliases: cse, csce



Sync core login

Trigger the Drupal ↔ Sync Core login for this site. This is helpful for troubleshooting.

Drush 8

  • content-sync-sync-core-login
    • Aliases: csscl

Drush 9/10

  • cms_content_sync:sync-core-login
    • Aliases: csscl



Pull

Kindly ask the Sync Core to pull all entities for a specific flow, or to force pull one specific entity.

Drush 8

  • content-sync-pull
    • Alias: cs-pull
    •  Usage:
      • drush cs-pull example_flow
        • Pulls all entities from the example flow.
      • drush cs-pull example_flow --force
        • Pull all entities from the "example_flow" and force entities which already have been pulled to be updated as well.
      • drush cs-pull example_flow --entity_type="node" --entity_uuid="3a150294-90eb-48c2-911d-672043a45683"
        • Force pull the node having the uuid 3a150294-90eb-48c2-911d-672043a45683 from the example flow.

Drush 9/10

  • cms_content_sync:pull
    • Alias: cs-pull
    • Usage:
      • drush cms_content_sync:pull example_flow
        • Pulls all entities from the example flow.
      • drush cms_content_sync:pull example_flow --force
        • Pull all entities from the "example_flow" and force entities which already have been pulled to be updated as well.
      • drush cms_content_sync:pull example_flow --entity_type="node" --entity_uuid="3a150294-90eb-48c2-911d-672043a45683"
        • Force pull the node having the uuid 3a150294-90eb-48c2-911d-672043a45683 from the example flow.



Push

Push all entities for a specific flow.

Drush 8

  • content-sync-push
    • Alias: cs-push
    • Usage:
      • drush cs-push example_flow
        • Push all entities from the "example_flow" which have push configured as "automatically".
      • drush cs-push example_flow --push_mode="automatic_manual"
        • Push all entities from the "example_flow" which have push configured as "automatically" or "manually". Only exports manually exported entities which have not been exported before.
      • drush cs-push example_flow --push_mode="automatic_manual_force"
        • Push all entities from the "example_flow" which have push configured as "automatically" or "manually". Also exports entities which have not been exported before by the manual push.

Drush 9/10

  • cms_content_sync:push
    • Alias: cs-push
    • Usage:
      • drush cms_content_sync:push example_flow
        • Push all entities from the "example_flow" which have push configured as "automatically".
      • drush cms_content_sync:push example_flow --push_mode="automatic_manual"
        • Push all entities from the "example_flow" which have push configured as "automatically" or "manually". Only exports manually exported entities which have not been exported before.
      • drush cms_content_sync:push example_flow --push_mode="automatic_manual_force"
        • Push all entities from the "example_flow" which have push configured as "automatically" or "manually". Also exports entities which have not been exported before by the manual push.



Reset status entities

Reset the status entities for a specific or all pool/s.

Drush 8

  • content-sync-reset-status-entities
    • Aliases: csrse

Drush 9/10

  • cms_content_sync:reset-status-entities
    • Aliases: csrse



Warning
By resetting the status of all entities, the date of the last import and the date of the last export will be reset. The dates will no longer be displayed until the content is imported or exported again and all entities will be exported / imported again at the next synchronization regardless of whether they have changed or not.




Check entity flags

Check for the set entity status flags or a specific entity

Drush 8

  • content-sync-check-entity-flags
    • Aliases: cscef

Drush 9/10

  • cms_content_sync:check-entity-flags
    • Aliases: cscef



Force entity deletion

Part of the cms_content_sync_developer submodule.

Deletes an entity, or all entities for a specific bundle, without triggering the syndication.

Drush 8

  • content-sync-force-entity-deletion
    • Aliases: csfed
    • Usage:
      • drush csfed node --entity_uuid="06d1d5b8-5583-4929-9f7c-c85cfe59440b
        • Force delete the node having the uuid: "06d1d5b8-5583-4929-9f7c-c85cfe59440b".
      • drush csfed node --bundle="basic_page"
        • Force delete all nodes having the bundle basic_page.

Drush 9/10

  • cms_content_sync_developer:force_entity_deletion
    • Aliases: csfed
    • Usage:
      • drush cms_content_sync_developer:force_entity_deletion node --entity_uuid="06d1d5b8-5583-4929-9f7c-c85cfe59440b"
        • Force delete the node having the uuid: "06d1d5b8-5583-4929-9f7c-c85cfe59440b".
      • drush cms_content_sync_developer:force_entity_deletion node --bundle="basic_page"
        • Force delete all nodes having the bundle basic_page.