Commerce Drush (Drupal module).
Commerce Drush, the Drupal Shell interface, allows you to execute Commerce operations from the command line.
It provides the following commands:
- commerce-order-add (coa)
- commerce-order-delete (cod)
- commerce-order-pay (cop)
- generate-customer-profiles (gencp)
Run "drush help " to see supported command line options and arguments.
drush commerce-order-add 1
drush coa 2,3
drush --user=admin coa SKU1001 --quantity=2
drush --user=admin coa SKU1001 --empty
drush --order=123 commerce-order-delete
drush --user=testuser commerce-order-delete
drush --order=all commerce-order-delete
drush --user=USER_NAME_OR_UID commerce-order-pay
drush --user=admin commerce-order-pay
drush generate-customer-profiles <entity_type>.
drush generate-customer-profiles billing 1
drush --kill --users=admin generate-customer-profiles billing 1
Generates customer profiles for all users and skips the prompt for continuation when there are more that 20 users in the database.
drush --force generate-customer-profiles billing 1
drush --users admin --entity-type="my-customer-profile-entity-type" billing 1
drush --user admin --users admin billing 1
- Commerce
- Drush
Home page: https://drupal.org/project/commerce_drush
Known bugs: https://drupal.org/project/issues/commerce_drush
This project has been sponsored by Opsview.