Questions tagged [cli]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
28 views

Need help with export.php (CiviCRM 4.6 & Drupal 7)

I'm using an older version of CiviCRM (4.6) with Drupal 7 on Linux and until now I've not really used the command line stuff for CiviCRM, only for Drupal. But I now need to do exports & imports ...
1
vote
0answers
21 views

When running cli.php it hangs and never completes

Running Cli.php was working with command line as well as though cron. However it now just hangs and uses cpu but never completed. Schedule jobs do run and execute if used execute now on the admin ...
2
votes
1answer
37 views

How to explore API from command line?

Is there a way to explore the API from the command line instead of going to mycivicrmsite.localhost/civicrm/api in a web browser? I wasn't able to learn much from the cv help. For example, you can ...
3
votes
1answer
39 views

how to change civicrm settings from command line?

There are some common settings to change for dev sites at mycivi.localhost/civicrm/admin/setting/debug. How can those be changed from the command line? A better answer for the question How should I ...
0
votes
1answer
59 views

CiviCRM reports Cron not running, but my web host is adamant that it is

I'm using the cli.php method to run cron as described in the System Administrator Guide. I am able to run this command from ssh, and it seems to execute fine: php /var/sites/c/<mydomain>/...
1
vote
2answers
26 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?
0
votes
1answer
127 views

Setting up cron jobs on cPanel

Need your help....I'm trying to setup cron jobs using the cli.php command given in the documentation....I'm able to run it directly through the terminal...but when I schedule it via cPanel its gives ...
1
vote
0answers
201 views

WP CLI method for setting up cron jobs

I'm having trouble setting up CRON jobs to run on my server (I did read through the various posts on CRON jobs and trouble with CLI but still couldn't find a solution). I've followed the WIKI but can'...
2
votes
1answer
176 views

cron setup failing in new Wordpress installaion

New installation of 4.7.14 into a WordPress 4.7 site located in a subdomain (e.g. sub.domain.com) hosted at A2. Everything good except for the "Cron Not Running". Created a new WP user with admin ...
1
vote
1answer
118 views

CiviCRM Wordpress Cron not running - DB Error connect failed

I've installed CiviCRM in one of my Wordpress site, It installed fine but it is showing me popup window that "No Cron is running", i've tried to setup Cron from my Cpanel with PHP-CLi method, I use ...
3
votes
2answers
96 views

Updating an option value with drush cvapi

I'm suprised that it is so hard to update an option value in a certain group using our API. I have been writing scripts as follows: get option group id where option group name = X (save as ...
1
vote
1answer
40 views

Running a script from cli

How would I call CRM_Core_I18n_Schema::rebuildMultilingualSchema($locales, NULL); from the command line? Minor upgrade seems to have had an insignificant DB error and this line did not get called. ...
0
votes
1answer
381 views

Configuring cron using PHP cli method results in Permission denied

Centos 7 with selinux set to permissive. Using apache as the user and confirmed apache has execute permissions to the folder and file in plugins/civicrm/civicrm/bin/cli.php The crontab entry - 1 * * ...
6
votes
1answer
93 views

Is command-line upgrade broken on CiviCRM 4.7.7?

I just tried upgrading a very vanilla site from 4.7.6 to 4.7.7. I ran drush civicrm-upgrade-db, which has worked previously on this site (which receives every point update - it's our internal CRM ...
1
vote
1answer
280 views

Configuring cron using wp-cli on local server with Mamp Pro

I'm testing CiviCRM 4.7 in a WordPress 4.4.2 installation. I'm running this on a local server with Mac OSX 10.11.2 using MAMP Pro. I'm trying to configure cron using the wp-cli method. I've installed,...
3
votes
1answer
73 views

CLI Contact Import is not importing address details

I have a local test environment on a mac where the site is installed. I'm trying to do a CLI import via the mac terminal and unfortunately, address details are not being imported. Command Used: php [...
6
votes
1answer
65 views

Can I specify a dedupe rule and import type (e.g. update) when using command line import

I'm using the command line import, following info provided here: How do I import contacts through the command line? https://forum.civicrm.org/index.php?topic=34033.0 Since I have data that includes ...
2
votes
1answer
58 views

Command line import error message

I'm using the command line import, following info provided here: How do I import contacts through the command line? https://forum.civicrm.org/index.php?topic=34033.0 But getting the following error ...
3
votes
2answers
184 views

Find Contacts with no Relationships

Have tried using API, but $result = civicrm_api3('Contact', 'get', array( 'return' => "id", 'contact_sub_type' => array('!=' => "Parent"), )); gives zero results, while Search ...
3
votes
2answers
270 views

How to delete a contact through the command line (CLI)

How can I delete a contact through the command line?
9
votes
2answers
894 views

How do I import contacts through the command line?

How can I import contacts in CiviCRM using the command line (CLI) rather than using the CiviCRM user interface and its importing wizard?