---
title: "Using Drush cron on Cloud Platform environments"
date: "2024-02-14T06:18:38+00:00"
summary: "Learn how to run Drush cron on Acquia Cloud Platform environments with step-by-step instructions for developers and site admins."
image:
type: "page"
url: "/acquia-cloud-platform/using-drush-cron-cloud-platform-environments"
id: "a18108d0-1657-4881-baf7-9babd0f1c73d"
---

On Cloud Platform environments, cron can be triggered using Drush in addition to [using scheduled jobs](/acquia-cloud-platform/manage-apps/cron).

Note

The [current Drupal version](/service-offerings/guide/software-life-cycle#supported-drupal-version) requires Drush version 11 or later. Newer versions of Drush, that is, version 11 and later, must be installed via Composer. Acquia does not manage the update to the newer versions. For more information, see [About Drush on Cloud Platform](/acquia-cloud-platform/manage-apps/command-line/drush).

To use Drush cron, select from the following methods:

*   [Using the Cloud Platform wrapper script for Drush cron](/acquia-cloud-platform/manage-apps/cron#cloud-cron-wrapper-script)
*   [Running Drush cron directly](#cloud-drush-cron-directly)

In each of the following examples:

*   `[app]` is the name of your application on Cloud Platform.
*   `[env]` is your environment (typically one of `dev`, `test`, or `prod`).
*   `[site_URL]` is your environment’s URL (as listed on the **Cloud** > **Domains** page). If you are using Drupal multisite, your cron jobs are specific to each website in the multisite installation. Use the URL of the website in the installation you want to target.

Running Drush cron directly
---------------------------

### Cloud Next

You can execute alternative Drush cron commands using the following syntax:

    drush --uri=http://[site-uri] -d -v cron &>> /shared/logs/drush-cron.log

### Cloud Classic

You can execute alternative Drush cron commands using the following syntax:

    drush --uri=http://[site-uri] -d -v cron &>> /var/log/sites/${AH_SITE_NAME}/logs/$(hostname -s)/drush-cron.log

In the preceding example, `&>> /var/log/sites/${AH_SITE_NAME}/logs/$(hostname -s)/drush-cron.log` logs the cron output to a `drush-cron.log` file in the infrastructure’s logs directory.

Cron jobs must always include a logging statement.

Triggering a cloud hook through Drush cron
------------------------------------------

For infrastructure where you want a single hook, you can also run a specific cron hook directly. The command structure will vary based on your Drupal version and module.

### Cloud Next

    drush -v ev "mymodule_cron();" &>> /shared/logs/drush-cron.log

### Cloud Classic

    drush -v ev "mymodule_cron();" &>> /var/log/sites/${AH_SITE_NAME}/logs/$(hostname -s)/drush-cron.log

The previous commands will log output to the standard log files, ensuring log rotation and maintenance continues.