civiCase civiCRM php command line for apis

,

The basics

https://civicrm.org/blogs/xavier/api_batch_tools

Here are the new usage directions for 4.2:

 * Usage:
* php bin/csv/import.php -e <entity> –file /path/to/csv/file [ -s site.org ]
* 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 site.org ]
* e.g.: php bin/csv/export.php -e Contact –email=jamie@progressivetech.org -s mygroup.org

 

 

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

 

http://localhost/?q=civicrm/api/doc

 

http://localhost/?q=civicrm/api/explorer