civiCase civiCRM php command line for apis

The basics

Here are the new usage directions for 4.2:

 * Usage:
* php bin/csv/import.php -e <entity> –file /path/to/csv/file [ -s ]
* e.g.: php bin/csv/import.php -e Contact –file /tmp/import.csv

 * Usage:
* php bin/csv/export.php -e <entity> [ –field=value –field=value ] [ -s ]
* e.g.: php bin/csv/export.php -e Contact – -s



Step one: Open myPHP and export fields for groups

Setp two: Create csv of new values with relevant fields in first row (use comma separated values)

Step three: run import.php with relevant csv file

as super user

php /var/www/drupal/sites/all/modules/contrib/civicrm/bin/cli.php -e contact -a get --output --id=2





Comments are closed.