{"id":20471144,"url":"https://github.com/drupal-modules/commerce_drush","last_synced_at":"2025-04-13T10:57:36.024Z","repository":{"id":15182404,"uuid":"17910325","full_name":"drupal-modules/commerce_drush","owner":"drupal-modules","description":"Commerce Drush (Drupal module).","archived":false,"fork":false,"pushed_at":"2017-11-11T22:28:23.000Z","size":13,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T02:11:43.900Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drupal-modules.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-19T15:50:08.000Z","updated_at":"2020-05-10T13:32:38.000Z","dependencies_parsed_at":"2022-09-14T09:21:44.013Z","dependency_job_id":null,"html_url":"https://github.com/drupal-modules/commerce_drush","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drupal-modules%2Fcommerce_drush","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drupal-modules%2Fcommerce_drush/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drupal-modules%2Fcommerce_drush/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drupal-modules%2Fcommerce_drush/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drupal-modules","download_url":"https://codeload.github.com/drupal-modules/commerce_drush/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248703194,"owners_count":21148117,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T14:15:05.887Z","updated_at":"2025-04-13T10:57:35.961Z","avatar_url":"https://github.com/drupal-modules.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"commerce_drush\n==============\n\nCommerce Drush (Drupal module).\n\nCommerce Drush, the Drupal Shell interface, allows you to execute Commerce operations from the command line.\n\nIt provides the following commands:\n\n - commerce-order-add (coa)\n - commerce-order-delete (cod)\n - commerce-order-pay (cop)\n - generate-customer-profiles (gencp)\n\nRun \"drush help \" to see supported command line options and arguments.\n\nExamples\n========\n\n### Create orders (commerce-order-add).\n\n#### Examples:\n\n##### Create an order for product 1.                   \n\n    drush commerce-order-add 1\n\n##### Create an order for product 2 and 3.             \n\n    drush coa 2,3\n\n##### Create an order for 2 products with SKU SKU1001.\n\n    drush --user=admin coa SKU1001 --quantity=2\n\n##### Before placing an order for product, empty the current cart.\n\n    drush --user=admin coa SKU1001 --empty\n\n### Delete orders\n\n#### Delete specific order id\n\n    drush --order=123 commerce-order-delete\n\n### Delete all orders for specific user\n\n    drush --user=testuser commerce-order-delete\n\n### Delete all orders\n\n    drush --order=all commerce-order-delete\n\n### Creates full payment for the (cart) order and completes the order (commerce-order-pay):\n\n#### Usage:\n\n    drush --user=USER_NAME_OR_UID commerce-order-pay\n\n#### Examples:\n\n##### Completes (cart) order for the admin user.\n\n    drush --user=admin commerce-order-pay\n\n### Generates customer profiles.                                                                      \n\n#### Usage:\n\n    drush generate-customer-profiles \u003centity_type\u003e.\n\n#### Examples:\n\n##### Generates customer profiles for all users.                                                                      \n    \n    drush generate-customer-profiles billing 1\n    \n##### Replaces all existing admin's customer profiles with a new one.                                                                    \n    drush --kill --users=admin generate-customer-profiles billing 1\n    \n##### Generates customer profiles for all users and skips the prompt for continuation when there are more that 20 users in the database. \n  \n    drush --force generate-customer-profiles billing 1\n    \n##### Generates a single customer profile for admin using specified custom entity type.                               \n    \n    drush --users admin --entity-type=\"my-customer-profile-entity-type\" billing 1\n\n##### Generates a single customer profile for admin being logged as admin\n\n    drush --user admin --users admin billing 1\n    \nDependencies\n============\n- Commerce\n- Drush\n\nSupport\n=======\n\nHome page:\nhttps://drupal.org/project/commerce_drush\n\nKnown bugs:\nhttps://drupal.org/project/issues/commerce_drush\n\nCredits\n=======\nThis project has been sponsored by [Opsview](http://www.opsview.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrupal-modules%2Fcommerce_drush","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrupal-modules%2Fcommerce_drush","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrupal-modules%2Fcommerce_drush/lists"}