---
title: "Using Drush with Content Hub"
date: "2024-02-14T06:18:38+00:00"
summary: "Streamline your Drupal content management with Drush and Content Hub. Discover powerful commands for seamless content syndication, entity management, and webhook operations across publisher and subscriber sites."
image:
type: "page"
url: "/drupal-starter-kits/add-ons/content-hub/using-drush-content-hub"
id: "8a2c79a6-80f0-43af-a6ef-3570b9ecf803"
---

Content Hub includes several [Drush](https://github.com/drush-ops/drush) commands for both normal product use and for more advanced administration. You can use the commands to administer your content from the command line. For more information about Drush, see [Introduction to Drush](https://acquia.my.site.com/s/article/360005903154-Introduction-to-Drush).

Note

Drush versions 10.3.3 and later have enhanced queue handling that improves the export and import processes in Content Hub.

Drush commands
--------------

Drush commands

Description

Introduced in module version

Drush 9.x compatible

Drush 10.x compatible

Drush 11.x compatible

Site role

Notes

[acquia:contenthub:client](#acquia-contenthub-client)

Retrieves client details and metadata using the client UUID or name.

3.8.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-contenthub-client)

[acquia:contenthub:queues:syndications](#acquia-contenthub-queues-syndications)

Performs changes to the Content Hub service queue items.

3.8.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-contenthub-queues-syndications)

[acquia:contenthub:purge:post-operations](#acquia-contenthub-purge-post-operations)

Performs post-purge operations.

3.8.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-contenthub-purge-post-operations)

[acquia:contenthub-cdf-diff](#acquia-contenthub-cdf-diff)

Compares CDF between local and remote entities and prints the differences.

3.8.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-contenthub-cdf-diff)

[acquia:contenthub:reoriginate](#acquia-contenthub-reoriginate)

Re-originates entities in Content Hub from one source to another.

3.1.0

**✓**

**✓**

**✓**

Publisher

[See arguments](#acquia-contenthub-reoriginate)

[acquia:contenthub:reindex](#acquia-contenthub-reindex)

Initiates a re-indexing operation in Content Hub.

3.1.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-contenthub-reindex)

[acquia:contenthub:entity-scan:orphaned](#acquia-contenthub-entity-scan-orphaned)

Scans Content Hub for orphaned entities and displays the ones that are not associated with any registered client.

3.1.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-contenthub-entity-scan-orphaned)

[acquia:contenthub-update-client-metadata](#acquia-contenthub-update-client-metadata)

Updates the client metadata in the Content Hub service.

3.3.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-contenthub-update-client-metadata)

[acquia:contenthub-dashboard-allowed-origins](#acquia-contenthub-dashboard-allowed-origins)

Retrieves the publisher-registered webhooks and stores them within the Drupal configuration.

3.0.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-contenthub-dashboard-allowed-origins)

[acquia:sync-interests](#acquia-sync-interests)

Synchronizes the interests list of a webhook with the entity tracking tables.

3.0.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-sync-interests)

[acquia:contenthub-webhook-interests-delete](#acquia-contenthub-webhook-interests-delete)

Deletes interests from a webhook.

3.0.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-contenthub-webhook-interests-delete)

[acquia:contenthub-webhook-interests-add](#acquia-contenthub-webhook-interests-add)

Adds interests to a webhook.

3.0.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-contenthub-webhook-interests-add)

[acquia:contenthub:client-delete](#acquia-contenthub-client-delete)

Deletes clients using names or UUIDs.

3.7.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-contenthub-client-delete)

[acquia:contenthub:client-update](#acquia-contenthub-client-update)

Updates the Content Hub details.

3.4.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-contenthub-client-update)

[acquia:contenthub-webhook-interests-list](#acquia-contenthub-webhook-interests-list)

Displays the list of interest for the registered webhook.

3.3.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-contenthub-webhook-interests-list)

[acquia:contenthub-webhooks-list](#acquia-contenthub-webhooks-list)

Displays the list of registered webhooks.

3.5.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-contenthub-webhooks-list)

[acquia:contenthub-import-queue-run](#acquia-contenthub-import-queue-run)

Runs the Content Hub subscriber import queue.

3.3.0

**✓**

**✓**

**✓**

Subscriber

[See arguments](#acquia-contenthub-import-queue-run)

[acquia:contenthub-export-queue-run](#acquia-contenthub-export-queue-run)

Runs the Content Hub publisher export queue.

3.3.0

**✓**

**✓**

**✓**

Publisher

[See arguments](#acquia-contenthub-export-queue-run)

[acquia:contenthub:enable-syndication](#acquia-contenthub-enable-syndication)

Enables syndication for a comma-separated list of UUIDs.

3.3.0

**✓**

**✓**

**✓**

Subscriber

[See arguments](#acquia-contenthub-enable-syndication)

[acquia:contenthub:disable-syndication](#acquia-contenthub-disable-syndication)

Disables syndication for a comma-separated list of UUIDs.

3.3.0

**✓**

**✓**

**✓**

Subscriber

[See arguments](#acquia-contenthub-disable-syndication)

[acquia:contenthub-audit-publisher](#acquia-contenthub-audit-publisher-2)

Checks the published entities and compares them with the publisher to ensure consistency

3.0.0

**✓**

**𐄂**

**✓**

Publisher

_Contains deprecated functions, therefore Drush 10.x is incompatible._

[See arguments](#acquia-contenthub-audit-publisher-2)

[acquia:contenthub-audit-subscriber](#acquia-contenthub-audit-subscriber-2)

Creates a manifest file of entities to import and delete

3.0.0

**✓**

**✓**

**✓**

Subscriber

[See arguments](#acquia-contenthub-audit-subscriber-2)

[acquia:contenthub-enqueue-by-filters](#acquia-contenthub-enqueue-by-filters)

Adds entities to the import queue on a subscriber site based on the associated filters, except the default filter

3.0.0

**✓**

**✓**

**✓**

Subscriber

[See arguments](#acquia-contenthub-enqueue-by-filters)

[acquia:contenthub:entity-scan:filter](#acquia-contenthub-entity-scan-filter)

Helper Drush command for debugging

3.0.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-contenthub-entity-scan-filter)

[acquia:contenthub-export-local-cdf](#acquia-contenthub-export-local-cdf)

Generates a CDF document from a manifest file

3.0.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-contenthub-export-local-cdf)

[acquia:contenthub-filter-details](#acquia-contenthub-filter-details-2)

Lists the details of a filter

3.0.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-contenthub-filter-details-2)

[acquia:contenthub-filters](#acquia-contenthub-filters-2)

Lists the available Cloud filters

3.0.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-contenthub-filters-2)

[acquia:contenthub-filters:attach](#acquia-contenthub-filters-attach-2)

Attaches a filter to the website

3.0.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-contenthub-filters-attach-2)

[acquia:contenthub-filters:detach](#acquia-contenthub-filters-detach-2)

Detaches a filter from the website

3.0.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-contenthub-filters-detach-2)

[acquia:contenthub-import-local-cdf](#acquia-contenthub-import-local-cdf)

Imports entities from a CDF document

3.0.0

**✓**

**✓**

**✓**

Subscriber

[See arguments](#acquia-contenthub-import-local-cdf)

[acquia:contenthub-publisher-upgrade](#acquia-contenthub-publisher-upgrade)

Publisher upgrade command

3.0.0

**✓**

**✓**

**✓**

Publisher

_Note: This command is deprecated._

_Do not run as a standalone command_

[acquia:contenthub-subscriber-upgrade](#acquia-contenthub-subscriber-upgrade)

Subscriber upgrade command

3.0.0

**✓**

**✓**

**✓**

Subscriber

_Note: This command is deprecated._

_Do not run as a standalone command_

[acquia:contenthub-fix-config-entities-with-null-uuids](#acquia-contenthub-fix-config-entities-with-null-uuids)

Assigns randomly generated `UUIDs` to configuration entities with `NULL` `UUIDs`

3.0.0

**✓**

**✓**

**✓**

\-

_Experimental: Use with caution_

[acquia:contenthub-remote](#acquia-contenthub-remote)

Prints the CDF from a remote source (Content Hub)

3.0.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-contenthub-remote)

[acquia:contenthub:remote-settings](#acquia-contenthub-remote-settings)

Retrieves subscription settings stored in Content Hub

3.0.0

**✓**

**✓**

**✓**

Publisher, Subscriber

N/A

[acquia:contenthub-webhooks](#acquia-contenthub-webhooks-2)

Perform a webhook management operation

3.0.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-contenthub-webhooks-2)

[acquia:contenthub-webhook-interests-purge](#acquia-contenthub-webhook-interests-purge)

Performs a webhook interest list purge operation for the current site

3.0.0

**✓**

**✓**

**✓**

Subscriber

[acquia:contenthub-connect-site](#acquia-contenthub-connect-site)

Connects a site with Content Hub

3.0.0

**✓**

**✓**

**✓**

Publisher, Subscriber

N/A

[acquia:contenthub-delete](#acquia-contenthub-delete)

Deletes a single entity from the Content Hub

3.0.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-contenthub-delete)

[acquia:contenthub-disconnect-site](#acquia-contenthub-disconnect-site-2)

Disconnects a site with Content Hub

3.0.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-contenthub-disconnect-site-2)

[acquia:contenthub-list](#acquia-contenthub-list)

List entities from the Content Hub using the `listEntities()` method

3.0.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-contenthub-list)

[acquia:contenthub-list-queue-items](#acquia-contenthub-list-queue-items)

Prints the content of the import/export queue

3.0.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-contenthub-list-queue-items)

[acquia:contenthub-local](#acquia-contenthub-local)

Prints the CDF from a local source (Drupal website)

3.0.0

**✓**

**✓**

**✓**

Publisher, Subscriber

_From version 3.3.x onwards, the entity-type argument is optional when the entity UUID is passed_

[acquia:contenthub-purge](#acquia-contenthub-purge)

Purges all entities from Content Hub

3.0.0

**✓**

**✓**

**✓**

Publisher, Subscriber

_Use with caution: This command can remove content from Content Hub._

[See arguments](#acquia-contenthub-purge)

[acquia:contenthub-regenerate-secret](#acquia-contenthub-regenerate-secret)

Regenerates the Shared Secret used for webhook verification

3.0.0

**✓**

**✓**

**✓**

Publisher, Subscriber

N/A

[acquia:contenthub-restore](#acquia-contenthub-restore)

Restores the backup taken by a previous execution of the `purge` command

3.0.0

**✓**

**✓**

**✓**

Publisher, Subscriber

_Use with caution: This command can remove content from Content Hub._

[See arguments](#acquia-contenthub-restore)

[acquia:contenthub-update-secret](#acquia-contenthub-update-secret)

Updates the Shared Secret used for webhook verification

3.0.0

**✓**

**✓**

**✓**

Publisher, Subscriber

N/A

[acquia:contenthub-audit-entity](#acquia-contenthub-audit-entity)

Audits an entity for differences with the existing CDF in Content Hub

3.0.0

**✓**

**✓**

**✓**

Publisher

[See arguments](#acquia-contenthub-audit-entity)

[acquia:contenthub-settings](#acquia-contenthub-settings)

Gets Content Hub settings from the different providers and determines the active configuration

3.0.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-contenthub-settings)

[acquia:contenthub-re-queue](#acquia-contenthub-re-queue)

Re-queues entities on publisher or subscriber site

3.0.0

**✓**

**✓**

**✓**

Publisher, Subscriber

[See arguments](#acquia-contenthub-re-queue)

Troubleshooting Drush commands
------------------------------

If you have enabled Content Hub, but Drush commands fail with the message `Command [command_name] needs the following extension(s) enabled to run: acquia_contenthub`, execute the following command to try to resolve the issue:

    drush en acquia_contenthub -y drush cr

If Drush commands for Content Hub continue to fail, [create a Support ticket](/service-offerings/support#contact-acquia-support).

Command details
---------------

### `acquia:contenthub:client`

Retrieve client details and metadata using the client UUID or name.

Alias

Arguments

`ach-client`

*   The required argument is as follows:
    
    *   `$client_uuid_or_name`: Client UUID or client name.
        

### `acquia:contenthub:queues:syndications`

Performs changes to the Content Hub service queue items.

Alias

Arguments

`ach-qs`

Delete operation: Deletes items from the Content Hub service queue.

*   The required arguments are as follows:
    
    *   `$op`: The delete operation.
        
*   You can pass an array of options to process data:
    
    *   `--all`: Deletes all the items in service queue.
        
    *   `--syndication-ids`: Deletes items from the service queue by using comma-separated syndication IDs.
        
    *   `--entity-uuids`: Deletes items from the service queue by using comma-separated entity UUIDs.
        

`ach-qs`

Update operation: Updates items in the service queue.

*   The required arguments are as follows:
    
    *   `--syndication-id`: The queue id of the item to be updated.
*   You can pass an array of options to process data:
    
    *   `--state`: Updates the state of the item in the service queue.
    *   `--reason`: Updates the reason for the item in the service queue.
    *   `--visibility-timeout`: Updates the visibility timeout for the item in the service queue.

`ach-qs`

List operation: Displays service queue items in tabular or JSON format.

*   You can pass an array of options to process data:
    *   `--state`: Adds a state filter when fetching items from the service queue.
    *   `--syndication-ids`: Fetches items from the service queue for specified syndication IDs and displays them in a table.
    *   `--json`: Displays the result in JSON format.

`ach-qs`

Describe operation: Displays details for the specified item.

*   The required arguments are as follows:
    
    *   `--syndication-id`: The queue id of the item to be updated.
*   You can pass an array of options to process data:
    
    *   `--add-cdf-details`: Adds the CDF of the item to the output.

### `acquia:contenthub:purge:post-operations`

Performs post-purge operations. These operations include deletion of the export and import queues, and registration of deleted client CDFs.

Alias

Arguments

`ach-ppo`, `ach-purge-post-operations`

The required arguments are as follows:

*   `$op`: The publisher or the subscriber operation.
    

### `acquia:contenthub-cdf-diff`

Compares CDF between local and remote entities and prints the differences.

Alias

Arguments

`ach-cdf-diff`

The required arguments are as follows:

*   `$entity_id`: Entity identifier or entity UUID.
    
*   `$entity_type`: Entity type to load. Omit this argument if you provide the entity UUID.
    

### `acquia:contenthub:reoriginate`

Re-originates entities in Content Hub from one source to another. This deletes the original sources after recreation if they did not exist initially, unless the `--no-origin-delete` option is used.

Alias

Arguments

`ach-reoriginate`

*   `origin_list`: A comma-separated list of source origin UUIDs.
    
*   `target`: The target origin UUID.
    
*   `--no-origin-delete`: To keep the original sources after recreation if they did not exist initially.
    

### `acquia:contenthub:reindex`

Initiates a re-indexing operation in Content Hub. This takes some time depending on the number of entities involved.

Alias

Arguments

`ach-reindex`

N/A

### `acquia:contenthub:entity-scan:orphaned`

Scans Content Hub for orphaned entities and displays the ones that are not associated with any registered client.

Alias

Arguments

`ach-eso`

*   `--with-db`: To display the orphaned entities present in the current website's tracking table.
    
*   `--interest-list`: To display the orphaned entities present in the current website's interest list.
    
*   `--delete`: To display the orphaned entities present in the current website's interest list and deletes them if there is only a single publisher.
    
*   `--json`: To give the output in JSON format.
    

### `acquia:contenthub-update-client-metadata`

Updates the client metadata in the Content Hub service.

Alias

Arguments

`ach-ucm`

N/A

### `acquia:contenthub-dashboard-allowed-origins`

Retrieves the publisher-registered webhooks and stores them within the Drupal configuration.

Alias

Arguments

*   `ach-dashboard-allowed-origins`, `ach-dao`

N/A

### `acquia:sync-interests`

Synchronizes the interests list of a webhook with the entity tracking tables.

Alias

Arguments

`ach-wi-sync` _(Content Hub 3.x and later)_

N/A

### `acquia:contenthub-webhook-interests-delete`

Deletes interests from a webhook.

Alias

Arguments

`ach-wi-del` _(Content Hub 3.x and later)_

*   You can pass an array of options to process data:
    *   `--webhook_url`: The webhook that is used.
    *   `--uuids`: The entities against which the operation is performed. These are separated by commas.

### `acquia:contenthub-webhook-interests-add`

Adds interests to a webhook.

Alias

Arguments

`ach-wi-add` _(Content Hub 3.x and later)_

*   You can pass an array of options to process data:
    *   `--webhook_url`: The webhook that is used.
    *   `--uuids`: The entities against which the operation is performed. These are separated by commas.
    *   `--site_role`: The site against which the operation is performed.

### `acquia:contenthub:client-delete`

Deletes clients using names or UUIDs.

Alias

Arguments

`ach-cd` _(Content Hub 3.7.0 and later)_

*   You can pass an array of options to process data:
    *   `--names`: To delete the Acquia Content Hub Client using names.
    *   `--uuids`: To delete the Acquia Content Hub Client using UUIDs.
    *   `--ignore-origin`: To ignore the origin check when deleting the client CDF.

### `acquia:contenthub:client-update`

Updates the Content Hub details.

Alias

Arguments

`ach-cu` _(Content Hub 3.4.0 and later)_

*   You can pass an array of options to process data:
    *   `--name new_name`: To change the client name to new\_name.

### `acquia:contenthub-webhook-interests-list`

Displays the list of interest for the registered webhook.

Alias

Arguments

`ach-wi-list` (_Content Hub 3.3.x and later_)

*   You can pass an array of options to process data:
    *   `drush ach-wi-list --site-role=subscriber`: To display list of interests for the current subscriber site in table format.
    *   `--webhoo-url=http://example.site`: To display list of interest for specified webhook url and site role.
    *   `--uuid=fffbbc03-e748-473a-a5ca-cc1df2a2a744`: To display the interest details of specified uuid.
    *   `--format-json`: To display list of interests for the subscriber site in json format.
    *   `--reason=ab8902ff-3548-4861-bb95-a83c81fdaa40`: To display list of interest list matching specified reason uuid.
    *   `--syndication-status=EXPORT-SUCCESSFUL`: To display list of interests for the subscriber having EXPORT-SUCCESSFUL syndication status.
    *   `--disable-syndication=true`: To display list of disabled interest entities for the subscriber.

### `acquia:contenthub-webhooks-list`

Displays the list of registered webhooks.

Alias

Arguments

`ach-wh-list`, `acquia-contenthub-webhooks-list` (_Content Hub 3.5.x and later_)

*   You can pass an array of options to process data:
    *   `drush ach-wh-list`: To print webhook details in table format.
    *   `--format=json`: To print webhook details in json format.
    *   `--field=uuid`: To print webhook uuids in table format.
    *   `--format=table --fields=client_uuid,uuid`: To print webhook's client\_uuids and uuids in table format.

### `acquia:contenthub-import-queue-run`

Runs the Content Hub subscriber import queue.

Alias

Arguments

`ach-import` (_Content Hub 3.3.x and later_)

*   This command is available in the `acquia_contenthub_subscriber` module.
*   You can pass an array of options to process the data:
    *   `--time-limit`: The maximum number of seconds allowed to run the queue.
    *   `--items-limit`: The maximum number of items allowed to run the queue.

`ach-import` (_Content Hub 3.8.x and later_)

*   This command is available in the `acquia_contenthub_subscriber` module.
*   You can pass an array of options to process the data:
    *   `--time-limit`: The maximum number of seconds allowed to run the queue.
    *   `--items-limit`: The maximum number of items allowed to run the queue.
    *   `--service-queue-item-state`: Filters service queue items by state, such as **queued** or **failed**.
        

### `acquia:contenthub-export-queue-run`

Runs the Content Hub publisher export queue.

Alias

Arguments

`ach-export` (_Content Hub 3.3.x and later_)

*   This command is available in the `acquia_contenthub_publisher` module.
*   You can pass an array of options to process the data:
    *   `--time-limit`: The maximum number of seconds allowed to run the queue.
    *   `--items-limit`: The maximum number of items allowed to run the queue.

### `acquia:contenthub:enable-syndication`

Enables syndication for a comma-separated list of UUIDs.

Alias

Arguments

`ach-es` (_Content Hub 3.3.x and later_)

*   This command requires at least one option or a list of comma-separated options:`$uuid`
*   `uuid`: The unique ID of the entity being enabled.

### `acquia:contenthub:disable-syndication`

Disables syndication for a comma-separated list of UUIDs.

Alias

Arguments

`ach-ds` (_Content Hub 3.3.x and later_)

*   This command requires at least one option or a list of comma-separated options:`$uuid`
*   `uuid`: The unique ID of the entity being disabled.

### `acquia:contenthub-audit-publisher`

Checks the published entities and compares them with what exists in the Content Hub publisher to ensure consistency.

Alias

Arguments

`ach-audit-publisher`, `ach-ap`

This command takes the following argument:

*   `entity-type`

You can pass an array of options to process the data:

*   `publish`: Republish inconsistent entities to Content Hub
*   `status`: The export status of the entities to audit, defaults to `EXPORTED`. Possible values include:
    *   `EXPORTED`
    *   `INITIATED`
    *   `REINDEX`
    *   `QUEUED`

### `acquia:contenthub-audit-subscriber`

Creates a manifest file of entities to import and delete by checking the filter configuration and verifying which entities from Content Hub matches those filters.

Alias

Arguments

`ach-audit-subscriber`, `ach-as`

This command takes the following arguments:

*   `help`: Checks imported entities and compares them to Content Hub
*   `manifest_file`: The file name, including path, to write the manifest to

You can pass an array of options to process the data:

*   `types[=TYPES]`: Comma-separated list of entity types to search and delete

Note

This command only gathers information about changes you can make to entities on your website.

### `acquia:contenthub-enqueue-by-filters`

Adds entities to the import queue on a subscriber site based on the associated filters, except the default filter.

Alias

Arguments

`ach-enqueue-by-filters`, `ach-enfi`

*   `--filter-uuids[=FILTER-UUIDS]` Creates import queue items based on specified filter uuids, where `FILTER-UUIDS` is a comma-separated list of filter uuids

### `acquia:contenthub:entity-scan:filter`

Takes an entity UUID and compares it against the existing Cloud Filters, returning a list of filters and sites that the entity matches.

Run `--help` to review the help information of the command.

Option to `--rebuild-cache` to initiate a depcalc cache rebuild using the tracking table before running the scan. This may take a few minutes to complete.

Alias

Arguments

`ach-es-f`, `ach-esf`

*   Requires one argument:`$uuid`
*   `uuid` is the exact `uuid` of the entity being inspected

### `acquia:contenthub-export-local-cdf`

Generates a CDF document from a manifest file and requires the location of a YAML `$manifest`.

Alias

Arguments

`ach-elc`

*   The `$manifest` file format is a `yml` file you must create using the following format:
    
        entities:
          - node:e2ea160b-3512-4302-ad44-0b7113887922
          - node:9ed840bc-3205-476b-ac37-2da260f9808a
          - node:55f2b0f8-aeb2-490f-b5ba-998aef48fb7f
          - media:44bbe986-989e-493f-8691-cd0d39285aa9
    

### `acquia:contenthub-filter-details`

Lists the details of a filter.

Alias

Arguments

`ach-cfds`

This command takes the following argument:

*   `UUID`

### `acquia:contenthub-filters`

Lists the available Cloud filters.

Alias

Arguments

`ach-cf`

You can pass an array of options to control the output:

*   `--webhook[=WEBHOOK_URL]` allows the user to define a webhook to display related filters
*   `--interactive` allows the user to select the webhook to display related filters

### `acquia:contenthub-filters:attach`

Attaches a filter to a website.

Alias

Arguments

`ach-cfa`

*   Requires two arguments:`$uuid` and `$url`:
*   `uuid` is the exact `uuid` of the filter you want to attach
*   `url` is the webhook URL you want to attach the filter to

### `acquia:contenthub-filters:detach`

Detaches a filter from a website.

Alias

Arguments

`ach-cfd`

*   Requires two arguments:`$uuid` and `$url`:
*   `uuid` is the exact `uuid` of the filter you want to detach
*   `url` is the webhook URL you want to detach the filter from

### `acquia:contenthub-import-local-cdf`

Imports entities from a CDF document.

Alias

Arguments

`ach-ilc`

*   Requires a `$location` of a `json` file containing a `cdf` of entities

### `acquia:contenthub-publisher-upgrade`

Publisher upgrade command.

Alias

Arguments

`ach-publisher-upgrade`, `ach-puup`

N/A

### `acquia:contenthub-subscriber-upgrade`

Subscriber upgrade command.

Alias

Arguments

`ach-subscriber-upgrade`, `ach-suup`

N/A

### `acquia:contenthub-fix-config-entities-with-null-uuids`

Assigns randomly generated `UUIDs` to configuration entities with `NULL` `UUIDs` (_Experimental: Use with caution_).

Alias

Arguments

`ach-fix-null-uuids`

N/A

### `acquia:contenthub-remote`

Prints the CDF from a remote source (Content Hub).

Alias

Arguments

`ach-re`

`uuid`: The UUID of the entity

### `acquia:contenthub:remote-settings`

Retrieves the account details from Content Hub and presents it in an easily readable, formatted table. Information includes the subscription ID, registered webhooks, registered clients, and webhook filter assignments.

Alias

Arguments

`ach-rs`

N/A

### `acquia:contenthub-webhooks`

Performs a webhook management operation.

Alias

Arguments

`ach-wh`

This command takes the following argument:

*   `op`: The operation to use: `register`, `unregister`, or `list`.
    
    Requires the `webhook_url` as an option.
    

### `acquia-contenthub-webhook-interests-purge`

Deletes the current webhook and reassigns all existing filters of the current webhook to the newly created webhook. Webhook uuid changes so it must be updated in the configuration. If the configuration is saved in the database, no further action is needed. Otherwise, update the webhook in settings.php or environment variables depending on how the configuration is managed. This deletes everything from the import tracking table and the import queue.

Alias

Arguments

`ach-wi-purge`

N/A

### `acquia:contenthub-connect-site`

Connects client to Content Hub.

Alias

Arguments

`ach-connect`

N/A

### `acquia:contenthub-delete`

Deletes a single entity from Content Hub.

Alias

Arguments

`ach-del`

*   `UUID`: The UUID of the entity.
*   `--ignore-origin`: Ignores the origin check when deleting an entity.
*   `--no-propagate`: Prevents the entity deletion event from propagating to subscriber sites.

### `acquia:contenthub-disconnect-site`

Disconnect the client from Content Hub.

Alias

Arguments

`ach-disconnect`

*   `--no-propagate`: Prevents the entity deletion event from propagating to subscriber sites.

### `acquia:contenthub-list`

List content entities that exist in Content Hub.

Alias

Arguments

`ach-list`

You can pass an array of options to control the output:

*   `--limit`: The number of entities to be listed.
    
*   `--start`: The offset to start listing the entities (useful for pagination).
    
*   `--origin`: The client’s origin UUID.
    
*   `--language`: The language used to filter field values. For example, `en`.
    
*   `--attributes`: The attributes to display for all listed entities.
    
*   `--type`: The type of CDF.
    
*   `--filters`: Filters entities as per a set of conditions. This is written as a key=value pair. For example, `--filters=title=New*, status=1`.
    
    You can also use regex. **Language option is required to use this**.
    
*   `--format`: The format for output. For example, `--format=json`.
    
*   `--decode`: Decodes the **metadata** data element to make it easier to understand the content of each CDF entity stored in Content Hub.
    

### `acquia:contenthub-list-queue-items`

On publisher, the command prints the content of the `acquia_contenthub_publish_export` queue. On subscriber, the command prints the `acquia_contenthub_subscriber_import` queue. If the site has dual configuration, import/export value must pass the `queue` option. By default, the queue option will have an `export` value.

Alias

Arguments

`ach-lqi`

You can pass an array of options to control the output:

*   `type`: A string value of a valid entity type
*   `uuid`: A string value of a valid entity uuid
*   `limit`: An integer value to specify the number of items to be returned
*   `queue`: Available only if the site has dual configurations. Expects the import/export value. The default value is export

### `acquia:contenthub-local`

Prints an entity (in CDF format) from a local source (a Drupal website).

Alias

Arguments

`ach-lo`

*   `entity-type`
*   `entity-id`: The ID or UUID of the entity. You can also run `ach-ent` which is [defined here](#acquia-contenthub-entity) using the `local` operation.
    
    Note
    
    From version 3.3.x onwards, the `entity-type` argument is optional when entity UUID is passed as an argument.
    

### `acquia:contenthub-purge`

(_Developer only_): Deletes all entities from Content Hub.

Important

The `ach-purge` command purges all entities from Content Hub. You must run this command cautiously. This command helps to recover from a disaster state where other recovery steps fail. This requires re-exporting all entities that are currently in the Content Hub service. Every subsequent execution of this command will override the backup created by the previous call.

To remove content from a healthy subscription, use `ach-del`.

Alias

Arguments

`ach-purge`

*   `api`: The Content Hub API key   
     
*   `secret`: Your secret key

When this command is run, a message like the following displays:

    You are about to DROP all tables in your 'MY-WEBSITE' database. Do
    you want to continue? (y/n):

You must confirm before Content Hub will purge the contents.

### `acquia:contenthub-regenerate-secret`

Regenerates the shared secret used for webhook verification.

Alias

Arguments

`ach-regsec`

N/A

### `acquia:contenthub-restore`

(_Developer only_): Restores the backup taken by a previous execution of the `purge` command.

Alias

Arguments

`ach-restore`

*   `api`: The Content Hub API key
*   `secret`: Your secret key

### `acquia:contenthub-update-secret`

Updates the shared secret used for webhook verification.

Alias

Arguments

`ach-upsec`

N/A

### `acquia:contenthub-audit-entity`

Audits an entity for differences with the existing CDF in Content Hub. It is a publisher command, which is only available if the site has the `acquia_contenthub_publisher` module enabled. It lists the entity and all its dependencies, and compares that data with the one stored remotely in Content Hub. It provides the option to republish that entity and all its dependencies if there are differences.

Alias

Arguments

`ach-audit-entity, ach-ae`

This command takes the following arguments:

*   `drush acquia:contenthub-audit-entity node 123`: Audits the node with nid = 123 and all its dependencies.
*   `drush ach-ae node 53fd2ed2-5d29-4028-9423-0713ef2f82b3`: Audits the node with UUID = 53fd2ed2-5d29-4028-9423-0713ef2f82b3.

### `acquia:contenthub-settings`

Gets Content Hub settings from the different providers and determines the active configuration with any override information.

Alias

Arguments

`ach-chs`

This command takes the following arguments:

*   `drush ach-chs`
*   `--show-secret-key` shows the unmasked secret key set

### `acquia:contenthub-re-queue`

Re-queues entities on publisher or subscriber sites. Provide at least one option when running this command. This command does not run the export or import queues.

Alias

Arguments

`ach-rq`

This command takes the following argument:

*   `operation`: Specifies the operation to perform.
    
    Valid values:
    
    *   `export`: For publisher sites.
    *   `import`: For subscriber sites.

This command requires at least one of the following options:

*   `type`: The string value of a valid entity type.
*   `bundle`: The string value of a valid entity bundle.
*   `uuid`: The string value of a valid entity uuid.
*   `use-tracking-table`: The boolean option to re-queue entities in the tracking table. If omitted, all entities of the provided type and bundle are enqueued..
*   `only-queued-entities`: The Boolean option to re-queue only entities with **queued** status in the tracking table.

For subscribers only during the Pull Syndication mode:

*   `--service`: Indicates that Pull Syndication mode is enabled.
    
*   `--reason`: Specifies the reason for re-enqueuing entities. The default value is `manual`.
    
*   `--action`: Specifies the action to perform when re-enqueuing entities. The default value is `entity_create`.
    
    Valid values:
    
    *   `entity_create`
        
    *   `entity_update`
        
    *   `entity_delete`