Questions tagged [cv]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
40 views

CV Does Not Work From Cron

I am having an issue in Amazon Linux 2 where I can run cv commands from the command line but I cannot run cv commands from cron. For example: /usr/bin/php /usr/local/bin/cv api job.execute --user=...
Steve's user avatar
  • 137
0 votes
1 answer
26 views

CV No Longer Works

I am trying to use the CV command line tool and it is no longer working. I think it sopped working when I upgraded to 5.68.0. I am also running Drupal 9.5.11 on Amazon Linux 2. I have PHP 8 running. ...
Josh's user avatar
  • 867
0 votes
1 answer
89 views

Error executing task "Update civicrm_mailing_event_queue to permit deleting records from civicrm_mailing_job"

I just tried to update from 5.66.0 to 5.68.0 and it failed with the following message: Error executing task "Update civicrm_mailing_event_queue to permit deleting records from civicrm_mailing_job&...
somnolentsurfer's user avatar
1 vote
1 answer
21 views

Undefined constant "DRUPAL_ROOT" In civicrm.settings.php when running cv api job.execute

I'm trying to run cron with cv and I get this error. The site itself loads fine. $ cv api job.execute --user=admin In civicrm.settings.php line 97: Undefined ...
jphelan's user avatar
  • 111
2 votes
0 answers
132 views

composer require civicrm/cv will not install

