This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/web/modules/contrib/webform/docs/DRUSH-COMMANDS.md
2018-11-23 12:29:20 +00:00

87 lines
1.5 KiB
Markdown

Steps for testing Drush 8.x and 9.x commands
--------------------------------------------
# Drush 8.x and below
```bash
# Version.
drush --version
# Help.
drush help --filter=webform
# Submissions.
drush webform-generate contact
drush webform-export contact
drush webform-purge -y contact
# Option.
drush webform-generate --entity-type=node --entity-id={ENTER_NID} contact
drush webform-export --delimiter="\t" --header-format="key" contact
# Libraries.
drush webform-libraries-status
drush webform-libraries-remove
drush webform-libraries-download
drush webform-libraries-make
drush webform-libraries-composer
# Tidy.
drush webform-tidy
# Repair.
drush webform-repair -y
# Docs.
drush en -y readme
drush webform-docs
# Composer.
drush webform-composer-update
# Commands.
drush webform-generate-commands
```
# Drush 9.x and above
```bash
# Version.
drush --version
# Help.
drush list --filter=webform
# Submissions.
drush webform:generate contact
drush webform:export contact
drush webform:purge -y contact
# Options.
drush webform:generate --entity-type=node --entity-id={ENTER_NID} contact
drush webform:export --delimiter="\t" --header-format=key contact
# Libraries.
drush webform:libraries:status
drush webform:libraries:remove
drush webform:libraries:download
drush webform:libraries:make
drush webform:libraries:composer
# Tidy.
drush webform:tidy
# Repair.
drush webform:repair -y
# Docs.
drush en -y readme
drush webform:docs
# Composer.
drush webform:composer:update
# Commands.
drush webform:generate:commands
```