1

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
3

The readme for cv needs updating. It's now tested pretty well with drupal 8. I would use cv instead.

See also https://lab.civicrm.org/dev/drupal/-/issues/76

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.