I have installed CiviCRM 5.31 on Drupal 8 with the following set of commands according to the official Drupal and CiviCRM documentation:
cd /var/www
composer create-project drupal/recommended-project:8.9.8 d8.example.org
cd d8.example.org
composer require drush/drush
vendor/bin/drush site:install
composer config extra.enable-patching true
composer require civicrm/civicrm-asset-plugin:'~1.1'
composer require civicrm/civicrm-{core,packages,drupal-8}:'~5.31'
# now enable CiviCRM module in web UI
Now I want to setup scheduled jobs as outlined in CiviCRM's documentation. Running vendor/bin/drush civicrm-api
, however, leads to the following error:
Command "civicrm-api" is not defined.
As of November 2020, cv is untested for Drupal 8, so I would like to use drush
. What's the "official" way to do this?
Software versions
- PHP 7.3.24
- mysql 8.0.22
- Composer 2.0.6
- Drush Commandline Tool 10.3.5
- Drupal 8.9.8
- CiviCRM 5.31.0