Questions tagged [cv]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
2answers
70 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 ...
4
votes
2answers
348 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 ...
3
votes
2answers
58 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 ...
3
votes
2answers
157 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 ...
2
votes
1answer
84 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() ...
2
votes
1answer
48 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] ...
2
votes
1answer
88 views

Is it possible to enable/disable logging using cv?

Can the command line cv tool be used to enable/disable logging?
2
votes
0answers
22 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 ...
2
votes
0answers
42 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 ...
1
vote
2answers
42 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?
1
vote
1answer
40 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 | \...
1
vote
0answers
142 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] ...
1
vote
0answers
56 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 --...
0
votes
0answers
13 views

CIVIRM CV TOOL 0.3.2 trying to upgrade dbase 4.6.10 to 5.25 (or at least 4.7.13)

So i have a clean joomla 3.9 install and 5.25 codebase installed, I put the 4.6.10 database on there and ran the cv tool: cv:upgrade db –test It showed codebase 5.25 and database verison 4.6.10 so ...
0
votes
1answer
72 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 ...