I installed a new project using composer. First Drupal 10.1.6, next civicrm (following the install guide https://docs.civicrm.org/installation/en/latest/drupal/), but when I try to run composer ...
Stefaan H's user avatar
3 votes
3 answers
46 views

Why does Drupal 9 complain when my CiviCRM cron runs?

I have a D9/Civi site and the main Civi cron is set up to run every 5 minutes using cv : /usr/local/bin/cv api job.execute --user=xxx --cwd=/home/xx/sites/default/web --quiet The cron job runs, but I ...
Graham's user avatar
  • 3,965
4 votes
1 answer
100 views

Are there 'cv' commands for these operations?

Using cv, how can I can? rebuild triggers: civicrm/menu/rebuild?reset=1&triggerRebuild=1 and rebuild menu: civicrm/admin/setting/updateConfigBackend&reset=1
Guillaume Sorel's user avatar
0 votes
0 answers
16 views

var "template compile dir" not set properly

An "cv core:check-req" after a fresh install of Drupal 9 and CiviCRM 5.60 showed The template compile dir ".../home//public_html/web/web/sites/default/files/civ/templates_c" can ...
MarkDQ's user avatar
  • 493
1 vote
1 answer
46 views

No menu item "OAuth", can't paste provider values into client

Following the steps in https://docs.civicrm.org/sysadmin/en/latest/setup/oauth/ After the installation of the OAuth2 extension, I don't get an "OAuth" item in the menu "Administer => ...
MarkDQ's user avatar
  • 493
0 votes
1 answer
39 views

cv upgrade:db causes error

When I try to upgrade via cv, I get the following error: In DrupalBase.php line 282: [Error] Call to undefined function _drupal_flush_css_js() I am able to do the upgrade within the GUI. Any ...
Webmaster COVS's user avatar
1 vote
1 answer
27 views

When running cv on a Joomla install, what directory should I use?

In the documentation for adding schedule jobs to crontab it says cv api job.execute --user=cronuser --cwd=/var/www/example.org It does not explain which directory the --cwd should indicate, the ...
thoni56's user avatar
  • 1,231
0 votes
1 answer
168 views

Composer install civicrm/cv

Dears, I installed CV using composer require civicrm/cv but when I run a command SSH says 'cv: command not found'. What did I forget ? Stefaan
Stefaan H's user avatar
1 vote
1 answer
21 views

"Failed to locate boot function (bootJoomla)" error when installing with cv

Learning to use cv, and when trying to upgrade CiviCRM with the following command, I get a "Failed to locate boot function (bootJoomla)" error. Any thoughts where I should start digging as ...
MtnPavlas's user avatar
  • 846
0 votes
1 answer
35 views

'cv' script with arguments

Is it possible to pass command-line arguments to a script that's being run with cv? If I try the obvious thing and just pass the argument after the script name, I get this: $ sudo -u daemon `which cv`...
Ken Williams's user avatar
0 votes
1 answer
33 views

What is the `cv` command to set default language?

Looking in the API V3, I can find the default language in Setting but not how to set it to fr_FR. I've tried commands like cv api Setting.create lcMessages="FR" but they return nothing or ...
Guillaume Sorel's user avatar
3 votes
2 answers
345 views

Is there a cv command to update extensions?

Silly question I guess but I can't find in list an option to perform extension update with cv. Is that possible? EDIT 1: is there a possibility for a ext:update option that would perform individual ...
Guillaume Sorel's user avatar
3 votes
2 answers
19 views

Can I add custom cv subcommands in my extension?

I'm starting to work on our Drupal 7 -> Drupal 9 upgrade path. I have a lot of custom drush commands (that mostly run CiviCRM code) to help with provisioning and I'm wondering what to do with them. ...
Jamie's user avatar
  • 1,246
0 votes
0 answers
29 views

Default URL settings wrong when using 'cv core:install'?

I have tried to create a clean setup using cv core:install. The setup did not work properly due to the following: The 'CIVICRM_UF_BASEURL' variable did not end with a slash, although the comments ...
Webmaster COVS's user avatar
0 votes
0 answers
29 views

What is this error `hook_civicrm_entityTypes` with cv?

Trying to use cv we face this error [RuntimeException] CiviCRM has not bootstrapped sufficiently to fire event "hook_civicrm_entityTypes".
Guillaume Sorel's user avatar
3 votes
1 answer
274 views

The "cmsBaseUrl" is not set according to the information in civicrm.settings.php

Error: When I check the installation requirements (cv core:check-req) I get an error message that says: The "cmsBaseUrl" (http://localhost/usr/local/bin/usr/local/bin/) is unavailable or ...
mgb-it-ag's user avatar
0 votes
1 answer
85 views

Scheduled Reminders no longer sending

Scheduled email reminders were working fine on my Drupal/CiviCRM server, then suddenly stopped working, with the last successful mail being sent on 2/11. I don't recall making any significant changes ...
spontarelliam's user avatar
2 votes
1 answer
108 views

Can't upgrade from 5.26.* to 5.28.*

We got 2 demo websites that we are using publicly to show translations. When I tried to update them, they returned from drush command the following: Drush bootstrap phase : bootstrap_drupal_database() ...
Experiance Tranquility's user avatar
2 votes
0 answers
26 views

Can cv be used to deduple contacts

civicrm 5.14.1 I have a large number of contacts to dedupe and would like to do it in the background. Is there any way to do this using the cv cli? I am a complete newbie to the API. Also, what are ...
Vietyank's user avatar
  • 996
1 vote
0 answers
343 views

cv fails to locate civicrm.settings.php

I have an error on CivicCRM v 5.11 "Cron Not Running" (WordPress) The crontab entry reads */5 * * * * /usr/local/bin/cv api --user=www-data job.execute The cron job fails with: [Exception] ...
Harrumph's user avatar
1 vote
0 answers
91 views

How do I run PHP Unit test on civicrm-buildkit-vagrant from within PHPStorm?

I don't understand why PHPStorm does not see cv tool when I call "run" or "debug" the class from extension: cv: not found PHP Fatal error: Uncaught RuntimeException: Command failed (cv php:boot --...
Scardinius's user avatar
4 votes
2 answers
400 views

CV Scheduled jobs not firing from cron

I am attempting to use CV to call job.execute to run my scheduled tasks as described in the CiviCRM Documentation. I am using Drupal 7. I have several independent sites running on the server. It ...
tanbog's user avatar
  • 317
3 votes
1 answer
106 views

cv error: "Call to undefined function Civi\Cv\Command\posix_getuid()"

When I run cv on a server, I get the following error: [Symfony\Component\Debug\Exception\FatalThrowableError] ...
Jon G - Megaphone Tech's user avatar
0 votes
1 answer
97 views

cron calling cv but not executing?

WP4.9.6 / CiviCRM 5.1.2 Having some issues with cron jobs using cv. I have a cron running with cli.php but that requires a password. I'm about to implement 2FA which breaks that approach. I've got ...
John Bradford's user avatar
3 votes
1 answer
124 views

Is it possible to enable/disable logging using cv?

Can the command line cv tool be used to enable/disable logging?
lcdservices's user avatar
2 votes
2 answers
55 views

Is it possible to set the list of CiviCRM components from the command line using drush

drush and cv have both have commands to install extensions. But know I want to create a script that sets the CiviCRM components. Is it possible to do this?
Kainuk - CiviCooP's user avatar
2 votes
0 answers
57 views

Why does cv output HTML?

I'm trying to kill off an error in WP "Cron Not Running" I installed cv. Im putting lines into crontab that trigger cv, such as */5 * * * * cv api --user=www-data job.execute ...as per ...
harrumph's user avatar
  • 101
3 votes
2 answers
90 views

How to reset the headless test db?

I'm using headless phpunit tests. I noticed that the first time I do this it pauses and says about installing schema for xxxx - a test database. If you break stuff enough, you can end up with a ...
artfulrobot's user avatar
  • 3,920
4 votes
2 answers
836 views

How do I use cv to run database upgrades from the command line?

I'd like to run the database upgrades from the command line. I know I can do with with drush civicrm-upgrade-db but I'd like to know a way to do it in a CMS-agnostic way (that will work for Wordpress ...
Sean's user avatar
  • 3,168
1 vote
1 answer
67 views

Can cv handle custom Wordpress installs?

A wordpress install I'm adding CiviCRM to is setup in a non-standard way, specifically: docroot \- civicrm.settings.php \- wp-config.php \- content/ | \- plugins | | \- civicrm | \- uploads | \...
artfulrobot's user avatar
  • 3,920
4 votes
2 answers
84 views

How to bootstrap CiviCRM with admin permissions in a Wordpress environment?

I'm using eval cv php:boot in a script. I need to be able to delete a contact in the script, including the skip_undelete flag, but this action is denied - get a "could not delete contact" error. I ...
artfulrobot's user avatar
  • 3,920