From 14fca9a580b59109bc0b3812f7ba54e0b348a5f2 Mon Sep 17 00:00:00 2001 From: Drush Documentation Bot Date: Thu, 10 Oct 2024 21:59:01 +0000 Subject: [PATCH] Deployed 881a2bd6c to 13.3.0 with MkDocs 1.4.3 and mike 2.1.3 --- 13.3.0/404.html | 5196 +++++++++++++ 13.3.0/assets/images/favicon.png | Bin 0 -> 1870 bytes .../assets/javascripts/bundle.220ee61c.min.js | 29 + .../javascripts/bundle.220ee61c.min.js.map | 8 + .../javascripts/lunr/min/lunr.ar.min.js | 1 + .../javascripts/lunr/min/lunr.da.min.js | 18 + .../javascripts/lunr/min/lunr.de.min.js | 18 + .../javascripts/lunr/min/lunr.du.min.js | 18 + .../javascripts/lunr/min/lunr.es.min.js | 18 + .../javascripts/lunr/min/lunr.fi.min.js | 18 + .../javascripts/lunr/min/lunr.fr.min.js | 18 + .../javascripts/lunr/min/lunr.hi.min.js | 1 + .../javascripts/lunr/min/lunr.hu.min.js | 18 + .../javascripts/lunr/min/lunr.hy.min.js | 1 + .../javascripts/lunr/min/lunr.it.min.js | 18 + .../javascripts/lunr/min/lunr.ja.min.js | 1 + .../javascripts/lunr/min/lunr.jp.min.js | 1 + .../javascripts/lunr/min/lunr.kn.min.js | 1 + .../javascripts/lunr/min/lunr.ko.min.js | 1 + .../javascripts/lunr/min/lunr.multi.min.js | 1 + .../javascripts/lunr/min/lunr.nl.min.js | 18 + .../javascripts/lunr/min/lunr.no.min.js | 18 + .../javascripts/lunr/min/lunr.pt.min.js | 18 + .../javascripts/lunr/min/lunr.ro.min.js | 18 + .../javascripts/lunr/min/lunr.ru.min.js | 18 + .../javascripts/lunr/min/lunr.sa.min.js | 1 + .../lunr/min/lunr.stemmer.support.min.js | 1 + .../javascripts/lunr/min/lunr.sv.min.js | 18 + .../javascripts/lunr/min/lunr.ta.min.js | 1 + .../javascripts/lunr/min/lunr.te.min.js | 1 + .../javascripts/lunr/min/lunr.th.min.js | 1 + .../javascripts/lunr/min/lunr.tr.min.js | 18 + .../javascripts/lunr/min/lunr.vi.min.js | 1 + .../javascripts/lunr/min/lunr.zh.min.js | 1 + 13.3.0/assets/javascripts/lunr/tinyseg.js | 206 + 13.3.0/assets/javascripts/lunr/wordcut.js | 6708 +++++++++++++++++ .../workers/search.74e28a9f.min.js | 42 + .../workers/search.74e28a9f.min.js.map | 8 + .../assets/stylesheets/main.eebd395e.min.css | 1 + .../stylesheets/main.eebd395e.min.css.map | 1 + .../stylesheets/palette.ecc896b0.min.css | 1 + .../stylesheets/palette.ecc896b0.min.css.map | 1 + 13.3.0/bootstrap/index.html | 5396 +++++++++++++ 13.3.0/commands/all/index.html | 5386 +++++++++++++ 13.3.0/commands/archive_dump/index.html | 5378 +++++++++++++ 13.3.0/commands/ard/index.html | 15 + 13.3.0/commands/bfoc/index.html | 15 + 13.3.0/commands/browse/index.html | 5339 +++++++++++++ 13.3.0/commands/cache_clear/index.html | 5350 +++++++++++++ 13.3.0/commands/cache_get/index.html | 5362 +++++++++++++ 13.3.0/commands/cache_rebuild/index.html | 5328 +++++++++++++ 13.3.0/commands/cache_set/index.html | 5341 +++++++++++++ 13.3.0/commands/cache_tags/index.html | 5335 +++++++++++++ 13.3.0/commands/cc/index.html | 15 + 13.3.0/commands/cdel/index.html | 15 + 13.3.0/commands/cedit/index.html | 15 + 13.3.0/commands/cex/index.html | 15 + 13.3.0/commands/cg/index.html | 15 + 13.3.0/commands/cget/index.html | 15 + 13.3.0/commands/cim/index.html | 15 + 13.3.0/commands/completion/index.html | 5347 +++++++++++++ 13.3.0/commands/conf/index.html | 15 + 13.3.0/commands/config/index.html | 15 + 13.3.0/commands/config_delete/index.html | 5338 +++++++++++++ 13.3.0/commands/config_edit/index.html | 5350 +++++++++++++ 13.3.0/commands/config_export/index.html | 5342 +++++++++++++ 13.3.0/commands/config_get/index.html | 5351 +++++++++++++ 13.3.0/commands/config_import/index.html | 5351 +++++++++++++ 13.3.0/commands/config_pull/index.html | 5366 +++++++++++++ 13.3.0/commands/config_set/index.html | 5356 +++++++++++++ 13.3.0/commands/config_status/index.html | 5356 +++++++++++++ 13.3.0/commands/core-cli/index.html | 15 + 13.3.0/commands/core_cli/index.html | 15 + 13.3.0/commands/core_cron/index.html | 5326 +++++++++++++ 13.3.0/commands/core_edit/index.html | 5354 +++++++++++++ 13.3.0/commands/core_requirements/index.html | 5354 +++++++++++++ 13.3.0/commands/core_route/index.html | 5341 +++++++++++++ 13.3.0/commands/core_rsync/index.html | 5367 +++++++++++++ 13.3.0/commands/core_status/index.html | 5353 +++++++++++++ 13.3.0/commands/core_topic/index.html | 5349 +++++++++++++ 13.3.0/commands/cpull/index.html | 15 + 13.3.0/commands/cr/index.html | 15 + 13.3.0/commands/cron/index.html | 15 + 13.3.0/commands/cs/index.html | 15 + 13.3.0/commands/cset/index.html | 15 + 13.3.0/commands/cst/index.html | 15 + 13.3.0/commands/ct/index.html | 15 + 13.3.0/commands/dd/index.html | 15 + 13.3.0/commands/deploy/index.html | 5325 +++++++++++++ 13.3.0/commands/deploy_hook-status/index.html | 5339 +++++++++++++ 13.3.0/commands/deploy_hook/index.html | 5325 +++++++++++++ .../commands/deploy_mark-complete/index.html | 5325 +++++++++++++ 13.3.0/commands/drupal_directory/index.html | 5351 +++++++++++++ 13.3.0/commands/econ/index.html | 15 + 13.3.0/commands/edel/index.html | 15 + 13.3.0/commands/en/index.html | 15 + 13.3.0/commands/entity_create/index.html | 5360 +++++++++++++ 13.3.0/commands/entity_delete/index.html | 5358 +++++++++++++ 13.3.0/commands/entity_save/index.html | 5361 +++++++++++++ 13.3.0/commands/esav/index.html | 15 + 13.3.0/commands/ev/index.html | 15 + 13.3.0/commands/eval/index.html | 15 + 13.3.0/commands/fbi/index.html | 15 + 13.3.0/commands/fc/index.html | 15 + 13.3.0/commands/fd/index.html | 15 + 13.3.0/commands/fi/index.html | 15 + 13.3.0/commands/field_base-info/index.html | 5364 +++++++++++++ .../field_base-override-create/index.html | 5354 +++++++++++++ 13.3.0/commands/field_create/index.html | 5363 +++++++++++++ 13.3.0/commands/field_delete/index.html | 5354 +++++++++++++ 13.3.0/commands/field_formatters/index.html | 5339 +++++++++++++ 13.3.0/commands/field_info/index.html | 5365 +++++++++++++ 13.3.0/commands/field_types/index.html | 5338 +++++++++++++ 13.3.0/commands/field_widgets/index.html | 5339 +++++++++++++ 13.3.0/commands/gen/index.html | 15 + 13.3.0/commands/generate/index.html | 5367 +++++++++++++ 13.3.0/commands/help/index.html | 5351 +++++++++++++ 13.3.0/commands/id/index.html | 15 + 13.3.0/commands/if/index.html | 15 + 13.3.0/commands/image_derive/index.html | 5337 +++++++++++++ 13.3.0/commands/image_flush/index.html | 5349 +++++++++++++ 13.3.0/commands/in/index.html | 15 + 13.3.0/commands/index.html | 5498 ++++++++++++++ 13.3.0/commands/install/index.html | 15 + 13.3.0/commands/jn_get/index.html | 5338 +++++++++++++ 13.3.0/commands/list/index.html | 5328 +++++++++++++ 13.3.0/commands/locale_check/index.html | 5313 +++++++++++++ .../commands/locale_clear-status/index.html | 5314 +++++++++++++ 13.3.0/commands/locale_export/index.html | 5350 +++++++++++++ 13.3.0/commands/locale_import-all/index.html | 5350 +++++++++++++ 13.3.0/commands/locale_import/index.html | 5353 +++++++++++++ 13.3.0/commands/locale_update/index.html | 5324 +++++++++++++ 13.3.0/commands/maint_get/index.html | 5326 +++++++++++++ 13.3.0/commands/maint_set/index.html | 5337 +++++++++++++ 13.3.0/commands/maint_status/index.html | 5327 +++++++++++++ 13.3.0/commands/mfs/index.html | 15 + 13.3.0/commands/mget/index.html | 15 + .../commands/migrate_fields-source/index.html | 5362 +++++++++++++ 13.3.0/commands/migrate_import/index.html | 5379 +++++++++++++ 13.3.0/commands/migrate_messages/index.html | 5365 +++++++++++++ .../commands/migrate_reset-status/index.html | 5337 +++++++++++++ 13.3.0/commands/migrate_rollback/index.html | 5368 +++++++++++++ 13.3.0/commands/migrate_status/index.html | 5369 +++++++++++++ 13.3.0/commands/migrate_stop/index.html | 5337 +++++++++++++ 13.3.0/commands/mim/index.html | 15 + 13.3.0/commands/mk_docs/index.html | 5325 +++++++++++++ 13.3.0/commands/mmsg/index.html | 15 + 13.3.0/commands/mr/index.html | 15 + 13.3.0/commands/mrs/index.html | 15 + 13.3.0/commands/ms/index.html | 15 + 13.3.0/commands/mset/index.html | 15 + 13.3.0/commands/mst/index.html | 15 + 13.3.0/commands/mstatus/index.html | 15 + 13.3.0/commands/php/index.html | 15 + 13.3.0/commands/php_cli/index.html | 5350 +++++++++++++ 13.3.0/commands/php_eval/index.html | 5351 +++++++++++++ 13.3.0/commands/php_script/index.html | 5367 +++++++++++++ 13.3.0/commands/pm-enable/index.html | 15 + 13.3.0/commands/pm_enable/index.html | 15 + 13.3.0/commands/pm_install/index.html | 5340 +++++++++++++ 13.3.0/commands/pm_list/index.html | 5344 +++++++++++++ 13.3.0/commands/pm_uninstall/index.html | 5337 +++++++++++++ 13.3.0/commands/pml/index.html | 15 + 13.3.0/commands/pmu/index.html | 15 + 13.3.0/commands/queue_delete/index.html | 5324 +++++++++++++ 13.3.0/commands/queue_list/index.html | 5338 +++++++++++++ 13.3.0/commands/queue_run/index.html | 5337 +++++++++++++ 13.3.0/commands/rap/index.html | 15 + 13.3.0/commands/rcrt/index.html | 15 + 13.3.0/commands/rdel/index.html | 15 + 13.3.0/commands/rebuild/index.html | 15 + 13.3.0/commands/recipe/index.html | 5309 +++++++++++++ 13.3.0/commands/rls/index.html | 15 + 13.3.0/commands/rmp/index.html | 15 + 13.3.0/commands/role-add-perm/index.html | 15 + 13.3.0/commands/role-remove-perm/index.html | 15 + 13.3.0/commands/role_create/index.html | 5337 +++++++++++++ 13.3.0/commands/role_delete/index.html | 5336 +++++++++++++ 13.3.0/commands/role_list/index.html | 5351 +++++++++++++ 13.3.0/commands/role_perm_add/index.html | 5338 +++++++++++++ 13.3.0/commands/role_perm_remove/index.html | 5337 +++++++++++++ 13.3.0/commands/route/index.html | 15 + 13.3.0/commands/rq/index.html | 15 + 13.3.0/commands/rs/index.html | 15 + 13.3.0/commands/rsync/index.html | 15 + 13.3.0/commands/runserver/index.html | 5361 +++++++++++++ 13.3.0/commands/sa/index.html | 15 + 13.3.0/commands/scr/index.html | 15 + 13.3.0/commands/sdel/index.html | 15 + 13.3.0/commands/serve/index.html | 15 + 13.3.0/commands/sget/index.html | 15 + 13.3.0/commands/si/index.html | 15 + 13.3.0/commands/sin/index.html | 15 + 13.3.0/commands/site_alias/index.html | 5362 +++++++++++++ 13.3.0/commands/site_install/index.html | 5368 +++++++++++++ 13.3.0/commands/site_set/index.html | 5353 +++++++++++++ 13.3.0/commands/site_ssh/index.html | 5363 +++++++++++++ 13.3.0/commands/sql_cli/index.html | 5353 +++++++++++++ 13.3.0/commands/sql_connect/index.html | 5340 +++++++++++++ 13.3.0/commands/sql_create/index.html | 5342 +++++++++++++ 13.3.0/commands/sql_drop/index.html | 5338 +++++++++++++ 13.3.0/commands/sql_dump/index.html | 5368 +++++++++++++ 13.3.0/commands/sql_query/index.html | 5360 +++++++++++++ 13.3.0/commands/sql_sanitize/index.html | 5356 +++++++++++++ 13.3.0/commands/sql_sync/index.html | 5377 +++++++++++++ 13.3.0/commands/sqlc/index.html | 15 + 13.3.0/commands/sqlq/index.html | 15 + 13.3.0/commands/sqlsan/index.html | 15 + 13.3.0/commands/sset/index.html | 15 + 13.3.0/commands/ssh/index.html | 15 + 13.3.0/commands/st/index.html | 15 + 13.3.0/commands/state_delete/index.html | 5336 +++++++++++++ 13.3.0/commands/state_get/index.html | 5350 +++++++++++++ 13.3.0/commands/state_set/index.html | 5354 +++++++++++++ 13.3.0/commands/status-report/index.html | 15 + 13.3.0/commands/status/index.html | 15 + 13.3.0/commands/theme-enable/index.html | 15 + 13.3.0/commands/theme_enable/index.html | 15 + 13.3.0/commands/theme_install/index.html | 5327 +++++++++++++ 13.3.0/commands/theme_un/index.html | 15 + 13.3.0/commands/theme_uninstall/index.html | 5326 +++++++++++++ 13.3.0/commands/then/index.html | 15 + 13.3.0/commands/thin/index.html | 15 + 13.3.0/commands/thun/index.html | 15 + 13.3.0/commands/topic/index.html | 15 + 13.3.0/commands/twig_compile/index.html | 5314 +++++++++++++ 13.3.0/commands/twig_debug/index.html | 5325 +++++++++++++ 13.3.0/commands/twig_unused/index.html | 5350 +++++++++++++ 13.3.0/commands/twigc/index.html | 15 + 13.3.0/commands/ublk/index.html | 15 + 13.3.0/commands/ucan/index.html | 15 + 13.3.0/commands/ucrt/index.html | 15 + 13.3.0/commands/uinf/index.html | 15 + 13.3.0/commands/uli/index.html | 15 + 13.3.0/commands/un/index.html | 15 + 13.3.0/commands/updatedb/index.html | 5336 +++++++++++++ 13.3.0/commands/updatedb_status/index.html | 5339 +++++++++++++ 13.3.0/commands/updb/index.html | 15 + 13.3.0/commands/updbst/index.html | 15 + 13.3.0/commands/upwd/index.html | 15 + 13.3.0/commands/urol/index.html | 15 + 13.3.0/commands/urrol/index.html | 15 + 13.3.0/commands/use/index.html | 15 + 13.3.0/commands/user-add-role/index.html | 15 + 13.3.0/commands/user-remove-role/index.html | 15 + 13.3.0/commands/user_block/index.html | 5350 +++++++++++++ 13.3.0/commands/user_cancel/index.html | 5357 +++++++++++++ 13.3.0/commands/user_create/index.html | 5363 +++++++++++++ 13.3.0/commands/user_information/index.html | 5366 +++++++++++++ 13.3.0/commands/user_login/index.html | 5355 +++++++++++++ 13.3.0/commands/user_password/index.html | 5337 +++++++++++++ 13.3.0/commands/user_role_add/index.html | 5349 +++++++++++++ 13.3.0/commands/user_role_remove/index.html | 5349 +++++++++++++ 13.3.0/commands/user_unblock/index.html | 5348 +++++++++++++ 13.3.0/commands/uublk/index.html | 15 + 13.3.0/commands/vd/index.html | 15 + 13.3.0/commands/vdis/index.html | 15 + 13.3.0/commands/ven/index.html | 15 + 13.3.0/commands/version/index.html | 5326 +++++++++++++ 13.3.0/commands/vex/index.html | 15 + 13.3.0/commands/views_dev/index.html | 5314 +++++++++++++ 13.3.0/commands/views_disable/index.html | 5336 +++++++++++++ 13.3.0/commands/views_enable/index.html | 5336 +++++++++++++ 13.3.0/commands/views_execute/index.html | 5352 +++++++++++++ 13.3.0/commands/views_list/index.html | 5356 +++++++++++++ 13.3.0/commands/vl/index.html | 15 + 13.3.0/commands/watchdog_delete/index.html | 5354 +++++++++++++ 13.3.0/commands/watchdog_list/index.html | 5364 +++++++++++++ 13.3.0/commands/watchdog_show-one/index.html | 5338 +++++++++++++ 13.3.0/commands/watchdog_show/index.html | 5372 +++++++++++++ 13.3.0/commands/watchdog_tail/index.html | 5356 +++++++++++++ 13.3.0/commands/wd-del/index.html | 15 + 13.3.0/commands/wd-delete/index.html | 15 + .../commands/wd-list,watchdog-list/index.html | 15 + 13.3.0/commands/wd-one/index.html | 15 + 13.3.0/commands/wd-show/index.html | 15 + 13.3.0/commands/wd-tail/index.html | 15 + 13.3.0/commands/wd/index.html | 15 + 13.3.0/commands/ws/index.html | 15 + 13.3.0/commands/wt/index.html | 15 + 13.3.0/commands/y_get_value/index.html | 15 + 13.3.0/commands/y_lint/index.html | 15 + 13.3.0/commands/y_unset_key/index.html | 15 + 13.3.0/commands/y_update_key/index.html | 15 + 13.3.0/commands/y_update_value/index.html | 15 + 13.3.0/commands/yaml_get_value/index.html | 5311 +++++++++++++ 13.3.0/commands/yaml_lint/index.html | 5310 +++++++++++++ 13.3.0/commands/yaml_unset_key/index.html | 5311 +++++++++++++ 13.3.0/commands/yaml_update_key/index.html | 5312 +++++++++++++ 13.3.0/commands/yaml_update_value/index.html | 5323 +++++++++++++ 13.3.0/config-exporting/index.html | 5328 +++++++++++++ 13.3.0/contribute/CONTRIBUTING/index.html | 5344 +++++++++++++ 13.3.0/contribute/unish/index.html | 5381 +++++++++++++ 13.3.0/cron/index.html | 5368 +++++++++++++ 13.3.0/css/extra.drush.css | 23 + 13.3.0/dependency-injection/index.html | 5363 +++++++++++++ 13.3.0/deploycommand/index.html | 5348 +++++++++++++ 13.3.0/drush_logo-black.png | Bin 0 -> 23280 bytes 13.3.0/examples/ArtCommands.php/index.html | 5424 +++++++++++++ 13.3.0/examples/PolicyCommands.php/index.html | 5326 +++++++++++++ .../SiteAliasAlterCommands.php/index.html | 5322 +++++++++++++ .../SyncViaHttpCommands.php/index.html | 5368 +++++++++++++ 13.3.0/examples/XkcdCommands.php/index.html | 5328 +++++++++++++ 13.3.0/examples/example.drush.yml/index.html | 5304 +++++++++++++ 13.3.0/examples/example.prompt.sh/index.html | 5372 +++++++++++++ 13.3.0/examples/example.site.yml/index.html | 5292 +++++++++++++ .../examples/git-bisect.example.sh/index.html | 5315 +++++++++++++ 13.3.0/examples/helloworld.script/index.html | 5290 +++++++++++++ 13.3.0/generators/access-checker/index.html | 15 + 13.3.0/generators/action-links/index.html | 15 + 13.3.0/generators/action/index.html | 15 + 13.3.0/generators/all/index.html | 5339 +++++++++++++ .../generators/apache-virtual-host/index.html | 15 + 13.3.0/generators/block/index.html | 15 + .../generators/breadcrumb-builder/index.html | 15 + 13.3.0/generators/breakpoints/index.html | 15 + 13.3.0/generators/browser-test/index.html | 15 + 13.3.0/generators/bundle-class/index.html | 15 + 13.3.0/generators/cache-context/index.html | 15 + 13.3.0/generators/ckeditor-plugin/index.html | 15 + 13.3.0/generators/ckeditor/index.html | 15 + 13.3.0/generators/composer.json/index.html | 15 + 13.3.0/generators/composer/index.html | 5310 +++++++++++++ 13.3.0/generators/condition/index.html | 15 + 13.3.0/generators/config-entity/index.html | 15 + 13.3.0/generators/config-form/index.html | 15 + 13.3.0/generators/confirm-form/index.html | 15 + 13.3.0/generators/constraint/index.html | 15 + 13.3.0/generators/content-entity/index.html | 15 + 13.3.0/generators/contextual-links/index.html | 15 + 13.3.0/generators/controller/index.html | 5299 +++++++++++++ 13.3.0/generators/custom-service/index.html | 15 + 13.3.0/generators/daf/index.html | 15 + 13.3.0/generators/dcf/index.html | 15 + 13.3.0/generators/dg/index.html | 15 + 13.3.0/generators/drush_alias-file/index.html | 5310 +++++++++++++ .../generators/drush_command-file/index.html | 5310 +++++++++++++ 13.3.0/generators/drush_generator/index.html | 5310 +++++++++++++ .../drush_symfony-command/index.html | 5310 +++++++++++++ .../entity-reference-selection/index.html | 15 + .../generators/entity_bundle-class/index.html | 5311 +++++++++++++ .../entity_configuration/index.html | 5310 +++++++++++++ 13.3.0/generators/entity_content/index.html | 5310 +++++++++++++ 13.3.0/generators/event-subscriber/index.html | 15 + 13.3.0/generators/field-formatter/index.html | 15 + 13.3.0/generators/field-type/index.html | 15 + 13.3.0/generators/field-widget/index.html | 15 + 13.3.0/generators/field/index.html | 5299 +++++++++++++ 13.3.0/generators/filter/index.html | 15 + 13.3.0/generators/form/index.html | 15 + 13.3.0/generators/form_config/index.html | 5310 +++++++++++++ 13.3.0/generators/form_confirm/index.html | 5310 +++++++++++++ 13.3.0/generators/form_simple/index.html | 5310 +++++++++++++ 13.3.0/generators/hook/index.html | 5299 +++++++++++++ 13.3.0/generators/index.html | 5349 +++++++++++++ 13.3.0/generators/install-file/index.html | 5299 +++++++++++++ 13.3.0/generators/javascript/index.html | 5299 +++++++++++++ 13.3.0/generators/kernel-test/index.html | 15 + 13.3.0/generators/layout/index.html | 5299 +++++++++++++ 13.3.0/generators/logger/index.html | 15 + 13.3.0/generators/menu-link/index.html | 15 + 13.3.0/generators/menu-links/index.html | 15 + 13.3.0/generators/middleware/index.html | 15 + .../generators/migrate-destination/index.html | 15 + 13.3.0/generators/migrate-process/index.html | 15 + 13.3.0/generators/migrate-source/index.html | 15 + 13.3.0/generators/migration.yml/index.html | 15 + 13.3.0/generators/migration/index.html | 15 + .../misc_apache-virtual-host/index.html | 5310 +++++++++++++ .../misc_nginx-virtual-host/index.html | 5310 +++++++++++++ 13.3.0/generators/module-libraries/index.html | 15 + 13.3.0/generators/module/index.html | 5299 +++++++++++++ .../generators/nginx-virtual-host/index.html | 15 + 13.3.0/generators/nightwatch-test/index.html | 15 + 13.3.0/generators/param-converter/index.html | 15 + 13.3.0/generators/path-processor/index.html | 15 + 13.3.0/generators/permissions.yml/index.html | 15 + 13.3.0/generators/permissions/index.html | 15 + 13.3.0/generators/phpstorm-meta/index.html | 5299 +++++++++++++ 13.3.0/generators/plugin_action/index.html | 5310 +++++++++++++ 13.3.0/generators/plugin_block/index.html | 5310 +++++++++++++ 13.3.0/generators/plugin_ckeditor/index.html | 5311 +++++++++++++ 13.3.0/generators/plugin_condition/index.html | 5310 +++++++++++++ .../generators/plugin_constraint/index.html | 5310 +++++++++++++ .../index.html | 5310 +++++++++++++ .../plugin_field_formatter/index.html | 5310 +++++++++++++ .../generators/plugin_field_type/index.html | 5310 +++++++++++++ .../generators/plugin_field_widget/index.html | 5310 +++++++++++++ 13.3.0/generators/plugin_filter/index.html | 5310 +++++++++++++ 13.3.0/generators/plugin_manager/index.html | 5310 +++++++++++++ 13.3.0/generators/plugin_menu-link/index.html | 5310 +++++++++++++ .../plugin_migrate_destination/index.html | 5310 +++++++++++++ .../plugin_migrate_process/index.html | 5310 +++++++++++++ .../plugin_migrate_source/index.html | 5310 +++++++++++++ .../generators/plugin_queue-worker/index.html | 5310 +++++++++++++ .../plugin_rest-resource/index.html | 5310 +++++++++++++ .../plugin_views_argument-default/index.html | 5310 +++++++++++++ .../generators/plugin_views_field/index.html | 5310 +++++++++++++ .../generators/plugin_views_style/index.html | 5310 +++++++++++++ 13.3.0/generators/queue-worker/index.html | 15 + 13.3.0/generators/readme/index.html | 5299 +++++++++++++ 13.3.0/generators/render-element/index.html | 5299 +++++++++++++ 13.3.0/generators/request-policy/index.html | 15 + 13.3.0/generators/response-policy/index.html | 15 + 13.3.0/generators/rest-resource/index.html | 15 + 13.3.0/generators/route-subscriber/index.html | 15 + 13.3.0/generators/routing.yml/index.html | 15 + 13.3.0/generators/routing/index.html | 15 + 13.3.0/generators/sdc/index.html | 15 + 13.3.0/generators/service-provider/index.html | 5299 +++++++++++++ .../service_access-checker/index.html | 5310 +++++++++++++ .../service_breadcrumb-builder/index.html | 5310 +++++++++++++ .../service_cache-context/index.html | 5310 +++++++++++++ 13.3.0/generators/service_custom/index.html | 5310 +++++++++++++ .../service_event-subscriber/index.html | 5310 +++++++++++++ 13.3.0/generators/service_logger/index.html | 5310 +++++++++++++ .../generators/service_middleware/index.html | 5310 +++++++++++++ .../service_param-converter/index.html | 5310 +++++++++++++ .../service_path-processor/index.html | 5310 +++++++++++++ .../service_request-policy/index.html | 5310 +++++++++++++ .../service_response-policy/index.html | 5310 +++++++++++++ .../service_route-subscriber/index.html | 5310 +++++++++++++ .../service_theme-negotiator/index.html | 5310 +++++++++++++ .../service_twig-extension/index.html | 5310 +++++++++++++ .../service_uninstall-validator/index.html | 5310 +++++++++++++ 13.3.0/generators/services.yml/index.html | 15 + 13.3.0/generators/services/index.html | 15 + .../single-directory-component/index.html | 5310 +++++++++++++ 13.3.0/generators/symfony-command/index.html | 15 + 13.3.0/generators/task-links/index.html | 15 + 13.3.0/generators/test_browser/index.html | 5310 +++++++++++++ 13.3.0/generators/test_kernel/index.html | 5310 +++++++++++++ 13.3.0/generators/test_nightwatch/index.html | 5310 +++++++++++++ 13.3.0/generators/test_unit/index.html | 5310 +++++++++++++ 13.3.0/generators/test_webdriver/index.html | 5310 +++++++++++++ 13.3.0/generators/theme-libraries/index.html | 15 + 13.3.0/generators/theme-negotiator/index.html | 15 + 13.3.0/generators/theme/index.html | 5299 +++++++++++++ 13.3.0/generators/theme_settings/index.html | 5299 +++++++++++++ 13.3.0/generators/twig-extension/index.html | 15 + .../generators/uninstall-validator/index.html | 15 + 13.3.0/generators/unit-test/index.html | 15 + .../views-argument-default/index.html | 15 + 13.3.0/generators/views-field/index.html | 15 + 13.3.0/generators/views-style/index.html | 15 + 13.3.0/generators/webdriver-test/index.html | 15 + 13.3.0/generators/yml_breakpoints/index.html | 5310 +++++++++++++ 13.3.0/generators/yml_links_action/index.html | 5310 +++++++++++++ .../yml_links_contextual/index.html | 5310 +++++++++++++ 13.3.0/generators/yml_links_menu/index.html | 5310 +++++++++++++ 13.3.0/generators/yml_links_task/index.html | 5310 +++++++++++++ 13.3.0/generators/yml_migration/index.html | 5311 +++++++++++++ .../yml_module-libraries/index.html | 5310 +++++++++++++ 13.3.0/generators/yml_permissions/index.html | 5311 +++++++++++++ 13.3.0/generators/yml_routing/index.html | 5311 +++++++++++++ 13.3.0/generators/yml_services/index.html | 5311 +++++++++++++ .../generators/yml_theme-libraries/index.html | 5308 +++++++++++++ 13.3.0/hooks/index.html | 5358 +++++++++++++ 13.3.0/img/favicon.ico | Bin 0 -> 1150 bytes 13.3.0/index.html | 5365 +++++++++++++ 13.3.0/install/index.html | 5404 +++++++++++++ 13.3.0/io/index.html | 5312 +++++++++++++ 13.3.0/migrate/index.html | 5324 +++++++++++++ 13.3.0/misc/icon_PhpStorm.png | Bin 0 -> 5300 bytes 13.3.0/output-formats-filters/index.html | 5469 ++++++++++++++ 13.3.0/overrides/main.html | 57 + 13.3.0/overrides/partials/tabs.html | 47 + 13.3.0/repl/index.html | 5267 +++++++++++++ 13.3.0/search/search_index.json | 1 + 13.3.0/site-alias-manager/index.html | 5280 +++++++++++++ 13.3.0/site-aliases/index.html | 5650 ++++++++++++++ 13.3.0/sitemap.xml | 1178 +++ 13.3.0/sitemap.xml.gz | Bin 0 -> 1864 bytes 13.3.0/usage/index.html | 5328 +++++++++++++ 13.3.0/using-drush-configuration/index.html | 5549 ++++++++++++++ versions.json | 5 + 476 files changed, 1270559 insertions(+) create mode 100644 13.3.0/404.html create mode 100644 13.3.0/assets/images/favicon.png create mode 100644 13.3.0/assets/javascripts/bundle.220ee61c.min.js create mode 100644 13.3.0/assets/javascripts/bundle.220ee61c.min.js.map create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.ar.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.da.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.de.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.du.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.es.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.fi.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.fr.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.hi.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.hu.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.hy.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.it.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.ja.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.jp.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.kn.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.ko.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.multi.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.nl.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.no.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.pt.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.ro.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.ru.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.sa.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.stemmer.support.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.sv.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.ta.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.te.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.th.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.tr.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.vi.min.js create mode 100644 13.3.0/assets/javascripts/lunr/min/lunr.zh.min.js create mode 100644 13.3.0/assets/javascripts/lunr/tinyseg.js create mode 100644 13.3.0/assets/javascripts/lunr/wordcut.js create mode 100644 13.3.0/assets/javascripts/workers/search.74e28a9f.min.js create mode 100644 13.3.0/assets/javascripts/workers/search.74e28a9f.min.js.map create mode 100644 13.3.0/assets/stylesheets/main.eebd395e.min.css create mode 100644 13.3.0/assets/stylesheets/main.eebd395e.min.css.map create mode 100644 13.3.0/assets/stylesheets/palette.ecc896b0.min.css create mode 100644 13.3.0/assets/stylesheets/palette.ecc896b0.min.css.map create mode 100644 13.3.0/bootstrap/index.html create mode 100644 13.3.0/commands/all/index.html create mode 100644 13.3.0/commands/archive_dump/index.html create mode 100644 13.3.0/commands/ard/index.html create mode 100644 13.3.0/commands/bfoc/index.html create mode 100644 13.3.0/commands/browse/index.html create mode 100644 13.3.0/commands/cache_clear/index.html create mode 100644 13.3.0/commands/cache_get/index.html create mode 100644 13.3.0/commands/cache_rebuild/index.html create mode 100644 13.3.0/commands/cache_set/index.html create mode 100644 13.3.0/commands/cache_tags/index.html create mode 100644 13.3.0/commands/cc/index.html create mode 100644 13.3.0/commands/cdel/index.html create mode 100644 13.3.0/commands/cedit/index.html create mode 100644 13.3.0/commands/cex/index.html create mode 100644 13.3.0/commands/cg/index.html create mode 100644 13.3.0/commands/cget/index.html create mode 100644 13.3.0/commands/cim/index.html create mode 100644 13.3.0/commands/completion/index.html create mode 100644 13.3.0/commands/conf/index.html create mode 100644 13.3.0/commands/config/index.html create mode 100644 13.3.0/commands/config_delete/index.html create mode 100644 13.3.0/commands/config_edit/index.html create mode 100644 13.3.0/commands/config_export/index.html create mode 100644 13.3.0/commands/config_get/index.html create mode 100644 13.3.0/commands/config_import/index.html create mode 100644 13.3.0/commands/config_pull/index.html create mode 100644 13.3.0/commands/config_set/index.html create mode 100644 13.3.0/commands/config_status/index.html create mode 100644 13.3.0/commands/core-cli/index.html create mode 100644 13.3.0/commands/core_cli/index.html create mode 100644 13.3.0/commands/core_cron/index.html create mode 100644 13.3.0/commands/core_edit/index.html create mode 100644 13.3.0/commands/core_requirements/index.html create mode 100644 13.3.0/commands/core_route/index.html create mode 100644 13.3.0/commands/core_rsync/index.html create mode 100644 13.3.0/commands/core_status/index.html create mode 100644 13.3.0/commands/core_topic/index.html create mode 100644 13.3.0/commands/cpull/index.html create mode 100644 13.3.0/commands/cr/index.html create mode 100644 13.3.0/commands/cron/index.html create mode 100644 13.3.0/commands/cs/index.html create mode 100644 13.3.0/commands/cset/index.html create mode 100644 13.3.0/commands/cst/index.html create mode 100644 13.3.0/commands/ct/index.html create mode 100644 13.3.0/commands/dd/index.html create mode 100644 13.3.0/commands/deploy/index.html create mode 100644 13.3.0/commands/deploy_hook-status/index.html create mode 100644 13.3.0/commands/deploy_hook/index.html create mode 100644 13.3.0/commands/deploy_mark-complete/index.html create mode 100644 13.3.0/commands/drupal_directory/index.html create mode 100644 13.3.0/commands/econ/index.html create mode 100644 13.3.0/commands/edel/index.html create mode 100644 13.3.0/commands/en/index.html create mode 100644 13.3.0/commands/entity_create/index.html create mode 100644 13.3.0/commands/entity_delete/index.html create mode 100644 13.3.0/commands/entity_save/index.html create mode 100644 13.3.0/commands/esav/index.html create mode 100644 13.3.0/commands/ev/index.html create mode 100644 13.3.0/commands/eval/index.html create mode 100644 13.3.0/commands/fbi/index.html create mode 100644 13.3.0/commands/fc/index.html create mode 100644 13.3.0/commands/fd/index.html create mode 100644 13.3.0/commands/fi/index.html create mode 100644 13.3.0/commands/field_base-info/index.html create mode 100644 13.3.0/commands/field_base-override-create/index.html create mode 100644 13.3.0/commands/field_create/index.html create mode 100644 13.3.0/commands/field_delete/index.html create mode 100644 13.3.0/commands/field_formatters/index.html create mode 100644 13.3.0/commands/field_info/index.html create mode 100644 13.3.0/commands/field_types/index.html create mode 100644 13.3.0/commands/field_widgets/index.html create mode 100644 13.3.0/commands/gen/index.html create mode 100644 13.3.0/commands/generate/index.html create mode 100644 13.3.0/commands/help/index.html create mode 100644 13.3.0/commands/id/index.html create mode 100644 13.3.0/commands/if/index.html create mode 100644 13.3.0/commands/image_derive/index.html create mode 100644 13.3.0/commands/image_flush/index.html create mode 100644 13.3.0/commands/in/index.html create mode 100644 13.3.0/commands/index.html create mode 100644 13.3.0/commands/install/index.html create mode 100644 13.3.0/commands/jn_get/index.html create mode 100644 13.3.0/commands/list/index.html create mode 100644 13.3.0/commands/locale_check/index.html create mode 100644 13.3.0/commands/locale_clear-status/index.html create mode 100644 13.3.0/commands/locale_export/index.html create mode 100644 13.3.0/commands/locale_import-all/index.html create mode 100644 13.3.0/commands/locale_import/index.html create mode 100644 13.3.0/commands/locale_update/index.html create mode 100644 13.3.0/commands/maint_get/index.html create mode 100644 13.3.0/commands/maint_set/index.html create mode 100644 13.3.0/commands/maint_status/index.html create mode 100644 13.3.0/commands/mfs/index.html create mode 100644 13.3.0/commands/mget/index.html create mode 100644 13.3.0/commands/migrate_fields-source/index.html create mode 100644 13.3.0/commands/migrate_import/index.html create mode 100644 13.3.0/commands/migrate_messages/index.html create mode 100644 13.3.0/commands/migrate_reset-status/index.html create mode 100644 13.3.0/commands/migrate_rollback/index.html create mode 100644 13.3.0/commands/migrate_status/index.html create mode 100644 13.3.0/commands/migrate_stop/index.html create mode 100644 13.3.0/commands/mim/index.html create mode 100644 13.3.0/commands/mk_docs/index.html create mode 100644 13.3.0/commands/mmsg/index.html create mode 100644 13.3.0/commands/mr/index.html create mode 100644 13.3.0/commands/mrs/index.html create mode 100644 13.3.0/commands/ms/index.html create mode 100644 13.3.0/commands/mset/index.html create mode 100644 13.3.0/commands/mst/index.html create mode 100644 13.3.0/commands/mstatus/index.html create mode 100644 13.3.0/commands/php/index.html create mode 100644 13.3.0/commands/php_cli/index.html create mode 100644 13.3.0/commands/php_eval/index.html create mode 100644 13.3.0/commands/php_script/index.html create mode 100644 13.3.0/commands/pm-enable/index.html create mode 100644 13.3.0/commands/pm_enable/index.html create mode 100644 13.3.0/commands/pm_install/index.html create mode 100644 13.3.0/commands/pm_list/index.html create mode 100644 13.3.0/commands/pm_uninstall/index.html create mode 100644 13.3.0/commands/pml/index.html create mode 100644 13.3.0/commands/pmu/index.html create mode 100644 13.3.0/commands/queue_delete/index.html create mode 100644 13.3.0/commands/queue_list/index.html create mode 100644 13.3.0/commands/queue_run/index.html create mode 100644 13.3.0/commands/rap/index.html create mode 100644 13.3.0/commands/rcrt/index.html create mode 100644 13.3.0/commands/rdel/index.html create mode 100644 13.3.0/commands/rebuild/index.html create mode 100644 13.3.0/commands/recipe/index.html create mode 100644 13.3.0/commands/rls/index.html create mode 100644 13.3.0/commands/rmp/index.html create mode 100644 13.3.0/commands/role-add-perm/index.html create mode 100644 13.3.0/commands/role-remove-perm/index.html create mode 100644 13.3.0/commands/role_create/index.html create mode 100644 13.3.0/commands/role_delete/index.html create mode 100644 13.3.0/commands/role_list/index.html create mode 100644 13.3.0/commands/role_perm_add/index.html create mode 100644 13.3.0/commands/role_perm_remove/index.html create mode 100644 13.3.0/commands/route/index.html create mode 100644 13.3.0/commands/rq/index.html create mode 100644 13.3.0/commands/rs/index.html create mode 100644 13.3.0/commands/rsync/index.html create mode 100644 13.3.0/commands/runserver/index.html create mode 100644 13.3.0/commands/sa/index.html create mode 100644 13.3.0/commands/scr/index.html create mode 100644 13.3.0/commands/sdel/index.html create mode 100644 13.3.0/commands/serve/index.html create mode 100644 13.3.0/commands/sget/index.html create mode 100644 13.3.0/commands/si/index.html create mode 100644 13.3.0/commands/sin/index.html create mode 100644 13.3.0/commands/site_alias/index.html create mode 100644 13.3.0/commands/site_install/index.html create mode 100644 13.3.0/commands/site_set/index.html create mode 100644 13.3.0/commands/site_ssh/index.html create mode 100644 13.3.0/commands/sql_cli/index.html create mode 100644 13.3.0/commands/sql_connect/index.html create mode 100644 13.3.0/commands/sql_create/index.html create mode 100644 13.3.0/commands/sql_drop/index.html create mode 100644 13.3.0/commands/sql_dump/index.html create mode 100644 13.3.0/commands/sql_query/index.html create mode 100644 13.3.0/commands/sql_sanitize/index.html create mode 100644 13.3.0/commands/sql_sync/index.html create mode 100644 13.3.0/commands/sqlc/index.html create mode 100644 13.3.0/commands/sqlq/index.html create mode 100644 13.3.0/commands/sqlsan/index.html create mode 100644 13.3.0/commands/sset/index.html create mode 100644 13.3.0/commands/ssh/index.html create mode 100644 13.3.0/commands/st/index.html create mode 100644 13.3.0/commands/state_delete/index.html create mode 100644 13.3.0/commands/state_get/index.html create mode 100644 13.3.0/commands/state_set/index.html create mode 100644 13.3.0/commands/status-report/index.html create mode 100644 13.3.0/commands/status/index.html create mode 100644 13.3.0/commands/theme-enable/index.html create mode 100644 13.3.0/commands/theme_enable/index.html create mode 100644 13.3.0/commands/theme_install/index.html create mode 100644 13.3.0/commands/theme_un/index.html create mode 100644 13.3.0/commands/theme_uninstall/index.html create mode 100644 13.3.0/commands/then/index.html create mode 100644 13.3.0/commands/thin/index.html create mode 100644 13.3.0/commands/thun/index.html create mode 100644 13.3.0/commands/topic/index.html create mode 100644 13.3.0/commands/twig_compile/index.html create mode 100644 13.3.0/commands/twig_debug/index.html create mode 100644 13.3.0/commands/twig_unused/index.html create mode 100644 13.3.0/commands/twigc/index.html create mode 100644 13.3.0/commands/ublk/index.html create mode 100644 13.3.0/commands/ucan/index.html create mode 100644 13.3.0/commands/ucrt/index.html create mode 100644 13.3.0/commands/uinf/index.html create mode 100644 13.3.0/commands/uli/index.html create mode 100644 13.3.0/commands/un/index.html create mode 100644 13.3.0/commands/updatedb/index.html create mode 100644 13.3.0/commands/updatedb_status/index.html create mode 100644 13.3.0/commands/updb/index.html create mode 100644 13.3.0/commands/updbst/index.html create mode 100644 13.3.0/commands/upwd/index.html create mode 100644 13.3.0/commands/urol/index.html create mode 100644 13.3.0/commands/urrol/index.html create mode 100644 13.3.0/commands/use/index.html create mode 100644 13.3.0/commands/user-add-role/index.html create mode 100644 13.3.0/commands/user-remove-role/index.html create mode 100644 13.3.0/commands/user_block/index.html create mode 100644 13.3.0/commands/user_cancel/index.html create mode 100644 13.3.0/commands/user_create/index.html create mode 100644 13.3.0/commands/user_information/index.html create mode 100644 13.3.0/commands/user_login/index.html create mode 100644 13.3.0/commands/user_password/index.html create mode 100644 13.3.0/commands/user_role_add/index.html create mode 100644 13.3.0/commands/user_role_remove/index.html create mode 100644 13.3.0/commands/user_unblock/index.html create mode 100644 13.3.0/commands/uublk/index.html create mode 100644 13.3.0/commands/vd/index.html create mode 100644 13.3.0/commands/vdis/index.html create mode 100644 13.3.0/commands/ven/index.html create mode 100644 13.3.0/commands/version/index.html create mode 100644 13.3.0/commands/vex/index.html create mode 100644 13.3.0/commands/views_dev/index.html create mode 100644 13.3.0/commands/views_disable/index.html create mode 100644 13.3.0/commands/views_enable/index.html create mode 100644 13.3.0/commands/views_execute/index.html create mode 100644 13.3.0/commands/views_list/index.html create mode 100644 13.3.0/commands/vl/index.html create mode 100644 13.3.0/commands/watchdog_delete/index.html create mode 100644 13.3.0/commands/watchdog_list/index.html create mode 100644 13.3.0/commands/watchdog_show-one/index.html create mode 100644 13.3.0/commands/watchdog_show/index.html create mode 100644 13.3.0/commands/watchdog_tail/index.html create mode 100644 13.3.0/commands/wd-del/index.html create mode 100644 13.3.0/commands/wd-delete/index.html create mode 100644 13.3.0/commands/wd-list,watchdog-list/index.html create mode 100644 13.3.0/commands/wd-one/index.html create mode 100644 13.3.0/commands/wd-show/index.html create mode 100644 13.3.0/commands/wd-tail/index.html create mode 100644 13.3.0/commands/wd/index.html create mode 100644 13.3.0/commands/ws/index.html create mode 100644 13.3.0/commands/wt/index.html create mode 100644 13.3.0/commands/y_get_value/index.html create mode 100644 13.3.0/commands/y_lint/index.html create mode 100644 13.3.0/commands/y_unset_key/index.html create mode 100644 13.3.0/commands/y_update_key/index.html create mode 100644 13.3.0/commands/y_update_value/index.html create mode 100644 13.3.0/commands/yaml_get_value/index.html create mode 100644 13.3.0/commands/yaml_lint/index.html create mode 100644 13.3.0/commands/yaml_unset_key/index.html create mode 100644 13.3.0/commands/yaml_update_key/index.html create mode 100644 13.3.0/commands/yaml_update_value/index.html create mode 100644 13.3.0/config-exporting/index.html create mode 100644 13.3.0/contribute/CONTRIBUTING/index.html create mode 100644 13.3.0/contribute/unish/index.html create mode 100644 13.3.0/cron/index.html create mode 100644 13.3.0/css/extra.drush.css create mode 100644 13.3.0/dependency-injection/index.html create mode 100644 13.3.0/deploycommand/index.html create mode 100644 13.3.0/drush_logo-black.png create mode 100644 13.3.0/examples/ArtCommands.php/index.html create mode 100644 13.3.0/examples/PolicyCommands.php/index.html create mode 100644 13.3.0/examples/SiteAliasAlterCommands.php/index.html create mode 100644 13.3.0/examples/SyncViaHttpCommands.php/index.html create mode 100644 13.3.0/examples/XkcdCommands.php/index.html create mode 100644 13.3.0/examples/example.drush.yml/index.html create mode 100644 13.3.0/examples/example.prompt.sh/index.html create mode 100644 13.3.0/examples/example.site.yml/index.html create mode 100644 13.3.0/examples/git-bisect.example.sh/index.html create mode 100644 13.3.0/examples/helloworld.script/index.html create mode 100644 13.3.0/generators/access-checker/index.html create mode 100644 13.3.0/generators/action-links/index.html create mode 100644 13.3.0/generators/action/index.html create mode 100644 13.3.0/generators/all/index.html create mode 100644 13.3.0/generators/apache-virtual-host/index.html create mode 100644 13.3.0/generators/block/index.html create mode 100644 13.3.0/generators/breadcrumb-builder/index.html create mode 100644 13.3.0/generators/breakpoints/index.html create mode 100644 13.3.0/generators/browser-test/index.html create mode 100644 13.3.0/generators/bundle-class/index.html create mode 100644 13.3.0/generators/cache-context/index.html create mode 100644 13.3.0/generators/ckeditor-plugin/index.html create mode 100644 13.3.0/generators/ckeditor/index.html create mode 100644 13.3.0/generators/composer.json/index.html create mode 100644 13.3.0/generators/composer/index.html create mode 100644 13.3.0/generators/condition/index.html create mode 100644 13.3.0/generators/config-entity/index.html create mode 100644 13.3.0/generators/config-form/index.html create mode 100644 13.3.0/generators/confirm-form/index.html create mode 100644 13.3.0/generators/constraint/index.html create mode 100644 13.3.0/generators/content-entity/index.html create mode 100644 13.3.0/generators/contextual-links/index.html create mode 100644 13.3.0/generators/controller/index.html create mode 100644 13.3.0/generators/custom-service/index.html create mode 100644 13.3.0/generators/daf/index.html create mode 100644 13.3.0/generators/dcf/index.html create mode 100644 13.3.0/generators/dg/index.html create mode 100644 13.3.0/generators/drush_alias-file/index.html create mode 100644 13.3.0/generators/drush_command-file/index.html create mode 100644 13.3.0/generators/drush_generator/index.html create mode 100644 13.3.0/generators/drush_symfony-command/index.html create mode 100644 13.3.0/generators/entity-reference-selection/index.html create mode 100644 13.3.0/generators/entity_bundle-class/index.html create mode 100644 13.3.0/generators/entity_configuration/index.html create mode 100644 13.3.0/generators/entity_content/index.html create mode 100644 13.3.0/generators/event-subscriber/index.html create mode 100644 13.3.0/generators/field-formatter/index.html create mode 100644 13.3.0/generators/field-type/index.html create mode 100644 13.3.0/generators/field-widget/index.html create mode 100644 13.3.0/generators/field/index.html create mode 100644 13.3.0/generators/filter/index.html create mode 100644 13.3.0/generators/form/index.html create mode 100644 13.3.0/generators/form_config/index.html create mode 100644 13.3.0/generators/form_confirm/index.html create mode 100644 13.3.0/generators/form_simple/index.html create mode 100644 13.3.0/generators/hook/index.html create mode 100644 13.3.0/generators/index.html create mode 100644 13.3.0/generators/install-file/index.html create mode 100644 13.3.0/generators/javascript/index.html create mode 100644 13.3.0/generators/kernel-test/index.html create mode 100644 13.3.0/generators/layout/index.html create mode 100644 13.3.0/generators/logger/index.html create mode 100644 13.3.0/generators/menu-link/index.html create mode 100644 13.3.0/generators/menu-links/index.html create mode 100644 13.3.0/generators/middleware/index.html create mode 100644 13.3.0/generators/migrate-destination/index.html create mode 100644 13.3.0/generators/migrate-process/index.html create mode 100644 13.3.0/generators/migrate-source/index.html create mode 100644 13.3.0/generators/migration.yml/index.html create mode 100644 13.3.0/generators/migration/index.html create mode 100644 13.3.0/generators/misc_apache-virtual-host/index.html create mode 100644 13.3.0/generators/misc_nginx-virtual-host/index.html create mode 100644 13.3.0/generators/module-libraries/index.html create mode 100644 13.3.0/generators/module/index.html create mode 100644 13.3.0/generators/nginx-virtual-host/index.html create mode 100644 13.3.0/generators/nightwatch-test/index.html create mode 100644 13.3.0/generators/param-converter/index.html create mode 100644 13.3.0/generators/path-processor/index.html create mode 100644 13.3.0/generators/permissions.yml/index.html create mode 100644 13.3.0/generators/permissions/index.html create mode 100644 13.3.0/generators/phpstorm-meta/index.html create mode 100644 13.3.0/generators/plugin_action/index.html create mode 100644 13.3.0/generators/plugin_block/index.html create mode 100644 13.3.0/generators/plugin_ckeditor/index.html create mode 100644 13.3.0/generators/plugin_condition/index.html create mode 100644 13.3.0/generators/plugin_constraint/index.html create mode 100644 13.3.0/generators/plugin_entity-reference-selection/index.html create mode 100644 13.3.0/generators/plugin_field_formatter/index.html create mode 100644 13.3.0/generators/plugin_field_type/index.html create mode 100644 13.3.0/generators/plugin_field_widget/index.html create mode 100644 13.3.0/generators/plugin_filter/index.html create mode 100644 13.3.0/generators/plugin_manager/index.html create mode 100644 13.3.0/generators/plugin_menu-link/index.html create mode 100644 13.3.0/generators/plugin_migrate_destination/index.html create mode 100644 13.3.0/generators/plugin_migrate_process/index.html create mode 100644 13.3.0/generators/plugin_migrate_source/index.html create mode 100644 13.3.0/generators/plugin_queue-worker/index.html create mode 100644 13.3.0/generators/plugin_rest-resource/index.html create mode 100644 13.3.0/generators/plugin_views_argument-default/index.html create mode 100644 13.3.0/generators/plugin_views_field/index.html create mode 100644 13.3.0/generators/plugin_views_style/index.html create mode 100644 13.3.0/generators/queue-worker/index.html create mode 100644 13.3.0/generators/readme/index.html create mode 100644 13.3.0/generators/render-element/index.html create mode 100644 13.3.0/generators/request-policy/index.html create mode 100644 13.3.0/generators/response-policy/index.html create mode 100644 13.3.0/generators/rest-resource/index.html create mode 100644 13.3.0/generators/route-subscriber/index.html create mode 100644 13.3.0/generators/routing.yml/index.html create mode 100644 13.3.0/generators/routing/index.html create mode 100644 13.3.0/generators/sdc/index.html create mode 100644 13.3.0/generators/service-provider/index.html create mode 100644 13.3.0/generators/service_access-checker/index.html create mode 100644 13.3.0/generators/service_breadcrumb-builder/index.html create mode 100644 13.3.0/generators/service_cache-context/index.html create mode 100644 13.3.0/generators/service_custom/index.html create mode 100644 13.3.0/generators/service_event-subscriber/index.html create mode 100644 13.3.0/generators/service_logger/index.html create mode 100644 13.3.0/generators/service_middleware/index.html create mode 100644 13.3.0/generators/service_param-converter/index.html create mode 100644 13.3.0/generators/service_path-processor/index.html create mode 100644 13.3.0/generators/service_request-policy/index.html create mode 100644 13.3.0/generators/service_response-policy/index.html create mode 100644 13.3.0/generators/service_route-subscriber/index.html create mode 100644 13.3.0/generators/service_theme-negotiator/index.html create mode 100644 13.3.0/generators/service_twig-extension/index.html create mode 100644 13.3.0/generators/service_uninstall-validator/index.html create mode 100644 13.3.0/generators/services.yml/index.html create mode 100644 13.3.0/generators/services/index.html create mode 100644 13.3.0/generators/single-directory-component/index.html create mode 100644 13.3.0/generators/symfony-command/index.html create mode 100644 13.3.0/generators/task-links/index.html create mode 100644 13.3.0/generators/test_browser/index.html create mode 100644 13.3.0/generators/test_kernel/index.html create mode 100644 13.3.0/generators/test_nightwatch/index.html create mode 100644 13.3.0/generators/test_unit/index.html create mode 100644 13.3.0/generators/test_webdriver/index.html create mode 100644 13.3.0/generators/theme-libraries/index.html create mode 100644 13.3.0/generators/theme-negotiator/index.html create mode 100644 13.3.0/generators/theme/index.html create mode 100644 13.3.0/generators/theme_settings/index.html create mode 100644 13.3.0/generators/twig-extension/index.html create mode 100644 13.3.0/generators/uninstall-validator/index.html create mode 100644 13.3.0/generators/unit-test/index.html create mode 100644 13.3.0/generators/views-argument-default/index.html create mode 100644 13.3.0/generators/views-field/index.html create mode 100644 13.3.0/generators/views-style/index.html create mode 100644 13.3.0/generators/webdriver-test/index.html create mode 100644 13.3.0/generators/yml_breakpoints/index.html create mode 100644 13.3.0/generators/yml_links_action/index.html create mode 100644 13.3.0/generators/yml_links_contextual/index.html create mode 100644 13.3.0/generators/yml_links_menu/index.html create mode 100644 13.3.0/generators/yml_links_task/index.html create mode 100644 13.3.0/generators/yml_migration/index.html create mode 100644 13.3.0/generators/yml_module-libraries/index.html create mode 100644 13.3.0/generators/yml_permissions/index.html create mode 100644 13.3.0/generators/yml_routing/index.html create mode 100644 13.3.0/generators/yml_services/index.html create mode 100644 13.3.0/generators/yml_theme-libraries/index.html create mode 100644 13.3.0/hooks/index.html create mode 100644 13.3.0/img/favicon.ico create mode 100644 13.3.0/index.html create mode 100644 13.3.0/install/index.html create mode 100644 13.3.0/io/index.html create mode 100644 13.3.0/migrate/index.html create mode 100644 13.3.0/misc/icon_PhpStorm.png create mode 100644 13.3.0/output-formats-filters/index.html create mode 100644 13.3.0/overrides/main.html create mode 100644 13.3.0/overrides/partials/tabs.html create mode 100644 13.3.0/repl/index.html create mode 100644 13.3.0/search/search_index.json create mode 100644 13.3.0/site-alias-manager/index.html create mode 100644 13.3.0/site-aliases/index.html create mode 100644 13.3.0/sitemap.xml create mode 100644 13.3.0/sitemap.xml.gz create mode 100644 13.3.0/usage/index.html create mode 100644 13.3.0/using-drush-configuration/index.html diff --git a/13.3.0/404.html b/13.3.0/404.html new file mode 100644 index 0000000000..a92abc14f8 --- /dev/null +++ b/13.3.0/404.html @@ -0,0 +1,5196 @@ + + + + + + + + + + + + + + + + + + + + + + Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ +

404 - Not found

+ +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/assets/images/favicon.png b/13.3.0/assets/images/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..1cf13b9f9d978896599290a74f77d5dbe7d1655c GIT binary patch literal 1870 zcmV-U2eJ5xP)Gc)JR9QMau)O=X#!i9;T z37kk-upj^(fsR36MHs_+1RCI)NNu9}lD0S{B^g8PN?Ww(5|~L#Ng*g{WsqleV}|#l zz8@ri&cTzw_h33bHI+12+kK6WN$h#n5cD8OQt`5kw6p~9H3()bUQ8OS4Q4HTQ=1Ol z_JAocz`fLbT2^{`8n~UAo=#AUOf=SOq4pYkt;XbC&f#7lb$*7=$na!mWCQ`dBQsO0 zLFBSPj*N?#u5&pf2t4XjEGH|=pPQ8xh7tpx;US5Cx_Ju;!O`ya-yF`)b%TEt5>eP1ZX~}sjjA%FJF?h7cX8=b!DZl<6%Cv z*G0uvvU+vmnpLZ2paivG-(cd*y3$hCIcsZcYOGh{$&)A6*XX&kXZd3G8m)G$Zz-LV z^GF3VAW^Mdv!)4OM8EgqRiz~*Cji;uzl2uC9^=8I84vNp;ltJ|q-*uQwGp2ma6cY7 z;`%`!9UXO@fr&Ebapfs34OmS9^u6$)bJxrucutf>`dKPKT%%*d3XlFVKunp9 zasduxjrjs>f8V=D|J=XNZp;_Zy^WgQ$9WDjgY=z@stwiEBm9u5*|34&1Na8BMjjgf3+SHcr`5~>oz1Y?SW^=K z^bTyO6>Gar#P_W2gEMwq)ot3; zREHn~U&Dp0l6YT0&k-wLwYjb?5zGK`W6S2v+K>AM(95m2C20L|3m~rN8dprPr@t)5lsk9Hu*W z?pS990s;Ez=+Rj{x7p``4>+c0G5^pYnB1^!TL=(?HLHZ+HicG{~4F1d^5Awl_2!1jICM-!9eoLhbbT^;yHcefyTAaqRcY zmuctDopPT!%k+}x%lZRKnzykr2}}XfG_ne?nRQO~?%hkzo;@RN{P6o`&mMUWBYMTe z6i8ChtjX&gXl`nvrU>jah)2iNM%JdjqoaeaU%yVn!^70x-flljp6Q5tK}5}&X8&&G zX3fpb3E(!rH=zVI_9Gjl45w@{(ITqngWFe7@9{mX;tO25Z_8 zQHEpI+FkTU#4xu>RkN>b3Tnc3UpWzPXWm#o55GKF09j^Mh~)K7{QqbO_~(@CVq! zS<8954|P8mXN2MRs86xZ&Q4EfM@JB94b=(YGuk)s&^jiSF=t3*oNK3`rD{H`yQ?d; ztE=laAUoZx5?RC8*WKOj`%LXEkgDd>&^Q4M^z`%u0rg-It=hLCVsq!Z%^6eB-OvOT zFZ28TN&cRmgU}Elrnk43)!>Z1FCPL2K$7}gwzIc48NX}#!A1BpJP?#v5wkNprhV** z?Cpalt1oH&{r!o3eSKc&ap)iz2BTn_VV`4>9M^b3;(YY}4>#ML6{~(4mH+?%07*qo IM6N<$f(jP3KmY&$ literal 0 HcmV?d00001 diff --git a/13.3.0/assets/javascripts/bundle.220ee61c.min.js b/13.3.0/assets/javascripts/bundle.220ee61c.min.js new file mode 100644 index 0000000000..116072a11e --- /dev/null +++ b/13.3.0/assets/javascripts/bundle.220ee61c.min.js @@ -0,0 +1,29 @@ +"use strict";(()=>{var Ci=Object.create;var gr=Object.defineProperty;var Ri=Object.getOwnPropertyDescriptor;var ki=Object.getOwnPropertyNames,Ht=Object.getOwnPropertySymbols,Hi=Object.getPrototypeOf,yr=Object.prototype.hasOwnProperty,nn=Object.prototype.propertyIsEnumerable;var rn=(e,t,r)=>t in e?gr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,P=(e,t)=>{for(var r in t||(t={}))yr.call(t,r)&&rn(e,r,t[r]);if(Ht)for(var r of Ht(t))nn.call(t,r)&&rn(e,r,t[r]);return e};var on=(e,t)=>{var r={};for(var n in e)yr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ht)for(var n of Ht(e))t.indexOf(n)<0&&nn.call(e,n)&&(r[n]=e[n]);return r};var Pt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Pi=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ki(t))!yr.call(e,o)&&o!==r&&gr(e,o,{get:()=>t[o],enumerable:!(n=Ri(t,o))||n.enumerable});return e};var yt=(e,t,r)=>(r=e!=null?Ci(Hi(e)):{},Pi(t||!e||!e.__esModule?gr(r,"default",{value:e,enumerable:!0}):r,e));var sn=Pt((xr,an)=>{(function(e,t){typeof xr=="object"&&typeof an!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(xr,function(){"use strict";function e(r){var n=!0,o=!1,i=null,s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function a(O){return!!(O&&O!==document&&O.nodeName!=="HTML"&&O.nodeName!=="BODY"&&"classList"in O&&"contains"in O.classList)}function f(O){var Qe=O.type,De=O.tagName;return!!(De==="INPUT"&&s[Qe]&&!O.readOnly||De==="TEXTAREA"&&!O.readOnly||O.isContentEditable)}function c(O){O.classList.contains("focus-visible")||(O.classList.add("focus-visible"),O.setAttribute("data-focus-visible-added",""))}function u(O){O.hasAttribute("data-focus-visible-added")&&(O.classList.remove("focus-visible"),O.removeAttribute("data-focus-visible-added"))}function p(O){O.metaKey||O.altKey||O.ctrlKey||(a(r.activeElement)&&c(r.activeElement),n=!0)}function m(O){n=!1}function d(O){a(O.target)&&(n||f(O.target))&&c(O.target)}function h(O){a(O.target)&&(O.target.classList.contains("focus-visible")||O.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(i),i=window.setTimeout(function(){o=!1},100),u(O.target))}function v(O){document.visibilityState==="hidden"&&(o&&(n=!0),Y())}function Y(){document.addEventListener("mousemove",N),document.addEventListener("mousedown",N),document.addEventListener("mouseup",N),document.addEventListener("pointermove",N),document.addEventListener("pointerdown",N),document.addEventListener("pointerup",N),document.addEventListener("touchmove",N),document.addEventListener("touchstart",N),document.addEventListener("touchend",N)}function B(){document.removeEventListener("mousemove",N),document.removeEventListener("mousedown",N),document.removeEventListener("mouseup",N),document.removeEventListener("pointermove",N),document.removeEventListener("pointerdown",N),document.removeEventListener("pointerup",N),document.removeEventListener("touchmove",N),document.removeEventListener("touchstart",N),document.removeEventListener("touchend",N)}function N(O){O.target.nodeName&&O.target.nodeName.toLowerCase()==="html"||(n=!1,B())}document.addEventListener("keydown",p,!0),document.addEventListener("mousedown",m,!0),document.addEventListener("pointerdown",m,!0),document.addEventListener("touchstart",m,!0),document.addEventListener("visibilitychange",v,!0),Y(),r.addEventListener("focus",d,!0),r.addEventListener("blur",h,!0),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host?r.host.setAttribute("data-js-focus-visible",""):r.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=e;var t;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(r){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}typeof document!="undefined"&&e(document)})});var cn=Pt(Er=>{(function(e){var t=function(){try{return!!Symbol.iterator}catch(c){return!1}},r=t(),n=function(c){var u={next:function(){var p=c.shift();return{done:p===void 0,value:p}}};return r&&(u[Symbol.iterator]=function(){return u}),u},o=function(c){return encodeURIComponent(c).replace(/%20/g,"+")},i=function(c){return decodeURIComponent(String(c).replace(/\+/g," "))},s=function(){var c=function(p){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var m=typeof p;if(m!=="undefined")if(m==="string")p!==""&&this._fromString(p);else if(p instanceof c){var d=this;p.forEach(function(B,N){d.append(N,B)})}else if(p!==null&&m==="object")if(Object.prototype.toString.call(p)==="[object Array]")for(var h=0;hd[0]?1:0}),c._entries&&(c._entries={});for(var p=0;p1?i(d[1]):"")}})})(typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:Er);(function(e){var t=function(){try{var o=new e.URL("b","http://a");return o.pathname="c d",o.href==="http://a/c%20d"&&o.searchParams}catch(i){return!1}},r=function(){var o=e.URL,i=function(f,c){typeof f!="string"&&(f=String(f)),c&&typeof c!="string"&&(c=String(c));var u=document,p;if(c&&(e.location===void 0||c!==e.location.href)){c=c.toLowerCase(),u=document.implementation.createHTMLDocument(""),p=u.createElement("base"),p.href=c,u.head.appendChild(p);try{if(p.href.indexOf(c)!==0)throw new Error(p.href)}catch(O){throw new Error("URL unable to set base "+c+" due to "+O)}}var m=u.createElement("a");m.href=f,p&&(u.body.appendChild(m),m.href=m.href);var d=u.createElement("input");if(d.type="url",d.value=f,m.protocol===":"||!/:/.test(m.href)||!d.checkValidity()&&!c)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:m});var h=new e.URLSearchParams(this.search),v=!0,Y=!0,B=this;["append","delete","set"].forEach(function(O){var Qe=h[O];h[O]=function(){Qe.apply(h,arguments),v&&(Y=!1,B.search=h.toString(),Y=!0)}}),Object.defineProperty(this,"searchParams",{value:h,enumerable:!0});var N=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==N&&(N=this.search,Y&&(v=!1,this.searchParams._fromString(this.search),v=!0))}})},s=i.prototype,a=function(f){Object.defineProperty(s,f,{get:function(){return this._anchorElement[f]},set:function(c){this._anchorElement[f]=c},enumerable:!0})};["hash","host","hostname","port","protocol"].forEach(function(f){a(f)}),Object.defineProperty(s,"search",{get:function(){return this._anchorElement.search},set:function(f){this._anchorElement.search=f,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(s,{toString:{get:function(){var f=this;return function(){return f.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(f){this._anchorElement.href=f,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(f){this._anchorElement.pathname=f},enumerable:!0},origin:{get:function(){var f={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],c=this._anchorElement.port!=f&&this._anchorElement.port!=="";return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(c?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(f){},enumerable:!0},username:{get:function(){return""},set:function(f){},enumerable:!0}}),i.createObjectURL=function(f){return o.createObjectURL.apply(o,arguments)},i.revokeObjectURL=function(f){return o.revokeObjectURL.apply(o,arguments)},e.URL=i};if(t()||r(),e.location!==void 0&&!("origin"in e.location)){var n=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:n,enumerable:!0})}catch(o){setInterval(function(){e.location.origin=n()},100)}}})(typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:Er)});var qr=Pt((Mt,Nr)=>{/*! + * clipboard.js v2.0.11 + * https://clipboardjs.com/ + * + * Licensed MIT © Zeno Rocha + */(function(t,r){typeof Mt=="object"&&typeof Nr=="object"?Nr.exports=r():typeof define=="function"&&define.amd?define([],r):typeof Mt=="object"?Mt.ClipboardJS=r():t.ClipboardJS=r()})(Mt,function(){return function(){var e={686:function(n,o,i){"use strict";i.d(o,{default:function(){return Ai}});var s=i(279),a=i.n(s),f=i(370),c=i.n(f),u=i(817),p=i.n(u);function m(j){try{return document.execCommand(j)}catch(T){return!1}}var d=function(T){var E=p()(T);return m("cut"),E},h=d;function v(j){var T=document.documentElement.getAttribute("dir")==="rtl",E=document.createElement("textarea");E.style.fontSize="12pt",E.style.border="0",E.style.padding="0",E.style.margin="0",E.style.position="absolute",E.style[T?"right":"left"]="-9999px";var H=window.pageYOffset||document.documentElement.scrollTop;return E.style.top="".concat(H,"px"),E.setAttribute("readonly",""),E.value=j,E}var Y=function(T,E){var H=v(T);E.container.appendChild(H);var I=p()(H);return m("copy"),H.remove(),I},B=function(T){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},H="";return typeof T=="string"?H=Y(T,E):T instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(T==null?void 0:T.type)?H=Y(T.value,E):(H=p()(T),m("copy")),H},N=B;function O(j){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(E){return typeof E}:O=function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},O(j)}var Qe=function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=T.action,H=E===void 0?"copy":E,I=T.container,q=T.target,Me=T.text;if(H!=="copy"&&H!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(q!==void 0)if(q&&O(q)==="object"&&q.nodeType===1){if(H==="copy"&&q.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(H==="cut"&&(q.hasAttribute("readonly")||q.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Me)return N(Me,{container:I});if(q)return H==="cut"?h(q):N(q,{container:I})},De=Qe;function $e(j){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$e=function(E){return typeof E}:$e=function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},$e(j)}function Ei(j,T){if(!(j instanceof T))throw new TypeError("Cannot call a class as a function")}function tn(j,T){for(var E=0;E0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof I.action=="function"?I.action:this.defaultAction,this.target=typeof I.target=="function"?I.target:this.defaultTarget,this.text=typeof I.text=="function"?I.text:this.defaultText,this.container=$e(I.container)==="object"?I.container:document.body}},{key:"listenClick",value:function(I){var q=this;this.listener=c()(I,"click",function(Me){return q.onClick(Me)})}},{key:"onClick",value:function(I){var q=I.delegateTarget||I.currentTarget,Me=this.action(q)||"copy",kt=De({action:Me,container:this.container,target:this.target(q),text:this.text(q)});this.emit(kt?"success":"error",{action:Me,text:kt,trigger:q,clearSelection:function(){q&&q.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(I){return vr("action",I)}},{key:"defaultTarget",value:function(I){var q=vr("target",I);if(q)return document.querySelector(q)}},{key:"defaultText",value:function(I){return vr("text",I)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(I){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return N(I,q)}},{key:"cut",value:function(I){return h(I)}},{key:"isSupported",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],q=typeof I=="string"?[I]:I,Me=!!document.queryCommandSupported;return q.forEach(function(kt){Me=Me&&!!document.queryCommandSupported(kt)}),Me}}]),E}(a()),Ai=Li},828:function(n){var o=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function s(a,f){for(;a&&a.nodeType!==o;){if(typeof a.matches=="function"&&a.matches(f))return a;a=a.parentNode}}n.exports=s},438:function(n,o,i){var s=i(828);function a(u,p,m,d,h){var v=c.apply(this,arguments);return u.addEventListener(m,v,h),{destroy:function(){u.removeEventListener(m,v,h)}}}function f(u,p,m,d,h){return typeof u.addEventListener=="function"?a.apply(null,arguments):typeof m=="function"?a.bind(null,document).apply(null,arguments):(typeof u=="string"&&(u=document.querySelectorAll(u)),Array.prototype.map.call(u,function(v){return a(v,p,m,d,h)}))}function c(u,p,m,d){return function(h){h.delegateTarget=s(h.target,p),h.delegateTarget&&d.call(u,h)}}n.exports=f},879:function(n,o){o.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},o.nodeList=function(i){var s=Object.prototype.toString.call(i);return i!==void 0&&(s==="[object NodeList]"||s==="[object HTMLCollection]")&&"length"in i&&(i.length===0||o.node(i[0]))},o.string=function(i){return typeof i=="string"||i instanceof String},o.fn=function(i){var s=Object.prototype.toString.call(i);return s==="[object Function]"}},370:function(n,o,i){var s=i(879),a=i(438);function f(m,d,h){if(!m&&!d&&!h)throw new Error("Missing required arguments");if(!s.string(d))throw new TypeError("Second argument must be a String");if(!s.fn(h))throw new TypeError("Third argument must be a Function");if(s.node(m))return c(m,d,h);if(s.nodeList(m))return u(m,d,h);if(s.string(m))return p(m,d,h);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function c(m,d,h){return m.addEventListener(d,h),{destroy:function(){m.removeEventListener(d,h)}}}function u(m,d,h){return Array.prototype.forEach.call(m,function(v){v.addEventListener(d,h)}),{destroy:function(){Array.prototype.forEach.call(m,function(v){v.removeEventListener(d,h)})}}}function p(m,d,h){return a(document.body,m,d,h)}n.exports=f},817:function(n){function o(i){var s;if(i.nodeName==="SELECT")i.focus(),s=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var a=i.hasAttribute("readonly");a||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),a||i.removeAttribute("readonly"),s=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var f=window.getSelection(),c=document.createRange();c.selectNodeContents(i),f.removeAllRanges(),f.addRange(c),s=f.toString()}return s}n.exports=o},279:function(n){function o(){}o.prototype={on:function(i,s,a){var f=this.e||(this.e={});return(f[i]||(f[i]=[])).push({fn:s,ctx:a}),this},once:function(i,s,a){var f=this;function c(){f.off(i,c),s.apply(a,arguments)}return c._=s,this.on(i,c,a)},emit:function(i){var s=[].slice.call(arguments,1),a=((this.e||(this.e={}))[i]||[]).slice(),f=0,c=a.length;for(f;f{"use strict";/*! + * escape-html + * Copyright(c) 2012-2013 TJ Holowaychuk + * Copyright(c) 2015 Andreas Lubbe + * Copyright(c) 2015 Tiancheng "Timothy" Gu + * MIT Licensed + */var rs=/["'&<>]/;Yo.exports=ns;function ns(e){var t=""+e,r=rs.exec(t);if(!r)return t;var n,o="",i=0,s=0;for(i=r.index;i0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function W(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i}function D(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n1||a(m,d)})})}function a(m,d){try{f(n[m](d))}catch(h){p(i[0][3],h)}}function f(m){m.value instanceof et?Promise.resolve(m.value.v).then(c,u):p(i[0][2],m)}function c(m){a("next",m)}function u(m){a("throw",m)}function p(m,d){m(d),i.shift(),i.length&&a(i[0][0],i[0][1])}}function pn(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Ee=="function"?Ee(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(s){return new Promise(function(a,f){s=e[i](s),o(a,f,s.done,s.value)})}}function o(i,s,a,f){Promise.resolve(f).then(function(c){i({value:c,done:a})},s)}}function C(e){return typeof e=="function"}function at(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var It=at(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription: +`+r.map(function(n,o){return o+1+") "+n.toString()}).join(` + `):"",this.name="UnsubscriptionError",this.errors=r}});function Ve(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ie=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=Ee(s),f=a.next();!f.done;f=a.next()){var c=f.value;c.remove(this)}}catch(v){t={error:v}}finally{try{f&&!f.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var u=this.initialTeardown;if(C(u))try{u()}catch(v){i=v instanceof It?v.errors:[v]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var m=Ee(p),d=m.next();!d.done;d=m.next()){var h=d.value;try{ln(h)}catch(v){i=i!=null?i:[],v instanceof It?i=D(D([],W(i)),W(v.errors)):i.push(v)}}}catch(v){n={error:v}}finally{try{d&&!d.done&&(o=m.return)&&o.call(m)}finally{if(n)throw n.error}}}if(i)throw new It(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)ln(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Ve(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Ve(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var Sr=Ie.EMPTY;function jt(e){return e instanceof Ie||e&&"closed"in e&&C(e.remove)&&C(e.add)&&C(e.unsubscribe)}function ln(e){C(e)?e():e.unsubscribe()}var Le={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var st={setTimeout:function(e,t){for(var r=[],n=2;n0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?Sr:(this.currentObservers=null,a.push(r),new Ie(function(){n.currentObservers=null,Ve(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,s=n.isStopped;o?r.error(i):s&&r.complete()},t.prototype.asObservable=function(){var r=new F;return r.source=this,r},t.create=function(r,n){return new xn(r,n)},t}(F);var xn=function(e){ie(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Sr},t}(x);var Et={now:function(){return(Et.delegate||Date).now()},delegate:void 0};var wt=function(e){ie(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=Et);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,s=n._infiniteTimeWindow,a=n._timestampProvider,f=n._windowTime;o||(i.push(r),!s&&i.push(a.now()+f)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),o=this,i=o._infiniteTimeWindow,s=o._buffer,a=s.slice(),f=0;f0?e.prototype.requestAsyncId.call(this,r,n,o):(r.actions.push(this),r._scheduled||(r._scheduled=ut.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,n,o){var i;if(o===void 0&&(o=0),o!=null?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,o);var s=r.actions;n!=null&&((i=s[s.length-1])===null||i===void 0?void 0:i.id)!==n&&(ut.cancelAnimationFrame(n),r._scheduled=void 0)},t}(Wt);var Sn=function(e){ie(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var o=this.actions,i;r=r||o.shift();do if(i=r.execute(r.state,r.delay))break;while((r=o[0])&&r.id===n&&o.shift());if(this._active=!1,i){for(;(r=o[0])&&r.id===n&&o.shift();)r.unsubscribe();throw i}},t}(Dt);var Oe=new Sn(wn);var M=new F(function(e){return e.complete()});function Vt(e){return e&&C(e.schedule)}function Cr(e){return e[e.length-1]}function Ye(e){return C(Cr(e))?e.pop():void 0}function Te(e){return Vt(Cr(e))?e.pop():void 0}function zt(e,t){return typeof Cr(e)=="number"?e.pop():t}var pt=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Nt(e){return C(e==null?void 0:e.then)}function qt(e){return C(e[ft])}function Kt(e){return Symbol.asyncIterator&&C(e==null?void 0:e[Symbol.asyncIterator])}function Qt(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function zi(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Yt=zi();function Gt(e){return C(e==null?void 0:e[Yt])}function Bt(e){return un(this,arguments,function(){var r,n,o,i;return $t(this,function(s){switch(s.label){case 0:r=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,et(r.read())];case 3:return n=s.sent(),o=n.value,i=n.done,i?[4,et(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,et(o)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function Jt(e){return C(e==null?void 0:e.getReader)}function U(e){if(e instanceof F)return e;if(e!=null){if(qt(e))return Ni(e);if(pt(e))return qi(e);if(Nt(e))return Ki(e);if(Kt(e))return On(e);if(Gt(e))return Qi(e);if(Jt(e))return Yi(e)}throw Qt(e)}function Ni(e){return new F(function(t){var r=e[ft]();if(C(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function qi(e){return new F(function(t){for(var r=0;r=2;return function(n){return n.pipe(e?A(function(o,i){return e(o,i,n)}):de,ge(1),r?He(t):Dn(function(){return new Zt}))}}function Vn(){for(var e=[],t=0;t=2,!0))}function pe(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new x}:t,n=e.resetOnError,o=n===void 0?!0:n,i=e.resetOnComplete,s=i===void 0?!0:i,a=e.resetOnRefCountZero,f=a===void 0?!0:a;return function(c){var u,p,m,d=0,h=!1,v=!1,Y=function(){p==null||p.unsubscribe(),p=void 0},B=function(){Y(),u=m=void 0,h=v=!1},N=function(){var O=u;B(),O==null||O.unsubscribe()};return y(function(O,Qe){d++,!v&&!h&&Y();var De=m=m!=null?m:r();Qe.add(function(){d--,d===0&&!v&&!h&&(p=$r(N,f))}),De.subscribe(Qe),!u&&d>0&&(u=new rt({next:function($e){return De.next($e)},error:function($e){v=!0,Y(),p=$r(B,o,$e),De.error($e)},complete:function(){h=!0,Y(),p=$r(B,s),De.complete()}}),U(O).subscribe(u))})(c)}}function $r(e,t){for(var r=[],n=2;ne.next(document)),e}function K(e,t=document){return Array.from(t.querySelectorAll(e))}function z(e,t=document){let r=ce(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function ce(e,t=document){return t.querySelector(e)||void 0}function _e(){return document.activeElement instanceof HTMLElement&&document.activeElement||void 0}function tr(e){return L(b(document.body,"focusin"),b(document.body,"focusout")).pipe(ke(1),l(()=>{let t=_e();return typeof t!="undefined"?e.contains(t):!1}),V(e===_e()),J())}function Xe(e){return{x:e.offsetLeft,y:e.offsetTop}}function Kn(e){return L(b(window,"load"),b(window,"resize")).pipe(Ce(0,Oe),l(()=>Xe(e)),V(Xe(e)))}function rr(e){return{x:e.scrollLeft,y:e.scrollTop}}function dt(e){return L(b(e,"scroll"),b(window,"resize")).pipe(Ce(0,Oe),l(()=>rr(e)),V(rr(e)))}var Yn=function(){if(typeof Map!="undefined")return Map;function e(t,r){var n=-1;return t.some(function(o,i){return o[0]===r?(n=i,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(r,n){var o=e(this.__entries__,r);~o?this.__entries__[o][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,o=e(n,r);~o&&n.splice(o,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var o=0,i=this.__entries__;o0},e.prototype.connect_=function(){!Wr||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),va?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Wr||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,o=ba.some(function(i){return!!~n.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Gn=function(e,t){for(var r=0,n=Object.keys(t);r0},e}(),Jn=typeof WeakMap!="undefined"?new WeakMap:new Yn,Xn=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=ga.getInstance(),n=new La(t,r,this);Jn.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Xn.prototype[e]=function(){var t;return(t=Jn.get(this))[e].apply(t,arguments)}});var Aa=function(){return typeof nr.ResizeObserver!="undefined"?nr.ResizeObserver:Xn}(),Zn=Aa;var eo=new x,Ca=$(()=>k(new Zn(e=>{for(let t of e)eo.next(t)}))).pipe(g(e=>L(ze,k(e)).pipe(R(()=>e.disconnect()))),X(1));function he(e){return{width:e.offsetWidth,height:e.offsetHeight}}function ye(e){return Ca.pipe(S(t=>t.observe(e)),g(t=>eo.pipe(A(({target:r})=>r===e),R(()=>t.unobserve(e)),l(()=>he(e)))),V(he(e)))}function bt(e){return{width:e.scrollWidth,height:e.scrollHeight}}function ar(e){let t=e.parentElement;for(;t&&(e.scrollWidth<=t.scrollWidth&&e.scrollHeight<=t.scrollHeight);)t=(e=t).parentElement;return t?e:void 0}var to=new x,Ra=$(()=>k(new IntersectionObserver(e=>{for(let t of e)to.next(t)},{threshold:0}))).pipe(g(e=>L(ze,k(e)).pipe(R(()=>e.disconnect()))),X(1));function sr(e){return Ra.pipe(S(t=>t.observe(e)),g(t=>to.pipe(A(({target:r})=>r===e),R(()=>t.unobserve(e)),l(({isIntersecting:r})=>r))))}function ro(e,t=16){return dt(e).pipe(l(({y:r})=>{let n=he(e),o=bt(e);return r>=o.height-n.height-t}),J())}var cr={drawer:z("[data-md-toggle=drawer]"),search:z("[data-md-toggle=search]")};function no(e){return cr[e].checked}function Ke(e,t){cr[e].checked!==t&&cr[e].click()}function Ue(e){let t=cr[e];return b(t,"change").pipe(l(()=>t.checked),V(t.checked))}function ka(e,t){switch(e.constructor){case HTMLInputElement:return e.type==="radio"?/^Arrow/.test(t):!0;case HTMLSelectElement:case HTMLTextAreaElement:return!0;default:return e.isContentEditable}}function Ha(){return L(b(window,"compositionstart").pipe(l(()=>!0)),b(window,"compositionend").pipe(l(()=>!1))).pipe(V(!1))}function oo(){let e=b(window,"keydown").pipe(A(t=>!(t.metaKey||t.ctrlKey)),l(t=>({mode:no("search")?"search":"global",type:t.key,claim(){t.preventDefault(),t.stopPropagation()}})),A(({mode:t,type:r})=>{if(t==="global"){let n=_e();if(typeof n!="undefined")return!ka(n,r)}return!0}),pe());return Ha().pipe(g(t=>t?M:e))}function le(){return new URL(location.href)}function ot(e){location.href=e.href}function io(){return new x}function ao(e,t){if(typeof t=="string"||typeof t=="number")e.innerHTML+=t.toString();else if(t instanceof Node)e.appendChild(t);else if(Array.isArray(t))for(let r of t)ao(e,r)}function _(e,t,...r){let n=document.createElement(e);if(t)for(let o of Object.keys(t))typeof t[o]!="undefined"&&(typeof t[o]!="boolean"?n.setAttribute(o,t[o]):n.setAttribute(o,""));for(let o of r)ao(n,o);return n}function fr(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function so(){return location.hash.substring(1)}function Dr(e){let t=_("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function Pa(e){return L(b(window,"hashchange"),e).pipe(l(so),V(so()),A(t=>t.length>0),X(1))}function co(e){return Pa(e).pipe(l(t=>ce(`[id="${t}"]`)),A(t=>typeof t!="undefined"))}function Vr(e){let t=matchMedia(e);return er(r=>t.addListener(()=>r(t.matches))).pipe(V(t.matches))}function fo(){let e=matchMedia("print");return L(b(window,"beforeprint").pipe(l(()=>!0)),b(window,"afterprint").pipe(l(()=>!1))).pipe(V(e.matches))}function zr(e,t){return e.pipe(g(r=>r?t():M))}function ur(e,t={credentials:"same-origin"}){return ue(fetch(`${e}`,t)).pipe(fe(()=>M),g(r=>r.status!==200?Ot(()=>new Error(r.statusText)):k(r)))}function We(e,t){return ur(e,t).pipe(g(r=>r.json()),X(1))}function uo(e,t){let r=new DOMParser;return ur(e,t).pipe(g(n=>n.text()),l(n=>r.parseFromString(n,"text/xml")),X(1))}function pr(e){let t=_("script",{src:e});return $(()=>(document.head.appendChild(t),L(b(t,"load"),b(t,"error").pipe(g(()=>Ot(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(l(()=>{}),R(()=>document.head.removeChild(t)),ge(1))))}function po(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function lo(){return L(b(window,"scroll",{passive:!0}),b(window,"resize",{passive:!0})).pipe(l(po),V(po()))}function mo(){return{width:innerWidth,height:innerHeight}}function ho(){return b(window,"resize",{passive:!0}).pipe(l(mo),V(mo()))}function bo(){return G([lo(),ho()]).pipe(l(([e,t])=>({offset:e,size:t})),X(1))}function lr(e,{viewport$:t,header$:r}){let n=t.pipe(ee("size")),o=G([n,r]).pipe(l(()=>Xe(e)));return G([r,t,o]).pipe(l(([{height:i},{offset:s,size:a},{x:f,y:c}])=>({offset:{x:s.x-f,y:s.y-c+i},size:a})))}(()=>{function e(n,o){parent.postMessage(n,o||"*")}function t(...n){return n.reduce((o,i)=>o.then(()=>new Promise(s=>{let a=document.createElement("script");a.src=i,a.onload=s,document.body.appendChild(a)})),Promise.resolve())}var r=class extends EventTarget{constructor(n){super(),this.url=n,this.m=i=>{i.source===this.w&&(this.dispatchEvent(new MessageEvent("message",{data:i.data})),this.onmessage&&this.onmessage(i))},this.e=(i,s,a,f,c)=>{if(s===`${this.url}`){let u=new ErrorEvent("error",{message:i,filename:s,lineno:a,colno:f,error:c});this.dispatchEvent(u),this.onerror&&this.onerror(u)}};let o=document.createElement("iframe");o.hidden=!0,document.body.appendChild(this.iframe=o),this.w.document.open(),this.w.document.write(` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

The Drush Bootstrap Process

+

When preparing to run a command, Drush works by bootstrapping the Drupal environment in very much the same way that is done during a normal page request from the web server, so most Drush commands run in the context of a fully-initialized website.

+

For efficiency and convenience, some Drush commands can work without first bootstrapping a Drupal site, or by only partially bootstrapping a site. This is faster than a full bootstrap. It is also a matter of convenience, because some commands are useful even when you don't have a working Drupal site.

+

Commands may specify their bootstrap level with via an attribute or an annotation. Commands supplied by Drupal modules are always full.

+
+
+
+
use Drush\Attributes as CLI;
+
+#[CLI\Bootstrap(level: DrupalBootLevels::NONE)]
+public function fetch($search = null, $options = ['image-viewer' => 'open', 'google-custom-search-api-key' => 'AIza']) {
+    $this->doFetch($search, $options);
+}
+
+
+
+
/**
+ * @bootstrap none
+*/
+public function fetch($search = null, $options = ['image-viewer' => 'open', 'google-custom-search-api-key' => 'AIza']) {
+    $this->doFetch($search, $options);
+}
+
+
+
+
+

Prior to bootstrapping, Drush goes through the preflight process, where the following things occur:

+
+

Preflight

+
    +
  1. Commandline arguments are parsed.
  2. +
  3. Configuration files are read.
  4. +
  5. The site-alias included on the commandline is loaded if present.
  6. +
  7. The local selected site is determined, if any.
  8. +
  9. Dependency injection is done.
  10. +
  11. Global commandfiles are loaded. Commandfiles that ship with modules are loaded later, during bootstrap @full.
  12. +
  13. The command is dispatched via the Symfony Console component.
  14. +
+
+

Bootstrapping is done from a Symfony Console command hook. The different bootstrap levels are described below.

+

none

+

Only run Drush preflight, without considering Drupal at all. Any code that operates on the Drush installation, and not specifically any Drupal directory, should bootstrap to this phase. This Attribute and value may also be used on a command class when it wants to load before Drupal bootstrap is started. Commands that ship inside Drupal modules always bootstrap to full, regardless of none value.

+

root

+

Set up and test for a valid Drupal root. The root is usually discovered via the Composer Runtime API, looking for the path of the__drupal/core__ package. Any code that interacts with an entire Drupal installation, and not a specific site on the Drupal installation should use this bootstrap phase.

+

site

+

Set up a Drupal site directory and the correct environment variables to allow Drupal to find the configuration file. If no site is specified with the --uri options, Drush will assume the site is 'default', which mimics Drupal's behaviour. Note that it is necessary to specify a full URI, e.g. --uri=http://example.com, in order for certain Drush commands and Drupal modules to behave correctly. See the Drush configuration for more information. Any code that needs to modify or interact with a specific Drupal site's settings.php file should bootstrap to this phase.

+

configuration

+

Load the settings from the Drupal sites directory. This phase is analogous to the DRUPAL_BOOTSTRAP_CONFIGURATION bootstrap phase in Drupal itself, and this is also the first step where Drupal specific code is included. This phase is commonly used for code that interacts with the Drupal install API, as both install.php and update.php start at this phase.

+

database

+

Connect to the Drupal database using the database credentials loaded during the previous bootstrap phase. This phase is analogous to the DRUPAL_BOOTSTRAP_DATABASE bootstrap phase in Drupal. Any code that needs to interact with the Drupal database API needs to be bootstrapped to at least this phase.

+

full

+

Fully initialize Drupal. This is analogous to the DRUPAL_BOOTSTRAP_FULL bootstrap phase in Drupal. Any code that interacts with the general Drupal API should be bootstrapped to this phase.

+

max

+

This is not an actual bootstrap phase. Commands that use the "max" bootstrap level will cause Drush to bootstrap as far as possible, and then run the command regardless of the bootstrap phase that was reached. This is useful for Drush commands that work without a bootstrapped site, but that provide additional information or capabilities in the presence of a bootstrapped site. For example, drush status will show progressively more information the farther the site bootstraps.

+ +
+
+ + + Last update: + June 14, 2024 + + + +
+ + + + + + + + +
+ + Authors: Greg Anderson, Moshe Weitzman + +
+ + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/all/index.html b/13.3.0/commands/all/index.html new file mode 100644 index 0000000000..7dbbde7ff5 --- /dev/null +++ b/13.3.0/commands/all/index.html @@ -0,0 +1,5386 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + all - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

All commands

+
+

Tip

+

Press the / key to Search for a command. Or use your browser's Find in Page feature.

+
+ + + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/archive_dump/index.html b/13.3.0/commands/archive_dump/index.html new file mode 100644 index 0000000000..0e1548ae08 --- /dev/null +++ b/13.3.0/commands/archive_dump/index.html @@ -0,0 +1,5378 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + archive:dump - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

archive:dump

+

Backup your code, files, and database into a single file.

+

The following paths would be excluded from a code archive:

+
    +
  • .git
  • +
  • vendor
  • +
  • [docroot]/sites/@/settings.@.php
  • +
  • Drupal files directory
  • +
  • Composer packages installed paths (composer info --path --format=json)
  • +
+

The following directories would be excluded from a file archive:

+
    +
  • css
  • +
  • js
  • +
  • styles
  • +
  • php
  • +
+

Examples

+
    +
  • drush archive:dump. Create a site archive file in a temporary directory containing code, database and Drupal files.
  • +
  • drush archive:dump --destination=/path/to/archive.tar.gz. Create /path/to/archive.tar.gz file containing code, database and Drupal files.
  • +
  • drush archive:dump --destination=/path/to/archive.tar.gz --overwrite. Create (or overwrite if exists) /path/to/archive.tar.gz file containing code, database and Drupal files.
  • +
  • drush archive:dump --code --destination=/path/to/archive.tar.gz. Create /path/to/archive.tar.gz file containing the code only.
  • +
  • drush archive:dump --exclude-code-paths=foo_bar.txt,web/sites/.+/settings.php --destination=/path/to/archive.tar.gz. Create /path/to/archive.tar.gz file containing code, database and Drupal files but excluding foo_bar.txt file and settings.php files if found in web/sites/* subdirectories.
  • +
  • drush archive:dump --extra-dump=--no-data --destination=/path/to/archive.tar.gz. Create /path/to/archive.tar.gz file and pass extra option to mysqldump command.
  • +
  • drush archive:dump --files --destination=/path/to/archive.tar.gz. Create /path/to/archive.tar.gz file containing the Drupal files only.
  • +
  • drush archive:dump --database --destination=/path/to/archive.tar.gz. Create /path/to/archive.tar.gz archive file containing the database dump only.
  • +
+

Options

+
    +
  • --code. Archive codebase.
  • +
  • --files. Archive Drupal files.
  • +
  • --db. Archive database SQL dump.
  • +
  • --destination=DESTINATION. The full path and filename in which the archive should be stored. Any relative path will be calculated from Drupal root (usually web for drupal/recommended-project projects). If omitted, it will be saved to the configured temp directory.
  • +
  • --overwrite. Overwrite destination file if exists.
  • +
  • --description=DESCRIPTION. Describe the archive contents.
  • +
  • --tags=TAGS. Add tags to the archive manifest. Delimit several by commas.
  • +
  • --generator=GENERATOR. The generator name to store in the MANIFEST.yml file. The default is "Drush archive-dump".
  • +
  • --generatorversion=GENERATORVERSION. The generator version number to store in the MANIFEST file. The default is Drush version.
  • +
  • --exclude-code-paths=EXCLUDE-CODE-PATHS. Comma-separated list of paths (or regular expressions matching paths) to exclude from the code archive.
  • +
  • --extra-dump=EXTRA-DUMP. Add custom arguments/options to the dumping of the database (e.g. mysqldump command).
  • +
  • --convert-symlinks. Replace all symlinks with copies of the files/directories that they point to. Default is to only convert symlinks that point outside the project root.
  • +
  • --skip-tables-key=SKIP-TABLES-KEY. A key in the $skip_tables array. @see Site aliases
  • +
  • --structure-tables-key=STRUCTURE-TABLES-KEY. A key in the $structure_tables array. @see Site aliases
  • +
  • --tables-key=TABLES-KEY. A key in the $tables array.
  • +
  • --skip-tables-list=SKIP-TABLES-LIST. A comma-separated list of tables to exclude completely.
  • +
  • --structure-tables-list=STRUCTURE-TABLES-LIST. A comma-separated list of tables to include for structure, but not data.
  • +
  • --tables-list=TABLES-LIST. A comma-separated list of tables to transfer.
  • +
  • --database[=DATABASE]. The DB connection key if using multiple connections in settings.php. [default: default]
  • +
  • --db-url=DB-URL. A Drupal 6 style database URL. For example mysql://root:pass@localhost:port/dbname
  • +
  • --target[=TARGET]. The name of a target within the specified database connection. [default: default]
  • +
  • --show-passwords. Show password on the CLI. Useful for debugging.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • ard
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/ard/index.html b/13.3.0/commands/ard/index.html new file mode 100644 index 0000000000..ad8937f5ef --- /dev/null +++ b/13.3.0/commands/ard/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/bfoc/index.html b/13.3.0/commands/bfoc/index.html new file mode 100644 index 0000000000..2165bd7af2 --- /dev/null +++ b/13.3.0/commands/bfoc/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/browse/index.html b/13.3.0/commands/browse/index.html new file mode 100644 index 0000000000..288c074da1 --- /dev/null +++ b/13.3.0/commands/browse/index.html @@ -0,0 +1,5339 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + browse - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

browse

+

Display a link to a given path or open link in a browser.

+

Examples

+
    +
  • drush browse. Open default web browser (if configured or detected) to the site front page.
  • +
  • drush browse node/1. Open web browser to the path node/1.
  • +
  • drush @example.prod browse. Open a browser to the web site specified in a site alias.
  • +
+

Arguments

+
    +
  • [path]. Path to open. If omitted, the site front page will be opened.
  • +
+

Options

+
    +
  • --browser[=BROWSER]. Open the URL in the default browser. Use --no-browser to avoid opening a browser. [default: 1]
  • +
  • --redirect-port=REDIRECT-PORT. The port that the web server is redirected to (e.g. when running within a Vagrant environment).
  • +
  • --no-browser. Negate --browser option.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/cache_clear/index.html b/13.3.0/commands/cache_clear/index.html new file mode 100644 index 0000000000..07ce38c74b --- /dev/null +++ b/13.3.0/commands/cache_clear/index.html @@ -0,0 +1,5350 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + cache:clear - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

cache:clear

+

Clear a specific cache, or all Drupal caches.

+

Examples

+
    +
  • drush cc bin. Choose a bin to clear.
  • +
  • drush cc bin entity,bootstrap. Clear the entity and bootstrap cache bins.
  • +
+

Arguments

+
    +
  • type. The particular cache to clear. Omit this argument to choose from available types.
  • +
  • [args].... Additional arguments as might be expected (e.g. bin name).
  • +
+

Options

+
    +
  • --cache-clear[=CACHE-CLEAR]. Set to 0 to suppress normal cache clearing; the caller should then clear if needed. [default: 1]
  • +
  • --no-cache-clear. Negate --cache-clear option.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • cc
  • +
  • cache-clear
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/cache_get/index.html b/13.3.0/commands/cache_get/index.html new file mode 100644 index 0000000000..52465bdcfa --- /dev/null +++ b/13.3.0/commands/cache_get/index.html @@ -0,0 +1,5362 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + cache:get - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

cache:get

+

Fetch a cached object and display it.

+

Examples

+
    +
  • drush cache:get hook_info bootstrap. Display the data for the cache id "hook_info" from the "bootstrap" bin.
  • +
  • drush cache:get update_available_releases update. Display the data for the cache id "update_available_releases" from the "update" bin.
  • +
+

Arguments

+
    +
  • cid. The id of the object to fetch.
  • +
  • [bin]. The cache bin to fetch from.
  • +
+

Options

+
    +
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,string,table,tsv,var_dump,var_export,xml,yaml [default: json]
  • +
  • --fields=FIELDS. Available fields: Cache ID (cid), Data (data), Created (created), Expire (expire), Tags (tags), Checksum (checksum), Valid (valid)
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • cg
  • +
  • cache-get
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/cache_rebuild/index.html b/13.3.0/commands/cache_rebuild/index.html new file mode 100644 index 0000000000..4a7171fbb1 --- /dev/null +++ b/13.3.0/commands/cache_rebuild/index.html @@ -0,0 +1,5328 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + cache:rebuild - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

cache:rebuild

+

Rebuild all caches.

+

This is a copy of core/rebuild.php.

+

Options

+
    +
  • --cache-clear[=CACHE-CLEAR]. Set to 0 to suppress normal cache clearing; the caller should then clear if needed. [default: 1]
  • +
  • --no-cache-clear. Negate --cache-clear option.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • cr
  • +
  • rebuild
  • +
  • cache-rebuild
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/cache_set/index.html b/13.3.0/commands/cache_set/index.html new file mode 100644 index 0000000000..0cfaa063cd --- /dev/null +++ b/13.3.0/commands/cache_set/index.html @@ -0,0 +1,5341 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + cache:set - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

cache:set

+

Cache an object expressed in JSON or var_export() format.

+

Arguments

+
    +
  • cid. id of the object to set.
  • +
  • data. The object to set in the cache. Use - to read the object from STDIN.
  • +
  • [bin]. The cache bin to store the object in.
  • +
  • [expire]. 'CACHE_PERMANENT', or a Unix timestamp.
  • +
  • [tags]. A comma delimited list of cache tags.
  • +
+

Options

+
    +
  • --input-format[=INPUT-FORMAT]. The format of value. Use json for complex values. [default: string]
  • +
  • --cache-get. If the object is the result a previous fetch from the cache, only store the value in the 'data' property of the object in the cache.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • cs
  • +
  • cache-set
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/cache_tags/index.html b/13.3.0/commands/cache_tags/index.html new file mode 100644 index 0000000000..9a7066010d --- /dev/null +++ b/13.3.0/commands/cache_tags/index.html @@ -0,0 +1,5335 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + cache:tags - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

cache:tags

+

Invalidate by cache tags.

+

Examples

+
    +
  • drush cache:tag node:12,user:4. Purge content associated with two cache tags.
  • +
+

Arguments

+
    +
  • tags. A comma delimited list of cache tags to clear.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • ct
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/cc/index.html b/13.3.0/commands/cc/index.html new file mode 100644 index 0000000000..9e378978b2 --- /dev/null +++ b/13.3.0/commands/cc/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/cdel/index.html b/13.3.0/commands/cdel/index.html new file mode 100644 index 0000000000..2205f6a207 --- /dev/null +++ b/13.3.0/commands/cdel/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/cedit/index.html b/13.3.0/commands/cedit/index.html new file mode 100644 index 0000000000..4cc0efb058 --- /dev/null +++ b/13.3.0/commands/cedit/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/cex/index.html b/13.3.0/commands/cex/index.html new file mode 100644 index 0000000000..4306315dce --- /dev/null +++ b/13.3.0/commands/cex/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/cg/index.html b/13.3.0/commands/cg/index.html new file mode 100644 index 0000000000..75f4b1ba29 --- /dev/null +++ b/13.3.0/commands/cg/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/cget/index.html b/13.3.0/commands/cget/index.html new file mode 100644 index 0000000000..274b8e365c --- /dev/null +++ b/13.3.0/commands/cget/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/cim/index.html b/13.3.0/commands/cim/index.html new file mode 100644 index 0000000000..7882f7e210 --- /dev/null +++ b/13.3.0/commands/cim/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/completion/index.html b/13.3.0/commands/completion/index.html new file mode 100644 index 0000000000..21e765cf14 --- /dev/null +++ b/13.3.0/commands/completion/index.html @@ -0,0 +1,5347 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + completion - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

completion

+

Dump the shell completion script

+

The *%command.name% command dumps the shell completion script required +to use shell autocompletion (currently, bash, fish, zsh completion are supported).

+

Static installation

+

Dump the script to a global completion file and restart your shell:

+
*%command.full_name%  | sudo tee /etc/bash_completion.d/drush.php
+
+

Or dump the script to a local file and source it:

+
*%command.full_name%  > completion.sh
+
+<comment># source the file whenever you use the project
+*source completion.sh
+
+<comment># or add this line at the end of your "~/.bashrc" file:
+*source /path/to/completion.sh
+
+

Dynamic installation

+

Add this to the end of your shell configuration file (e.g. *"~/.bashrc"):

+
*eval "$(/home/runner/work/drush/drush/drush.php completion )"
+
+

Arguments

+
    +
  • [shell]. The shell type (e.g. "bash"), the value of the "$SHELL" env var will be used if this is not given
  • +
+

Options

+
    +
  • --debug. Tail the completion debug log
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/conf/index.html b/13.3.0/commands/conf/index.html new file mode 100644 index 0000000000..6f3405f8c0 --- /dev/null +++ b/13.3.0/commands/conf/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/config/index.html b/13.3.0/commands/config/index.html new file mode 100644 index 0000000000..6f3405f8c0 --- /dev/null +++ b/13.3.0/commands/config/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/config_delete/index.html b/13.3.0/commands/config_delete/index.html new file mode 100644 index 0000000000..f6884e3a99 --- /dev/null +++ b/13.3.0/commands/config_delete/index.html @@ -0,0 +1,5338 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + config:delete - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

config:delete

+

Delete a configuration key, or a whole object(s).

+

Examples

+
    +
  • drush config:delete system.site,system.rss. Delete the system.site and system.rss config objects.
  • +
  • drush config:delete system.site page.front. Delete the 'page.front' key from the system.site object.
  • +
+

Arguments

+
    +
  • config_name. The config object name(s). Delimit multiple with commas.
  • +
  • [key]. A config key to clear, May not be used with multiple config names.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • cdel
  • +
  • config-delete
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/config_edit/index.html b/13.3.0/commands/config_edit/index.html new file mode 100644 index 0000000000..350f6dbb01 --- /dev/null +++ b/13.3.0/commands/config_edit/index.html @@ -0,0 +1,5350 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + config:edit - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

config:edit

+

Open a config file in a text editor. Edits are imported after closing editor.

+

Examples

+
    +
  • drush config:edit image.style.large. Edit the image style configurations.
  • +
  • drush config:edit. Choose a config file to edit.
  • +
  • drush --bg config-edit image.style.large. Return to shell prompt as soon as the editor window opens.
  • +
+

Arguments

+
    +
  • config_name. The config object name, for example system.site.
  • +
+

Options

+
    +
  • --editor=EDITOR. A string of bash which launches user's preferred text editor. Defaults to ${VISUAL-${EDITOR-vi}}.
  • +
  • --bg. Launch editor in background process.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • cedit
  • +
  • config-edit
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/config_export/index.html b/13.3.0/commands/config_export/index.html new file mode 100644 index 0000000000..bacbaa3423 --- /dev/null +++ b/13.3.0/commands/config_export/index.html @@ -0,0 +1,5342 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + config:export - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

config:export

+

Export Drupal configuration to a directory.

+

Examples

+
    +
  • drush config:export. Export configuration files to the site's config directory.
  • +
  • drush config:export --destination. Export configuration; Save files in a backup directory named config-export.
  • +
+

Options

+
    +
  • --add. Run git add -p after exporting. This lets you choose which config changes to sync for commit.
  • +
  • --commit. Run git add -A and git commit after exporting. This commits everything that was exported without prompting.
  • +
  • --message=MESSAGE. Commit comment for the exported configuration. Optional; may only be used with --commit.
  • +
  • --destination[=DESTINATION]. An arbitrary directory that should receive the exported files. A backup directory is used when no value is provided.
  • +
  • --diff. Show preview as a diff, instead of a change list.
  • +
  • --format[=FORMAT].
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • cex
  • +
  • config-export
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/config_get/index.html b/13.3.0/commands/config_get/index.html new file mode 100644 index 0000000000..ad317b08ef --- /dev/null +++ b/13.3.0/commands/config_get/index.html @@ -0,0 +1,5351 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + config:get - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

config:get

+

Display a config value, or a whole configuration object.

+

Examples

+
    +
  • drush config:get system.site. Displays the system.site config.
  • +
  • drush config:get system.site page.front. Gets system.site:page.front value.
  • +
+

Arguments

+
    +
  • config_name. The config object name, for example system.site.
  • +
  • [key]. The config key, for example page.front. Optional.
  • +
+

Options

+
    +
  • --format[=FORMAT]. [default: yaml]
  • +
  • --source[=SOURCE]. The config storage source to read. [default: active]
  • +
  • --include-overridden. Apply module and settings.php overrides to values.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • cget
  • +
  • config-get
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/config_import/index.html b/13.3.0/commands/config_import/index.html new file mode 100644 index 0000000000..5bd4e9150b --- /dev/null +++ b/13.3.0/commands/config_import/index.html @@ -0,0 +1,5351 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + config:import - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

config:import

+

Import config from the config directory.

+

Examples

+
    +
  • drush config:import. Update Drupal's configuration so it matches the contents of the config directory.
  • +
  • drush config:import --partial --source=/app/config. Import from the /app/config directory which typically contains one or a few yaml files.
  • +
  • cat tmp.yml | drush config:set --input-format=yaml user.mail ? -. Update the user.mail config object in its entirety.
  • +
+

Options

+
    +
  • --source=SOURCE. An arbitrary directory that holds the configuration files.
  • +
  • --partial. Allows for partial config imports from the source directory. Only updates and new configs will be processed with this flag (missing configs will not be deleted). No config transformation happens.
  • +
  • --diff. Show preview as a diff.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • cim
  • +
  • config-import
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/config_pull/index.html b/13.3.0/commands/config_pull/index.html new file mode 100644 index 0000000000..845e3927e9 --- /dev/null +++ b/13.3.0/commands/config_pull/index.html @@ -0,0 +1,5366 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + config:pull - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

config:pull

+

Export and transfer config from one environment to another.

+

Examples

+
    +
  • drush config:pull @prod @stage. Export config from @prod and transfer to @stage.
  • +
  • drush config:pull @prod @self:../config/sync. Export config and transfer to a custom directory. Relative paths are calculated from Drupal root.
  • +
+

Arguments

+
    +
  • source. A site-alias or the name of a subdirectory within /sites whose config you want to copy from.
  • +
  • destination. A site-alias or the name of a subdirectory within /sites whose config you want to replace.
  • +
+

Options

+
    +
  • --safe. Validate that there are no git uncommitted changes before proceeding
  • +
  • --runner[=RUNNER]. Where to run the rsync command; defaults to the local site. Can also be source or destination.
  • +
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,string,table,tsv,var_dump,var_export,xml,yaml [default: null]
  • +
  • --fields=FIELDS. Available fields: Path (path)
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • cpull
  • +
  • config-pull
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/config_set/index.html b/13.3.0/commands/config_set/index.html new file mode 100644 index 0000000000..48786adda8 --- /dev/null +++ b/13.3.0/commands/config_set/index.html @@ -0,0 +1,5356 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + config:set - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

config:set

+

Save a config value directly. Does not perform a config import.

+

Examples

+
    +
  • drush config:set system.site name MySite. Sets a value for the key name of system.site config object.
  • +
  • drush config:set system.site page.front /path/to/page. Sets the given URL path as value for the config item with key page.front of system.site config object.
  • +
  • drush config:set system.site '[]'. Sets the given key to an empty array.
  • +
  • drush config:set system.site 'NULL'. Sets the given key to NULL.
  • +
  • drush config:set --input-format=yaml user.role.authenticated permissions [foo,bar]. Use a sequence as value for the key permissions of user.role.authenticated config object.
  • +
  • drush config:set --input-format=yaml system.site page {403: '403', front: home}. Use a mapping as value for the key page of system.site config object.
  • +
  • drush config:set --input-format=yaml user.role.authenticated ? "{label: 'Auth user', weight: 5}". Update two top level keys (label, weight) in the system.site config object.
  • +
  • cat tmp.yml | drush config:set --input-format=yaml user.mail ? -. Update the user.mail config object in its entirety.
  • +
+

Arguments

+
    +
  • config_name. The config object name, for example system.site.
  • +
  • key. The config key, for example page.front. Use ? if you are updating multiple top-level keys.
  • +
  • value. The value to assign to the config key. Use - to read from Stdin.
  • +
+

Options

+
    +
  • --input-format[=INPUT-FORMAT]. Format to parse the object. Recognized values: string, yaml. Since JSON is a subset of YAML, $value may be in JSON format. [default: string]
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • cset
  • +
  • config-set
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/config_status/index.html b/13.3.0/commands/config_status/index.html new file mode 100644 index 0000000000..445690f82f --- /dev/null +++ b/13.3.0/commands/config_status/index.html @@ -0,0 +1,5356 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + config:status - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

config:status

+

Display status of configuration (differences between the filesystem and database).

+

Examples

+
    +
  • drush config:status. Display configuration items that need to be synchronized.
  • +
  • drush config:status --state=Identical. Display configuration items that are in default state.
  • +
  • drush config:status --state='Only in sync dir' --prefix=node.type.. Display all content types that would be created in active storage on configuration import.
  • +
  • drush config:status --state=Any --format=list. List all config names.
  • +
  • drush config:status 2>&1 | grep "No differences". Check there are no differences between database and exported config. Useful for CI.
  • +
+

Options

+
    +
  • --state[=STATE]. A comma-separated list of states to filter results. [default: Only in DB,Only in sync dir,Different]
  • +
  • --prefix=PREFIX. The config prefix. For example, system. No prefix will return all names in the system.
  • +
  • --format=FORMAT. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • +
  • --fields=FIELDS. Available fields: Name (name), State (state)
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
  • --filter[=FILTER]. Filter output based on provided expression
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • cst
  • +
  • config-status
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/core-cli/index.html b/13.3.0/commands/core-cli/index.html new file mode 100644 index 0000000000..5c2afe81a1 --- /dev/null +++ b/13.3.0/commands/core-cli/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/core_cli/index.html b/13.3.0/commands/core_cli/index.html new file mode 100644 index 0000000000..5c2afe81a1 --- /dev/null +++ b/13.3.0/commands/core_cli/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/core_cron/index.html b/13.3.0/commands/core_cron/index.html new file mode 100644 index 0000000000..e15511b527 --- /dev/null +++ b/13.3.0/commands/core_cron/index.html @@ -0,0 +1,5326 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + core:cron - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

core:cron

+

Run all cron hooks in all active modules for specified site.

+

Consider using drush maint:status && drush core:cron to avoid cache poisoning during maintenance mode.

+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • cron
  • +
  • core-cron
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/core_edit/index.html b/13.3.0/commands/core_edit/index.html new file mode 100644 index 0000000000..aa075937e1 --- /dev/null +++ b/13.3.0/commands/core_edit/index.html @@ -0,0 +1,5354 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + core:edit - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

core:edit

+

Edit drush.yml, site alias, and Drupal settings.php files.

+

Examples

+
    +
  • drush core:edit. Pick from a list of config/alias/settings files. Open selected in editor.
  • +
  • drush --bg core-config. Return to shell prompt as soon as the editor window opens.
  • +
  • drush core:edit etc. Edit the global configuration file.
  • +
  • drush core:edit demo.alia. Edit a particular alias file.
  • +
  • drush core:edit sett. Edit settings.php for the current Drupal site.
  • +
  • drush core:edit --choice=2. Edit the second file in the choice list.
  • +
+

Arguments

+
    +
  • [filter]. A substring for filtering the list of files. Omit this argument to choose from loaded files.
  • +
+

Options

+
    +
  • --editor=EDITOR. A string of bash which launches user's preferred text editor. Defaults to ${VISUAL-${EDITOR-vi}}.
  • +
  • --bg. Launch editor in background process.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • conf
  • +
  • config
  • +
  • core-edit
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/core_requirements/index.html b/13.3.0/commands/core_requirements/index.html new file mode 100644 index 0000000000..2d2d27a053 --- /dev/null +++ b/13.3.0/commands/core_requirements/index.html @@ -0,0 +1,5354 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + core:requirements - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

core:requirements

+

Information about things that may be wrong in your Drupal installation.

+

Examples

+
    +
  • drush core:requirements. Show all status lines from the Status Report admin page.
  • +
  • drush core:requirements --severity=2. Show only the red lines from the Status Report admin page.
  • +
+

Options

+
    +
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • +
  • --severity[=SEVERITY]. Only show status report messages with a severity greater than or equal to the specified value. [default: -1]
  • +
  • --ignore[=IGNORE]. Comma-separated list of requirements to remove from output. Run with --format=yaml to see key values to use.
  • +
  • --fields=FIELDS. Available fields: Title (title), Severity (severity), SID (sid), Description (description), Summary (value)
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
  • --filter[=FILTER]. Filter output based on provided expression
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • status-report
  • +
  • rq
  • +
  • core-requirements
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/core_route/index.html b/13.3.0/commands/core_route/index.html new file mode 100644 index 0000000000..51cc719fbb --- /dev/null +++ b/13.3.0/commands/core_route/index.html @@ -0,0 +1,5341 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + core:route - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

core:route

+

10.5+

+

View information about all routes or one route.

+

Examples

+
    +
  • drush route. View all routes.
  • +
  • drush route --name=update.status. View details about the update.status route.
  • +
  • drush route --path=/user/1. View details about the entity.user.canonical route.
  • +
  • drush route --url=https://example.com/node/1. View details about the entity.node.canonical route.
  • +
+

Options

+
    +
  • --name=NAME. A route name.
  • +
  • --path=PATH. An internal path or URL.
  • +
  • --format[=FORMAT]. [default: yaml]
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • route
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/core_rsync/index.html b/13.3.0/commands/core_rsync/index.html new file mode 100644 index 0000000000..c5c338f233 --- /dev/null +++ b/13.3.0/commands/core_rsync/index.html @@ -0,0 +1,5367 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + core:rsync - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

core:rsync

+

Rsync Drupal code or files to/from another server using ssh.

+

Examples

+
    +
  • drush rsync @dev @stage. Rsync Drupal root from Drush alias dev to the alias stage.
  • +
  • drush rsync ./ @stage:%files/img. Rsync all files in the current directory to the imgdirectory in the file storage folder on the Drush alias stage.
  • +
  • drush rsync @live:%private @stage:%private. Rsync private files from live to stage.
  • +
  • drush rsync @dev @stage -- --exclude=*.sql --delete. Rsync Drupal root from the Drush alias dev to the alias stage, excluding all .sql files and delete all files on the destination that are no longer on the source.
  • +
  • drush rsync @dev @stage --ssh-options="-o StrictHostKeyChecking=no" -- --delete. Customize how rsync connects with remote host via SSH. rsync options like --delete are placed after a --.
  • +
+

Arguments

+
    +
  • source. A site alias and optional path. See rsync documentation and Site aliases.
  • +
  • target. A site alias and optional path. See rsync documentation and Site aliases.
  • +
  • [extra].... Additional parameters after the ssh statement.
  • +
+

Options

+
    +
  • --exclude-paths=EXCLUDE-PATHS. List of paths to exclude, seperated by : (Unix-based systems) or ; (Windows).
  • +
  • --include-paths=INCLUDE-PATHS. List of paths to include, seperated by : (Unix-based systems) or ; (Windows).
  • +
  • --mode[=MODE]. The unary flags to pass to rsync; --mode=rultz implies rsync -rultz. Default is -akz. [default: akz]
  • +
  • --ssh-options=SSH-OPTIONS. A string appended to ssh command during rsync, sql-sync, etc.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • rsync
  • +
  • core-rsync
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/core_status/index.html b/13.3.0/commands/core_status/index.html new file mode 100644 index 0000000000..fd69f52130 --- /dev/null +++ b/13.3.0/commands/core_status/index.html @@ -0,0 +1,5353 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + core:status - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

core:status

+

An overview of the environment - Drush and Drupal.

+

Examples

+
    +
  • drush core-status --field=files. Emit just one field, not all the default fields.
  • +
  • drush core-status --fields=*. Emit all fields, not just the default ones.
  • +
+

Options

+
    +
  • --project=PROJECT. A comma delimited list of projects. Their paths will be added to path-aliases section.
  • +
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • +
  • --fields=FIELDS. Available fields: Drupal version (drupal-version), Site URI (uri), DB driver (db-driver), DB hostname (db-hostname), DB port (db-port), DB username (db-username), DB password (db-password), DB name (db-name), Database (db-status), Drupal bootstrap (bootstrap), Default theme (theme), Admin theme (admin-theme), PHP binary (php-bin), PHP config (php-conf), PHP OS (php-os), PHP version (php-version), Drush script (drush-script), Drush version (drush-version), Drush temp (drush-temp), Drush configs (drush-conf), Drush aliases (drush-alias-files), Alias search paths (alias-searchpaths), Install profile (install-profile), Drupal root (root), Drupal Settings (drupal-settings-file), Site path (site-path), Site path (site), Themes path (themes), Modules path (modules), Files, Public (files), Files, Private (private), Files, Temp (temp), Drupal config (config-sync), Files, Public (files-path), Files, Temp (temp-path), Other paths (%paths)
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • status
  • +
  • st
  • +
  • core-status
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/core_topic/index.html b/13.3.0/commands/core_topic/index.html new file mode 100644 index 0000000000..8c48a1934d --- /dev/null +++ b/13.3.0/commands/core_topic/index.html @@ -0,0 +1,5349 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + core:topic - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

core:topic

+

Read detailed documentation on a given topic.

+

Examples

+
    +
  • drush topic. Pick from all available topics.
  • +
  • drush topic docs-repl. Show documentation for the Drush interactive shell
  • +
  • drush docs:r. Filter topics for those starting with 'docs-r'.
  • +
+

Arguments

+
    +
  • topic_name. The name of the topic you wish to view. If omitted, list all topic descriptions (and names in parenthesis).
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • topic
  • +
  • core-topic
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/cpull/index.html b/13.3.0/commands/cpull/index.html new file mode 100644 index 0000000000..727fbffe63 --- /dev/null +++ b/13.3.0/commands/cpull/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/cr/index.html b/13.3.0/commands/cr/index.html new file mode 100644 index 0000000000..3f488e4ecd --- /dev/null +++ b/13.3.0/commands/cr/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/cron/index.html b/13.3.0/commands/cron/index.html new file mode 100644 index 0000000000..5eeb41f386 --- /dev/null +++ b/13.3.0/commands/cron/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/cs/index.html b/13.3.0/commands/cs/index.html new file mode 100644 index 0000000000..60c9383da0 --- /dev/null +++ b/13.3.0/commands/cs/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/cset/index.html b/13.3.0/commands/cset/index.html new file mode 100644 index 0000000000..f5cc129628 --- /dev/null +++ b/13.3.0/commands/cset/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/cst/index.html b/13.3.0/commands/cst/index.html new file mode 100644 index 0000000000..018db2e0d2 --- /dev/null +++ b/13.3.0/commands/cst/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/ct/index.html b/13.3.0/commands/ct/index.html new file mode 100644 index 0000000000..e9e0c7d06d --- /dev/null +++ b/13.3.0/commands/ct/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/dd/index.html b/13.3.0/commands/dd/index.html new file mode 100644 index 0000000000..3aa80b4e8e --- /dev/null +++ b/13.3.0/commands/dd/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/deploy/index.html b/13.3.0/commands/deploy/index.html new file mode 100644 index 0000000000..d79581edd2 --- /dev/null +++ b/13.3.0/commands/deploy/index.html @@ -0,0 +1,5325 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + deploy - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

deploy

+

10.3+

+

Run several commands after performing a code deployment.

+

Examples

+
    +
  • drush deploy -v -y. Run updates with verbose logging and accept all prompts.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/deploy_hook-status/index.html b/13.3.0/commands/deploy_hook-status/index.html new file mode 100644 index 0000000000..7d52d6f8d8 --- /dev/null +++ b/13.3.0/commands/deploy_hook-status/index.html @@ -0,0 +1,5339 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + deploy:hook-status - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

deploy:hook-status

+

Prints information about pending deploy update hooks.

+

Examples

+
    +
  • drush deploy:hook-status. Prints information about pending deploy hooks.
  • +
+

Options

+
    +
  • --format=FORMAT. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • +
  • --fields=FIELDS. Available fields: Module (module), Hook (hook), Description (description)
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
  • --filter[=FILTER]. Filter output based on provided expression
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/deploy_hook/index.html b/13.3.0/commands/deploy_hook/index.html new file mode 100644 index 0000000000..ca924028dc --- /dev/null +++ b/13.3.0/commands/deploy_hook/index.html @@ -0,0 +1,5325 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + deploy:hook - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

deploy:hook

+

10.3+

+

Run pending deploy update hooks.

+

Examples

+
    +
  • drush deploy:hook. Run pending deploy hooks.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/deploy_mark-complete/index.html b/13.3.0/commands/deploy_mark-complete/index.html new file mode 100644 index 0000000000..dc2bd154e3 --- /dev/null +++ b/13.3.0/commands/deploy_mark-complete/index.html @@ -0,0 +1,5325 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + deploy:mark-complete - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

deploy:mark-complete

+

10.6.1+

+

Mark all deploy hooks as having run.

+

Examples

+
    +
  • drush deploy:mark-complete. Skip all pending deploy hooks and mark them as complete.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/drupal_directory/index.html b/13.3.0/commands/drupal_directory/index.html new file mode 100644 index 0000000000..7524e7b4d0 --- /dev/null +++ b/13.3.0/commands/drupal_directory/index.html @@ -0,0 +1,5351 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + drupal:directory - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

drupal:directory

+

Return the filesystem path for modules/themes and other key folders.

+

Examples

+
    +
  • cd $(drush dd devel). Navigate into the devel module directory
  • +
  • cd $(drush dd). Navigate to the root of your Drupal site
  • +
  • cd $(drush dd files). Navigate to the files directory.
  • +
  • drush dd @alias:%files. Print the path to the files directory on the site @alias.
  • +
  • edit $(drush dd devel)/devel.module. Open devel module in your editor
  • +
+

Arguments

+
    +
  • [target]. A module/theme name, or special names like root, files, private, or an alias:path string such as @alias:%files.
  • +
+

Options

+
    +
  • --local-only. Reject any target that specifies a remote site.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • dd
  • +
  • drupal-directory
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/econ/index.html b/13.3.0/commands/econ/index.html new file mode 100644 index 0000000000..18d7108cb3 --- /dev/null +++ b/13.3.0/commands/econ/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/edel/index.html b/13.3.0/commands/edel/index.html new file mode 100644 index 0000000000..23e673f169 --- /dev/null +++ b/13.3.0/commands/edel/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/en/index.html b/13.3.0/commands/en/index.html new file mode 100644 index 0000000000..c2e4ca6f31 --- /dev/null +++ b/13.3.0/commands/en/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/entity_create/index.html b/13.3.0/commands/entity_create/index.html new file mode 100644 index 0000000000..8a6338221c --- /dev/null +++ b/13.3.0/commands/entity_create/index.html @@ -0,0 +1,5360 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + entity:create - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

entity:create

+

12.5+

+

Create a content entity after prompting for field values.

+

When entering field values, one may submit an incomplete document and any entity violations +will be helpfully reported at the top of the document. enter skip as +a value in order to skip validation for that field. Timestamp values may be expressed via any string +recognized by strtotime()

+

Examples

+
    +
  • drush entity:create node article --validate=0. Create an article entity and skip validation entirely.
  • +
  • drush entity:create node article --skip-fields=field_media_image,field_tags. Create an article omitting two fields.
  • +
  • drush entity:create user user --editor=nano. Create a user using the Nano text editor.
  • +
+

Arguments

+
    +
  • entity_type. An entity type name.
  • +
  • bundle. A bundle name
  • +
+

Options

+
    +
  • --validate[=VALIDATE]. Validate the entity before saving. [default: 1]
  • +
  • --uid=UID. The entity author ID. Also used by permission checks (e.g. content moderation)
  • +
  • --skip-fields=SKIP-FIELDS. A list of field names that skip both data entry and validation. Delimit fields by comma
  • +
  • --editor=EDITOR. A string of bash which launches user's preferred text editor. Defaults to ${VISUAL-${EDITOR-vi}}.
  • +
  • --bg. Launch editor in background process.
  • +
  • --no-validate. Negate --validate option.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • econ
  • +
  • entity-create
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/entity_delete/index.html b/13.3.0/commands/entity_delete/index.html new file mode 100644 index 0000000000..9975b65211 --- /dev/null +++ b/13.3.0/commands/entity_delete/index.html @@ -0,0 +1,5358 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + entity:delete - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

entity:delete

+

Delete content entities.

+

To delete configuration entities, see config:delete command.

+

Examples

+
    +
  • drush entity:delete node --bundle=article. Delete all article entities.
  • +
  • drush entity:delete shortcut. Delete all shortcut entities.
  • +
  • drush entity:delete node 22,24. Delete nodes 22 and 24.
  • +
  • drush entity:delete user. Delete all users except uid=1.
  • +
  • drush entity:delete node --exclude=9,14,81. Delete all nodes except node 9, 14 and 81.
  • +
  • drush entity:delete node --chunks=5. Delete all node entities in groups of 5.
  • +
  • drush entity:delete node --limit=500. Delete 500 node entities.
  • +
+

Arguments

+
    +
  • entity_type. An entity machine name.
  • +
  • [ids]. A comma delimited list of Ids.
  • +
+

Options

+
    +
  • --bundle=BUNDLE. Restrict deletion to the specified bundle. Ignored when ids is specified.
  • +
  • --exclude=EXCLUDE. Exclude certain entities from deletion. Ignored when ids is specified.
  • +
  • --chunks[=CHUNKS]. Specify how many entities will be deleted in the same step. [default: 50]
  • +
  • --limit[=LIMIT]. Limit on the number of entities to delete.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • edel
  • +
  • entity-delete
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/entity_save/index.html b/13.3.0/commands/entity_save/index.html new file mode 100644 index 0000000000..e35132e726 --- /dev/null +++ b/13.3.0/commands/entity_save/index.html @@ -0,0 +1,5361 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + entity:save - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

entity:save

+

11.0+

+

Re-save entities, and publish/unpublish is specified.

+

If passing in a file with an ID in each line, append a comma to each row.

+

Examples

+
    +
  • drush entity:save node --bundle=article. Re-save all article entities.
  • +
  • drush entity:save shortcut --unpublish --state=draft. Unpublish and transition all shortcut entities.
  • +
  • drush entity:save node 22,24. Re-save nodes 22 and 24.
  • +
  • cat /path/to/ids.csv | drush entity:save node -. Re-save the nodes whose Ids are listed in ids.csv.
  • +
  • drush entity:save node --exclude=9,14,81. Re-save all nodes except node 9, 14 and 81.
  • +
  • drush entity:save user. Re-save all users.
  • +
  • drush entity:save node --chunks=5. Re-save all node entities in steps of 5.
  • +
+

Arguments

+
    +
  • entity_type. An entity machine name.
  • +
  • [ids]. A comma delimited list of Ids. The list is read from Stdin if a value of - is provided for this option.
  • +
+

Options

+
    +
  • --bundle=BUNDLE. Restrict to the specified bundle. Ignored when ids is specified.
  • +
  • --exclude=EXCLUDE. Exclude certain entities. Ignored when ids is specified.
  • +
  • --chunks[=CHUNKS]. Define how many entities will be loaded in the same step. [default: 50]
  • +
  • --publish. Publish entities as they are saved.
  • +
  • --unpublish. Unpublish entities as they are saved.
  • +
  • --state=STATE. Transition entities to the specified Content Moderation state. Do not pass --publish or --unpublish since the transition state determines handles publishing.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • esav
  • +
  • entity-save
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/esav/index.html b/13.3.0/commands/esav/index.html new file mode 100644 index 0000000000..3279cf44d2 --- /dev/null +++ b/13.3.0/commands/esav/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/ev/index.html b/13.3.0/commands/ev/index.html new file mode 100644 index 0000000000..553e72f2cd --- /dev/null +++ b/13.3.0/commands/ev/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/eval/index.html b/13.3.0/commands/eval/index.html new file mode 100644 index 0000000000..553e72f2cd --- /dev/null +++ b/13.3.0/commands/eval/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/fbi/index.html b/13.3.0/commands/fbi/index.html new file mode 100644 index 0000000000..9430d024c2 --- /dev/null +++ b/13.3.0/commands/fbi/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/fc/index.html b/13.3.0/commands/fc/index.html new file mode 100644 index 0000000000..8ccd257f13 --- /dev/null +++ b/13.3.0/commands/fc/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/fd/index.html b/13.3.0/commands/fd/index.html new file mode 100644 index 0000000000..bb9b80a996 --- /dev/null +++ b/13.3.0/commands/fd/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/fi/index.html b/13.3.0/commands/fi/index.html new file mode 100644 index 0000000000..cec705b47a --- /dev/null +++ b/13.3.0/commands/fi/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/field_base-info/index.html b/13.3.0/commands/field_base-info/index.html new file mode 100644 index 0000000000..c6286bcc05 --- /dev/null +++ b/13.3.0/commands/field_base-info/index.html @@ -0,0 +1,5364 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + field:base-info - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

field:base-info

+

11.0+

+

List all base fields of an entity type

+

Examples

+
    +
  • field:base-info taxonomy_term. List all base fields.
  • +
  • field:base-info. List all base fields and fill in the remaining information through prompts.
  • +
+

Arguments

+
    +
  • [entityType]. The machine name of the entity type.
  • +
+

Options

+
    +
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • +
  • --show-machine-names. Show machine names instead of labels in option lists.
  • +
  • --fields=FIELDS. Available fields: Label (label), Description (description), Field name (field_name), Field type (field_type), Required (required), Translatable (translatable), Cardinality (cardinality), Default value (default_value), Default value callback (default_value_callback), Allowed values (allowed_values), Allowed values function (allowed_values_function), Selection handler (handler), Target bundles (target_bundles)
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
  • --filter[=FILTER]. Filter output based on provided expression
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • field-base-info
  • +
  • fbi
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/field_base-override-create/index.html b/13.3.0/commands/field_base-override-create/index.html new file mode 100644 index 0000000000..5274264e12 --- /dev/null +++ b/13.3.0/commands/field_base-override-create/index.html @@ -0,0 +1,5354 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + field:base-override-create - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

field:base-override-create

+

11.0+

+

Create a new base field override

+

Examples

+
    +
  • field:base-override-create. Create a base field override by answering the prompts.
  • +
  • field:base-override-create taxonomy_term tag. Create a base field override and fill in the remaining information through prompts.
  • +
  • field:base-override-create taxonomy_term tag --field-name=name --field-label=Label --is-required=1. Create a base field override in a completely non-interactive way.
  • +
+

Arguments

+
    +
  • [entityType]. The machine name of the entity type.
  • +
  • [bundle]. The machine name of the bundle.
  • +
+

Options

+
    +
  • --field-name=FIELD-NAME. A unique machine-readable name containing letters, numbers, and underscores.
  • +
  • --field-label=FIELD-LABEL. The field label
  • +
  • --field-description=FIELD-DESCRIPTION. The field description
  • +
  • --is-required=IS-REQUIRED. Whether the field is required
  • +
  • --show-machine-names[=SHOW-MACHINE-NAMES]. Show machine names instead of labels in option lists.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • bfoc
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/field_create/index.html b/13.3.0/commands/field_create/index.html new file mode 100644 index 0000000000..38da1333fe --- /dev/null +++ b/13.3.0/commands/field_create/index.html @@ -0,0 +1,5363 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + field:create - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

field:create

+

11.0+

+

Create a new field

+

Examples

+
    +
  • field:create. Create a field by answering the prompts.
  • +
  • field:create taxonomy_term tag. Create a field and fill in the remaining information through prompts.
  • +
  • field:create taxonomy_term tag --field-name=field_tag_label --field-label=Label --field-type=string --field-widget=string_textfield --is-required=1 --cardinality=2. Create a field in a completely non-interactive way.
  • +
+

Arguments

+
    +
  • [entityType]. The machine name of the entity type
  • +
  • [bundle]. The machine name of the bundle
  • +
+

Options

+
    +
  • --field-name=FIELD-NAME. A unique machine-readable name containing letters, numbers, and underscores.
  • +
  • --field-label=FIELD-LABEL. The field label
  • +
  • --field-description[=FIELD-DESCRIPTION]. Instructions to present to the user below this field on the editing form.
  • +
  • --field-type=FIELD-TYPE. The field type
  • +
  • --field-widget=FIELD-WIDGET. The field widget
  • +
  • --is-required[=IS-REQUIRED]. Whether the field is required
  • +
  • --is-translatable[=IS-TRANSLATABLE]. Whether the field is translatable
  • +
  • --cardinality=CARDINALITY. The allowed number of values
  • +
  • --target-type[=TARGET-TYPE]. The target entity type. Only necessary for entity reference fields.
  • +
  • --target-bundle[=TARGET-BUNDLE]. The target bundle(s). Only necessary for entity reference fields.
  • +
  • --show-machine-names[=SHOW-MACHINE-NAMES]. Show machine names instead of labels in option lists.
  • +
  • --existing-field-name[=EXISTING-FIELD-NAME]. The name of an existing field you want to re-use. Only used in non-interactive context.
  • +
  • --existing. Re-use an existing field.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • field-create
  • +
  • fc
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/field_delete/index.html b/13.3.0/commands/field_delete/index.html new file mode 100644 index 0000000000..19bdc77e71 --- /dev/null +++ b/13.3.0/commands/field_delete/index.html @@ -0,0 +1,5354 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + field:delete - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

field:delete

+

11.0+

+

Delete a field

+

Examples

+
    +
  • field:delete. Delete a field by answering the prompts.
  • +
  • field-delete taxonomy_term tag. Delete a field and fill in the remaining information through prompts.
  • +
  • field-delete taxonomy_term tag --field-name=field_tag_label. Delete a field in a non-interactive way.
  • +
  • field-delete taxonomy_term --field-name=field_tag_label --all-bundles. Delete a field from all bundles.
  • +
+

Arguments

+
    +
  • [entityType]. The machine name of the entity type.
  • +
  • [bundle]. The machine name of the bundle.
  • +
+

Options

+
    +
  • --field-name=FIELD-NAME. The machine name of the field.
  • +
  • --show-machine-names[=SHOW-MACHINE-NAMES]. Show machine names instead of labels in option lists.
  • +
  • --all-bundles[=ALL-BUNDLES]. Whether to delete the field from all bundles.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • field-delete
  • +
  • fd
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/field_formatters/index.html b/13.3.0/commands/field_formatters/index.html new file mode 100644 index 0000000000..3cce2d12d2 --- /dev/null +++ b/13.3.0/commands/field_formatters/index.html @@ -0,0 +1,5339 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + field:formatters - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

field:formatters

+

Lists field formatters.

+

Examples

+
    +
  • drush field:formatters --field-type=entity_reference. Lists field formatters applicable for entity reference fields.
  • +
+

Options

+
    +
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,tsv,var_dump,var_export,xml,yaml [default: yaml]
  • +
  • --field-type=FIELD-TYPE. Applicable field type.
  • +
  • --fields=FIELDS. Available fields: ID (id), Label (label), Default Settings (default_settings), Field types (field_types), Settings (settings), Class (class), Provider (provider) [default: id label default_settings field_types]
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
  • --filter[=FILTER]. Filter output based on provided expression
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/field_info/index.html b/13.3.0/commands/field_info/index.html new file mode 100644 index 0000000000..180f2811e4 --- /dev/null +++ b/13.3.0/commands/field_info/index.html @@ -0,0 +1,5365 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + field:info - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

field:info

+

11.0+

+

List all configurable fields of an entity bundle

+

Examples

+
    +
  • field:info taxonomy_term tag. List all fields.
  • +
  • field:info. List all fields and fill in the remaining information through prompts.
  • +
+

Arguments

+
    +
  • [entityType]. The machine name of the entity type.
  • +
  • [bundle]. The machine name of the bundle.
  • +
+

Options

+
    +
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • +
  • --show-machine-names. Show machine names instead of labels in option lists.
  • +
  • --fields=FIELDS. Available fields: Label (label), Description (description), Field name (field_name), Field type (field_type), Required (required), Translatable (translatable), Cardinality (cardinality), Default value (default_value), Default value callback (default_value_callback), Allowed values (allowed_values), Allowed values function (allowed_values_function), Selection handler (handler), Target bundles (target_bundles)
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
  • --filter[=FILTER]. Filter output based on provided expression
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • field-info
  • +
  • fi
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/field_types/index.html b/13.3.0/commands/field_types/index.html new file mode 100644 index 0000000000..49a2fea28d --- /dev/null +++ b/13.3.0/commands/field_types/index.html @@ -0,0 +1,5338 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + field:types - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

field:types

+

Lists field types.

+

Examples

+
    +
  • drush field:types. List all registered field types.
  • +
+

Options

+
    +
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,tsv,var_dump,var_export,xml,yaml [default: yaml]
  • +
  • --fields=FIELDS. Available fields: ID (id), Label (label), Default Widget (default_widget), Default Formatter (default_formatter), Settings (settings)
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
  • --filter[=FILTER]. Filter output based on provided expression
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/field_widgets/index.html b/13.3.0/commands/field_widgets/index.html new file mode 100644 index 0000000000..5afb032ba8 --- /dev/null +++ b/13.3.0/commands/field_widgets/index.html @@ -0,0 +1,5339 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + field:widgets - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

field:widgets

+

Lists field widgets.

+

Examples

+
    +
  • drush field:widgets --field-type=entity_reference. Lists field widgets applicable for entity reference fields.
  • +
+

Options

+
    +
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,tsv,var_dump,var_export,xml,yaml [default: yaml]
  • +
  • --field-type=FIELD-TYPE. Applicable field type.
  • +
  • --fields=FIELDS. Available fields: ID (id), Label (label), Default Settings (default_settings), Field types (field_types), Settings (settings), Class (class), Provider (provider) [default: id label default_settings field_types]
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
  • --filter[=FILTER]. Filter output based on provided expression
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/gen/index.html b/13.3.0/commands/gen/index.html new file mode 100644 index 0000000000..53db5acfd6 --- /dev/null +++ b/13.3.0/commands/gen/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/generate/index.html b/13.3.0/commands/generate/index.html new file mode 100644 index 0000000000..902f3f0b20 --- /dev/null +++ b/13.3.0/commands/generate/index.html @@ -0,0 +1,5367 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + generate - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

generate

+

Generate boilerplate code for modules/plugins/services etc.

+

Drush asks questions so that the generated code is as polished as possible. After +generating, Drush lists the files that were created.

+

See https://github.com/Chi-teck/drupal-code-generator for a README and bug reports.

+

Examples

+
    +
  • drush generate. Pick from available generators and then run it.
  • +
  • drush generate drush-command-file. Generate a Drush commandfile for your module.
  • +
  • drush generate controller --answer=Example --answer=example. Generate a controller class and pre-fill the first two questions in the wizard.
  • +
  • drush generate controller -vvv --dry-run. Learn all the potential answers so you can re-run with several --answer options.
  • +
+

Arguments

+
    +
  • [generator]. A generator name. Omit to pick from available Generators.
  • +
+

Options

+
    +
  • --replace.
  • +
  • --working-dir=WORKING-DIR. Absolute path to working directory.
  • +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • gen
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/help/index.html b/13.3.0/commands/help/index.html new file mode 100644 index 0000000000..8763589b75 --- /dev/null +++ b/13.3.0/commands/help/index.html @@ -0,0 +1,5351 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + help - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

help

+

Display usage details for a command.

+

Examples

+
    +
  • drush help pm:uninstall. Show help for a command.
  • +
  • drush help pmu. Show help for a command using an alias.
  • +
  • drush help --format=xml. Show all available commands in XML format.
  • +
  • drush help --format=json. All available commands, in JSON format.
  • +
+

Arguments

+
    +
  • [command_name]. A command name
  • +
+

Options

+
    +
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,string,tsv,var_dump,var_export,xml,yaml [default: helpcli]
  • +
  • --include-field-labels.
  • +
  • --table-style[=TABLE-STYLE]. [default: compact]
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/id/index.html b/13.3.0/commands/id/index.html new file mode 100644 index 0000000000..cc8d81c5b8 --- /dev/null +++ b/13.3.0/commands/id/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/if/index.html b/13.3.0/commands/if/index.html new file mode 100644 index 0000000000..7dd8e04026 --- /dev/null +++ b/13.3.0/commands/if/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/image_derive/index.html b/13.3.0/commands/image_derive/index.html new file mode 100644 index 0000000000..c875b6f044 --- /dev/null +++ b/13.3.0/commands/image_derive/index.html @@ -0,0 +1,5337 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + image:derive - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

image:derive

+

Create an image derivative.

+

Examples

+
    +
  • drush image:derive thumbnail core/themes/bartik/screenshot.png. Save thumbnail sized derivative of logo image.
  • +
+

Arguments

+
    +
  • style_name. An image style machine name.
  • +
  • source. Path to a source image. Optionally prepend stream wrapper scheme. Relative paths calculated from Drupal root.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • id
  • +
  • image-derive
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/image_flush/index.html b/13.3.0/commands/image_flush/index.html new file mode 100644 index 0000000000..2f26b67a0f --- /dev/null +++ b/13.3.0/commands/image_flush/index.html @@ -0,0 +1,5349 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + image:flush - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

image:flush

+

Flush all derived images for a given style.

+

Examples

+
    +
  • drush image:flush. Pick an image style and then delete its derivatives.
  • +
  • drush image:flush thumbnail,large. Delete all thumbnail and large derivatives.
  • +
  • drush image:flush --all. Flush all derived images. They will be regenerated on demand.
  • +
+

Arguments

+
    +
  • style_names. A comma delimited list of image style machine names. If not provided, user may choose from a list of names.
  • +
+

Options

+
    +
  • --all. Flush all derived images
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • if
  • +
  • image-flush
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/in/index.html b/13.3.0/commands/in/index.html new file mode 100644 index 0000000000..c2e4ca6f31 --- /dev/null +++ b/13.3.0/commands/in/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/index.html b/13.3.0/commands/index.html new file mode 100644 index 0000000000..c6898e78f2 --- /dev/null +++ b/13.3.0/commands/index.html @@ -0,0 +1,5498 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Command Authoring - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

Creating Custom Commands

+
+

Tip

+
    +
  1. Drush 13 expects commandfiles to use the AutowireTrait to inject Drupal and Drush dependencies. Prior versions used a drush.services.yml file which is now deprecated and will be removed in Drush 14.
  2. +
  3. Drush 12 expects all commandfiles in the <module-name>/src/Drush/<Commands|Generators> directory. The Drush subdirectory is a new requirement.
  4. +
+
+

Creating a new Drush command is easy. Follow the steps below.

+
    +
  1. Run drush generate drush:command-file.
  2. +
  3. Drush will prompt for the machine name of the module that should own the file. The module selected must already exist and be enabled. Use drush generate module to create a new module.
  4. +
  5. Drush will then report that it created a commandfile. Edit as needed.
  6. +
  7. Use the classes for the core Drush commands at /src/Commands as inspiration and documentation.
  8. +
  9. You may inject dependencies into a command instance.
  10. +
  11. Write PHPUnit tests based on Drush Test Traits.
  12. +
+

Attributes or Annotations

+

The following are both valid ways to declare a command:

+
+
+
+
use Drush\Attributes as CLI;
+
+/**
+ * Retrieve and display xkcd cartoons (attribute variant).
+ */
+#[CLI\Command(name: 'xkcd:fetch-attributes', aliases: ['xkcd-attributes'])]
+#[CLI\Argument(name: 'search', description: 'Optional argument to retrieve the cartoons matching an index, keyword, or "random".')]
+#[CLI\Option(name: 'image-viewer', description: 'Command to use to view images (e.g. xv, firefox).', suggestedValues: ['open', 'xv', 'firefox'])]
+#[CLI\Option(name: 'google-custom-search-api-key', description: 'Google Custom Search API Key')]
+#[CLI\Usage(name: 'drush xkcd', description: 'Retrieve and display the latest cartoon')]
+#[CLI\Usage(name: 'drush xkcd sandwich', description: 'Retrieve and display cartoons about sandwiches.')]
+public function fetch($search = null, $options = ['image-viewer' => 'open', 'google-custom-search-api-key' => 'AIza']) {
+    $this->doFetch($search, $options);
+}
+
+
+
+
/**
+ * @command xkcd:fetch
+ * @param $search Optional argument to retrieve the cartoons matching an index number, keyword, or "random".
+ * @option image-viewer Command to use to view images (e.g. xv, firefox).
+ * @option google-custom-search-api-key Google Custom Search API Key.
+ * @usage drush xkcd
+ *   Retrieve and display the latest cartoon.
+ * @usage drush xkcd sandwich
+ *   Retrieve and display cartoons about sandwiches.
+ * @aliases xkcd
+*/
+public function fetch($search = null, $options = ['image-viewer' => 'open', 'google-custom-search-api-key' => 'AIza']) {
+    $this->doFetch($search, $options);
+}
+
+
+
+
+ +

Altering Command Info

+

Drush command info (annotations/attributes) can be altered from other modules. This is done by creating and registering command info alterers. Alterers are classes that are able to intercept and manipulate an existing command annotation.

+

In the module that wants to alter a command info, add a class that:

+
    +
  1. The class namespace, relative to base namespace, should be Drupal\<module-name>\Drush\CommandInfoAlterers and the class file should be located under the src/Drush/CommandInfoAlterers directory.
  2. +
  3. The filename must have a name like FooCommandInfoAlterer.php. The prefix Foo can be whatever string you want. The file must end in CommandInfoAlterer.php.
  4. +
  5. The class must implement the \Consolidation\AnnotatedCommand\CommandInfoAltererInterface.
  6. +
  7. Implement the alteration logic in the alterCommandInfo() method.
  8. +
  9. Along with the alter code, it's strongly recommended to log a debug message explaining what exactly was altered. This makes things easier on others who may need to debug the interaction of the alter code with other modules. Also it's a good practice to inject the the logger in the class constructor.
  10. +
+

For an example, see WootCommandInfoAlterer provided by the testing 'woot' module.

+

Symfony Console Commands

+

Drush lists and runs Symfony Console commands, in addition to more typical annotated commands. +See GreetCommands as an example. Note that these commands must conform to the usual class name and class namespace requirements. You might need to extend the Console class if you can't rename and move it.

+

Auto-discovered commands (PSR4)

+

Such commands are auto-discovered by their class PSR4 namespace and class/file name suffix. Drush will auto-discover commands if:

+
    +
  • The commands class is PSR4 auto-loadable.
  • +
  • The commands class namespace, relative to base namespace, is Drush\Commands. For instance, if a Drush command provider third party library maps this PSR4 autoload entry: +
    "autoload": {
    +  "psr-4": {
    +    "My\\Custom\\Library\\": "src"
    +  }
    +}
    +
    + then the Drush global commands class namespace should be My\Custom\Library\Drush\Commands and the class file should be located under the src/Drush/Commands directory.
  • +
  • The class and file name ends with *DrushCommands, e.g. FooDrushCommands.
  • +
+

Auto-discovered commandfiles should declare their Drush version compatibility via a conflict directive. For example, a Composer-managed site-wide command that works with both Drush 11 and Drush 12 might contain something similar to the following in its composer.json file: +

    "conflict": {
+        "drush/drush": "<11.0",
+    }
+
+Using require in place of conflict is not recommended.

+
+

Symlinked packages

+

While it is good practice to make your custom commands into a Composer package, please beware that symlinked packages (by using the composer repository type Path) will not be discovered by Drush. When in development, it is recommended to specify your package's path in your drush.yml to have quick access to your commands.

+
+

Site-wide Commands

+

Commandfiles that are installed in a Drupal site and are not bundled inside a Drupal module are called site-wide commandfiles. Site-wide commands may either be added directly to the Drupal site's repository (e.g. for site-specific policy files), or via composer require. See the examples/Commands folder for examples. In general, it's preferable to use modules to carry your Drush commands.

+

Here are some examples of valid commandfile names and namespaces:

+
    +
  1. Simple
      +
    • Filename: $PROJECT_ROOT/drush/Commands/ExampleCommands.php
    • +
    • Namespace: Drush\Commands
    • +
    +
  2. +
  3. Nested in a subdirectory committed to the site's repository
      +
    • Filename: $PROJECT_ROOT/drush/Commands/example/ExampleCommands.php
    • +
    • Namespace: Drush\Commands\example
    • +
    +
  4. +
  5. Nested in a subdirectory installed via a Composer package
      +
    • Filename: $PROJECT_ROOT/drush/Commands/contrib/dev_modules/ExampleCommands.php
    • +
    • Namespace: Drush\Commands\dev_modules
    • +
    +
  6. +
+

Note: Make sure you do not include src in the path to your command. Your command may not be discovered and have additional problems.

+

If a commandfile is added via a Composer package, then it may declare any dependencies that it may need in its composer.json file. Site-wide commandfiles that are committed directly to a site's repository only have access to the dependencies already available in the site.

+

A site-wide commandfile should have tests that run with each (major) version of Drush that is supported. You may model your test suite after the example drush extension project.

+

Global commands discovered by configuration

+
+

Deprecation

+

Configuration discovery has been deprecated and will be removed in a future version of Drush. It is recommended that you avoid global Drush commands, and favor site-wide or PSR4 discovered commandfiles instead. If you really need commands that are not part of any Drupal site, consider making a stand-alone script or custom .phar instead. See ahoy, Robo and g1a/starter as potential starting points.

+
+

Global commandfiles discoverable by configuration are not supported by default; in order to enable them, you must configure your drush.yml configuration file to add an include search location.

+

For example:

+

drush:
+  paths:
+    include:
+      - '${env.home}/.drush/commands'
+
+With this configuration in place, global commands may be placed as described in the Site-Wide Drush Commands section above. Global commandfiles may not declare any dependencies of their own; they may only use those dependencies already available via the autoloader.

+
+

Tip

+
    +
  1. The filename must be have a name like Commands/ExampleCommands.php
  2. +
  3. The prefix Example can be whatever string you want.
  4. +
  5. The file must end in Commands.php
      +
    1. The directory above Commands must be one of:
        +
      1. A Folder listed in the 'include' option. Include may be provided via config or via CLI.
      2. +
      3. ../drush, /drush or /sites/all/drush. These paths are relative to Drupal root.
      4. +
      +
    2. +
    +
  6. +
+
+

Xdebug

+

Drush disables Xdebug by default. This improves performance substantially, because developers are often debugging something other than Drush and they still need to clear caches, import config, etc. There are two equivalent ways to override Drush's disabling of Xdebug:

+
    +
  • Pass the --xdebug global option.
  • +
  • Set an environment variable: DRUSH_ALLOW_XDEBUG=1 drush [command]
  • +
+ +
+
+ + + Last update: + October 6, 2024 + + + +
+ + + + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/install/index.html b/13.3.0/commands/install/index.html new file mode 100644 index 0000000000..c2e4ca6f31 --- /dev/null +++ b/13.3.0/commands/install/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/jn_get/index.html b/13.3.0/commands/jn_get/index.html new file mode 100644 index 0000000000..87b7acad0e --- /dev/null +++ b/13.3.0/commands/jn_get/index.html @@ -0,0 +1,5338 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + jn:get - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

jn:get

+

Execute a JSONAPI request.

+

Examples

+
    +
  • drush jn:get jsonapi/node/article. Get a list of articles back as JSON.
  • +
  • drush jn:get jsonapi/node/article | jq. Pretty print JSON by piping to jq. See https://stedolan.github.io/jq/ for lots more jq features.
  • +
+

Arguments

+
    +
  • url. The JSONAPI URL to request.
  • +
+

Options

+
    +
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,tsv,var_dump,var_export,xml,yaml [default: json]
  • +
  • --fields=FIELDS. Limit output to only the listed elements. Name top-level elements by key, e.g. "--fields=name,date", or use dot notation to select a nested element, e.g. "--fields=a.b.c as example".
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/list/index.html b/13.3.0/commands/list/index.html new file mode 100644 index 0000000000..de9065efd3 --- /dev/null +++ b/13.3.0/commands/list/index.html @@ -0,0 +1,5328 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + list - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

list

+

List available commands.

+

Examples

+
    +
  • drush list. List all commands.
  • +
  • drush list --filter=devel_generate. Show only commands starting with devel-
  • +
  • drush list --format=xml. List all commands in Symfony compatible xml format.
  • +
+

Options

+
    +
  • --format[=FORMAT]. [default: listcli]
  • +
  • --raw. Show a simple table of command names and descriptions.
  • +
  • --filter=FILTER. Restrict command list to those commands defined in the specified file. Omit value to choose from a list of names.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/locale_check/index.html b/13.3.0/commands/locale_check/index.html new file mode 100644 index 0000000000..b9a75cf01e --- /dev/null +++ b/13.3.0/commands/locale_check/index.html @@ -0,0 +1,5313 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + locale:check - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

locale:check

+

Checks for available translation updates.

+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • locale-check
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/locale_clear-status/index.html b/13.3.0/commands/locale_clear-status/index.html new file mode 100644 index 0000000000..b3d2ab29f1 --- /dev/null +++ b/13.3.0/commands/locale_clear-status/index.html @@ -0,0 +1,5314 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + locale:clear-status - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

locale:clear-status

+

11.5+

+

Clears the translation status.

+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • locale-clear-status
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/locale_export/index.html b/13.3.0/commands/locale_export/index.html new file mode 100644 index 0000000000..ea36f72b91 --- /dev/null +++ b/13.3.0/commands/locale_export/index.html @@ -0,0 +1,5350 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + locale:export - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

locale:export

+

Exports to a gettext translation file.

+

See Drupal Core: \Drupal\locale\Form\ExportForm::submitForm

+

Examples

+
    +
  • drush locale:export nl > nl.po. Export the Dutch translations with all types.
  • +
  • drush locale:export nl --types=customized,not-customized > nl.po. Export the Dutch customized and not customized translations.
  • +
  • drush locale:export --template > drupal.pot. Export the source strings only as template file for translation.
  • +
+

Arguments

+
    +
  • [langcode]. The language code of the exported translations.
  • +
+

Options

+
    +
  • --template. POT file output of extracted source texts to be translated.
  • +
  • --types=TYPES. A comma separated list of string types to include, defaults to all types. Recognized values: not-customized, customized, not-translated
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • locale-export
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/locale_import-all/index.html b/13.3.0/commands/locale_import-all/index.html new file mode 100644 index 0000000000..221c3c29bd --- /dev/null +++ b/13.3.0/commands/locale_import-all/index.html @@ -0,0 +1,5350 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + locale:import-all - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

locale:import-all

+

12.2+

+

Imports multiple translation files from the defined directory.

+

Examples

+
    +
  • drush locale:import-all /var/www/translations. Import all translations from the defined directory (non-recursively). Supported filename patterns are: {project}-{version}.{langcode}.po, {prefix}.{langcode}.po or {langcode}.po.
  • +
  • drush locale:import-all /var/www/translations/custom --type=customized --override=all. Import all custom translations from the defined directory (non-recursively) and override any existing translation. Supported filename patterns are: {project}-{version}.{langcode}.po, {prefix}.{langcode}.po or {langcode}.po.
  • +
+

Arguments

+
    +
  • directory. The path to directory with translation files to import.
  • +
+

Options

+
    +
  • --type=TYPE. String types to include, defaults to not-customized. Recognized values: not-customized, customized
  • +
  • --override=OVERRIDE. Whether and how imported strings will override existing translations. Defaults to the Import behavior configured in the admin interface. Recognized values: none, customized, not-customized, all
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • locale-import-all
  • +
  • locale:import:all
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/locale_import/index.html b/13.3.0/commands/locale_import/index.html new file mode 100644 index 0000000000..d92aea7324 --- /dev/null +++ b/13.3.0/commands/locale_import/index.html @@ -0,0 +1,5353 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + locale:import - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

locale:import

+

Imports to a gettext translation file.

+

Examples

+
    +
  • drush locale-import nl drupal-8.4.2.nl.po. Import the Dutch drupal core translation.
  • +
  • drush locale-import --type=customized nl drupal-8.4.2.nl.po. Import the Dutch drupal core translation. Treat imported strings as custom translations.
  • +
  • drush locale-import --override=none nl drupal-8.4.2.nl.po. Import the Dutch drupal core translation. Don't overwrite existing translations. Only append new translations.
  • +
  • drush locale-import --override=not-customized nl drupal-8.4.2.nl.po. Import the Dutch drupal core translation. Only override non-customized translations, customized translations are kept.
  • +
  • drush locale-import nl custom-translations.po --type=customized --override=all. Import customized Dutch translations and override any existing translation.
  • +
+

Arguments

+
    +
  • langcode. The language code of the imported translations.
  • +
  • file. Path and file name of the gettext file. Relative paths calculated from Drupal root.
  • +
+

Options

+
    +
  • --type[=TYPE]. String types to include, defaults to all types. Recognized values: not-customized, customized, not-translated [default: not-customized]
  • +
  • --override=OVERRIDE. Whether and how imported strings will override existing translations. Defaults to the Import behavior configured in the admin interface. Recognized values: none, customized, not-customized, all
  • +
  • --autocreate-language. Create the language in addition to import.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • locale-import
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/locale_update/index.html b/13.3.0/commands/locale_update/index.html new file mode 100644 index 0000000000..5d3048084c --- /dev/null +++ b/13.3.0/commands/locale_update/index.html @@ -0,0 +1,5324 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + locale:update - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

locale:update

+

Imports the available translation updates.

+

Options

+
    +
  • --langcodes=LANGCODES. A comma-separated list of language codes to update. If omitted, all translations will be updated.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • locale-update
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/maint_get/index.html b/13.3.0/commands/maint_get/index.html new file mode 100644 index 0000000000..8b2d2bee64 --- /dev/null +++ b/13.3.0/commands/maint_get/index.html @@ -0,0 +1,5326 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + maint:get - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

maint:get

+

11.5+

+

Get maintenance mode. Returns 1 if enabled, 0 if not.

+

Consider using maint:status instead when chaining commands.

+

Examples

+
    +
  • drush maint:get. Print value of maintenance mode in Drupal
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • mget
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/maint_set/index.html b/13.3.0/commands/maint_set/index.html new file mode 100644 index 0000000000..d96f4ff4d4 --- /dev/null +++ b/13.3.0/commands/maint_set/index.html @@ -0,0 +1,5337 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + maint:set - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

maint:set

+

11.5+

+

Set maintenance mode.

+

Examples

+
    +
  • drush maint:set 1. Put site into Maintenance mode.
  • +
  • drush maint:set 0. Remove site from Maintenance mode.
  • +
+

Arguments

+
    +
  • value. The value to assign to the state key
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • mset
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/maint_status/index.html b/13.3.0/commands/maint_status/index.html new file mode 100644 index 0000000000..6fd383fd5f --- /dev/null +++ b/13.3.0/commands/maint_status/index.html @@ -0,0 +1,5327 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + maint:status - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

maint:status

+

11.5+

+

Fail if maintenance mode is enabled.

+

This commands fails with exit code of 3 when maintenance mode is on. This special +exit code distinguishes from a failure to complete.

+

Examples

+
    +
  • drush maint:status && drush cron. Only run cron when Drupal is not in maintenance mode.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • mstatus
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/mfs/index.html b/13.3.0/commands/mfs/index.html new file mode 100644 index 0000000000..829b646cff --- /dev/null +++ b/13.3.0/commands/mfs/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/mget/index.html b/13.3.0/commands/mget/index.html new file mode 100644 index 0000000000..df3a270198 --- /dev/null +++ b/13.3.0/commands/mget/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/migrate_fields-source/index.html b/13.3.0/commands/migrate_fields-source/index.html new file mode 100644 index 0000000000..ad9b5b138b --- /dev/null +++ b/13.3.0/commands/migrate_fields-source/index.html @@ -0,0 +1,5362 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + migrate:fields-source - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

migrate:fields-source

+

10.4+

+

List the fields available for mapping in a source.

+

Examples

+
    +
  • migrate:fields-source article. List fields for the source in the article migration.
  • +
+

Arguments

+
    +
  • migrationId. The ID of the migration.
  • +
+

Options

+
    +
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • +
  • --fields=FIELDS. Available fields: Field name (machine_name), Description (description) [default: machine_name description]
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • mfs
  • +
  • migrate-fields-source
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/migrate_import/index.html b/13.3.0/commands/migrate_import/index.html new file mode 100644 index 0000000000..8888bc1666 --- /dev/null +++ b/13.3.0/commands/migrate_import/index.html @@ -0,0 +1,5379 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + migrate:import - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

migrate:import

+

10.4+

+

Perform one or more migration processes.

+

Examples

+
    +
  • migrate:import --all. Perform all migrations
  • +
  • migrate:import --all --no-progress. Perform all migrations but avoid the progress bar
  • +
  • migrate:import --tag=user,main_content. Import all migrations tagged with user and main_content tags
  • +
  • migrate:import classification,article. Import new terms and nodes using migration classification and article
  • +
  • migrate:import user --limit=2. Import no more than 2 users using the user migration
  • +
  • migrate:import user --idlist=5. Import the user record with source ID 5
  • +
  • migrate:import node_revision --idlist=1:2,2:3,3:5. Import the node revision record with source IDs [1,2], [2,3], and [3,5]
  • +
  • migrate:import user --limit=50 --feedback=20. Import 50 users and show process message every 20th record
  • +
  • migrate:import --all --delete. Perform all migrations and delete the destination items that are missing from source
  • +
+

Arguments

+
    +
  • [migrationIds]. Comma-separated list of migration IDs.
  • +
+

Options

+
    +
  • --all. Process all migrations
  • +
  • --tag=TAG. A comma-separated list of migration tags to import
  • +
  • --limit=LIMIT. Limit on the number of items to process in each migration
  • +
  • --feedback=FEEDBACK. Frequency of progress messages, in items processed
  • +
  • --idlist=IDLIST. Comma-separated list of IDs to import. As an ID may have more than one column, concatenate the columns with the colon ':' separator
  • +
  • --update. In addition to processing unprocessed items from the source, update previously-imported items with the current data
  • +
  • --force. Force an operation to run, even if all dependencies are not satisfied
  • +
  • --execute-dependencies. Execute all dependent migrations first
  • +
  • --timestamp. Show progress ending timestamp in progress messages
  • +
  • --total. Show total processed item number in progress messages
  • +
  • --progress[=PROGRESS]. Show progress bar [default: 1]
  • +
  • --delete. Delete destination records missed from the source. Not compatible with --limit and --idlist options, and high_water_property source configuration key.
  • +
  • --no-progress. Negate --progress option.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • mim
  • +
  • migrate-import
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/migrate_messages/index.html b/13.3.0/commands/migrate_messages/index.html new file mode 100644 index 0000000000..035cf9422d --- /dev/null +++ b/13.3.0/commands/migrate_messages/index.html @@ -0,0 +1,5365 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + migrate:messages - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

migrate:messages

+

10.4+

+

View any messages associated with a migration.

+

Examples

+
    +
  • migrate:messages article. Show all messages for the article migration
  • +
  • migrate:messages node_revision --idlist=1:2,2:3,3:5. Show messages related to node revision records with source IDs [1,2], [2,3], and [3,5].
  • +
  • migrate:messages custom_node_revision --idlist=1:"r:1",2:"r:3". Show messages related to node revision records with source IDs [1,"r:1"], and [2,"r:3"].
  • +
+

Arguments

+
    +
  • migrationId. The ID of the migration.
  • +
+

Options

+
    +
  • --idlist=IDLIST. Comma-separated list of IDs to import. As an ID may have more than one column, concatenate the columns with the colon ':' separator
  • +
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • +
  • --fields=FIELDS. Available fields: Level (level), Source ID(s) (source_ids), Destination ID(s) (destination_ids), Message (message), Source IDs hash (hash) [default: level source_ids destination_ids message hash]
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • mmsg
  • +
  • migrate-messages
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/migrate_reset-status/index.html b/13.3.0/commands/migrate_reset-status/index.html new file mode 100644 index 0000000000..e272492695 --- /dev/null +++ b/13.3.0/commands/migrate_reset-status/index.html @@ -0,0 +1,5337 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + migrate:reset-status - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

migrate:reset-status

+

10.4+

+

Reset an active migration's status to idle.

+

Arguments

+
    +
  • migrationId. The ID of migration to reset.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • mrs
  • +
  • migrate-reset-status
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/migrate_rollback/index.html b/13.3.0/commands/migrate_rollback/index.html new file mode 100644 index 0000000000..64a1967d08 --- /dev/null +++ b/13.3.0/commands/migrate_rollback/index.html @@ -0,0 +1,5368 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + migrate:rollback - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

migrate:rollback

+

10.4+

+

Rollback one or more migrations.

+

Examples

+
    +
  • migrate:rollback --all. Rollback all migrations
  • +
  • migrate:rollback --all --no-progress. Rollback all migrations but avoid the progress bar
  • +
  • migrate:rollback --tag=user,main_content. Rollback all migrations tagged with user and main_content tags
  • +
  • migrate:rollback classification,article. Rollback terms and nodes imported by classification and article migrations
  • +
  • migrate:rollback user --idlist=5. Rollback imported user record with source ID 5
  • +
+

Arguments

+
    +
  • [migrationIds]. Comma-separated list of migration IDs.
  • +
+

Options

+
    +
  • --all. Process all migrations
  • +
  • --tag=TAG. A comma-separated list of migration tags to rollback
  • +
  • --feedback=FEEDBACK. Frequency of progress messages, in items processed
  • +
  • --idlist=IDLIST. Comma-separated list of IDs to rollback. As an ID may have more than one column, concatenate the columns with the colon ':' separator
  • +
  • --progress[=PROGRESS]. Show progress bar [default: 1]
  • +
  • --no-progress. Negate --progress option.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • mr
  • +
  • migrate-rollback
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/migrate_status/index.html b/13.3.0/commands/migrate_status/index.html new file mode 100644 index 0000000000..4d1231dec7 --- /dev/null +++ b/13.3.0/commands/migrate_status/index.html @@ -0,0 +1,5369 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + migrate:status - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

migrate:status

+

10.4+

+

List all migrations with current status.

+

Examples

+
    +
  • migrate:status. Retrieve status for all migrations
  • +
  • migrate:status --tag. Retrieve status for all migrations, grouped by tag
  • +
  • migrate:status --tag=user,main_content. Retrieve status for all migrations tagged with user or main_content
  • +
  • migrate:status classification,article. Retrieve status for specific migrations
  • +
  • migrate:status --field=id. Retrieve a raw list of migration IDs.
  • +
  • ms --fields=id,status --format=json. Retrieve a Json serialized list of migrations, each item containing only the migration ID and its status.
  • +
+

Arguments

+
    +
  • [migrationIds]. Restrict to a comma-separated list of migrations. Optional.
  • +
+

Options

+
    +
  • --tag=TAG. A comma-separated list of migration tags to list. If only --tag is provided, all tagged migrations will be listed, grouped by tags.
  • +
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • +
  • --fields=FIELDS. Available fields: Migration ID (id), Status (status), Total (total), Imported (imported), Needing update (needing_update), Unprocessed (unprocessed), Last Imported (last_imported) [default: id status total imported unprocessed last_imported]
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
  • --filter[=FILTER]. Filter output based on provided expression
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • ms
  • +
  • migrate-status
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/migrate_stop/index.html b/13.3.0/commands/migrate_stop/index.html new file mode 100644 index 0000000000..fce9cd036e --- /dev/null +++ b/13.3.0/commands/migrate_stop/index.html @@ -0,0 +1,5337 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + migrate:stop - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

migrate:stop

+

10.4+

+

Stop an active migration operation.

+

Arguments

+
    +
  • migrationId. The ID of migration to stop.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • mst
  • +
  • migrate-stop
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/mim/index.html b/13.3.0/commands/mim/index.html new file mode 100644 index 0000000000..3ec658507f --- /dev/null +++ b/13.3.0/commands/mim/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/mk_docs/index.html b/13.3.0/commands/mk_docs/index.html new file mode 100644 index 0000000000..6055519f0a --- /dev/null +++ b/13.3.0/commands/mk_docs/index.html @@ -0,0 +1,5325 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + mk:docs - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

mk:docs

+

Build a Markdown document for each available Drush command/generator.

+

This command is an early step when building the www.drush.org static site. Adapt it to build a similar site listing the commands that are available on your site. Also see Drush's Github Actions workflow.

+

Examples

+
    +
  • drush mk:docs. Build many .md files in the docs/commands and docs/generators directories.
  • +
+

Arguments

+
    +
  • command. The command to execute
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/mmsg/index.html b/13.3.0/commands/mmsg/index.html new file mode 100644 index 0000000000..efeb29aa2a --- /dev/null +++ b/13.3.0/commands/mmsg/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/mr/index.html b/13.3.0/commands/mr/index.html new file mode 100644 index 0000000000..39ebf2ac4f --- /dev/null +++ b/13.3.0/commands/mr/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/mrs/index.html b/13.3.0/commands/mrs/index.html new file mode 100644 index 0000000000..6fc9653262 --- /dev/null +++ b/13.3.0/commands/mrs/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/ms/index.html b/13.3.0/commands/ms/index.html new file mode 100644 index 0000000000..cd346592c6 --- /dev/null +++ b/13.3.0/commands/ms/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/mset/index.html b/13.3.0/commands/mset/index.html new file mode 100644 index 0000000000..ab8260386b --- /dev/null +++ b/13.3.0/commands/mset/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/mst/index.html b/13.3.0/commands/mst/index.html new file mode 100644 index 0000000000..28dbe7b8c1 --- /dev/null +++ b/13.3.0/commands/mst/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/mstatus/index.html b/13.3.0/commands/mstatus/index.html new file mode 100644 index 0000000000..f492bd6091 --- /dev/null +++ b/13.3.0/commands/mstatus/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/php/index.html b/13.3.0/commands/php/index.html new file mode 100644 index 0000000000..5c2afe81a1 --- /dev/null +++ b/13.3.0/commands/php/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/php_cli/index.html b/13.3.0/commands/php_cli/index.html new file mode 100644 index 0000000000..fbbc2a00c4 --- /dev/null +++ b/13.3.0/commands/php_cli/index.html @@ -0,0 +1,5350 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + php:cli - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

php:cli

+

Open an interactive shell on a Drupal site.

+

Examples

+
    +
  • $node = Node::load(1). Entity classes are available without their namespace. For example, Node::load(1) works instead of Drupal\Node\entity\Node::load(1).
  • +
  • $paragraph = Paragraph::loadRevision(1). Also, a loadRevision static method is made available for easier load of revisions.
  • +
+

Options

+
    +
  • --version-history. Use command history based on Drupal version. Default is per site.
  • +
  • --cwd=CWD. A directory to change to before launching the shell. Default is the project root directory
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • php
  • +
  • core:cli
  • +
  • core-cli
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/php_eval/index.html b/13.3.0/commands/php_eval/index.html new file mode 100644 index 0000000000..b4fbd2a607 --- /dev/null +++ b/13.3.0/commands/php_eval/index.html @@ -0,0 +1,5351 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + php:eval - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

php:eval

+

Evaluate arbitrary php code after bootstrapping Drupal (if available).

+

Examples

+
    +
  • drush php:eval '$node = \Drupal +ode\Entity\Node::load(1); print $node->getTitle();'. Loads node with nid 1 and then prints its title.
  • +
  • drush php:eval "\Drupal::service('file_system')->copy('$HOME/Pictures/image.jpg', 'public://image.jpg');". Copies a file whose path is determined by an environment's variable. Use of double quotes so the variable $HOME gets replaced by its value.
  • +
  • drush php:eval "node_access_rebuild();". Rebuild node access permissions.
  • +
+

Arguments

+
    +
  • code. PHP code. If shell escaping gets too tedious, consider using the php:script command.
  • +
+

Options

+
    +
  • --format[=FORMAT]. [default: var_dump]
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • eval
  • +
  • ev
  • +
  • php-eval
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/php_script/index.html b/13.3.0/commands/php_script/index.html new file mode 100644 index 0000000000..1bdbd28fac --- /dev/null +++ b/13.3.0/commands/php_script/index.html @@ -0,0 +1,5367 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + php:script - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

php:script

+

Run php a script after a full Drupal bootstrap.

+

A useful alternative to eval command when your php is lengthy or you +can't be bothered to figure out bash quoting. If you plan to share a +script with others, consider making a full Drush command instead, since +that's more self-documenting. Drush provides commandline options to the +script via a variable called $extra.

+

Examples

+
    +
  • drush php:script example --script-path=/path/to/scripts:/another/path. Run a script named example.php from specified paths
  • +
  • drush php:script -. Run PHP code from standard input.
  • +
  • drush php:script. List all available scripts.
  • +
  • drush php:script foo -- apple --cider. Run foo.php script with argument apple and option cider. Note the -- separator.
  • +
+

Arguments

+
    +
  • [extra]....
  • +
+

Options

+
    +
  • --format[=FORMAT]. [default: var_export]
  • +
  • --script-path=SCRIPT-PATH. Additional paths to search for scripts, separated by : (Unix-based systems) or ; (Windows).
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • scr
  • +
  • php-script
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/pm-enable/index.html b/13.3.0/commands/pm-enable/index.html new file mode 100644 index 0000000000..c2e4ca6f31 --- /dev/null +++ b/13.3.0/commands/pm-enable/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/pm_enable/index.html b/13.3.0/commands/pm_enable/index.html new file mode 100644 index 0000000000..c2e4ca6f31 --- /dev/null +++ b/13.3.0/commands/pm_enable/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/pm_install/index.html b/13.3.0/commands/pm_install/index.html new file mode 100644 index 0000000000..f6c6c42763 --- /dev/null +++ b/13.3.0/commands/pm_install/index.html @@ -0,0 +1,5340 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + pm:install - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

pm:install

+

Enable one or more modules.

+

Examples

+
    +
  • drush pm:install --simulate content_moderation. Display what modules would be installed but don't install them.
  • +
+

Arguments

+
    +
  • [modules].... A comma delimited list of modules.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • in
  • +
  • install
  • +
  • pm-install
  • +
  • en
  • +
  • pm-enable
  • +
  • pm:enable
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/pm_list/index.html b/13.3.0/commands/pm_list/index.html new file mode 100644 index 0000000000..cdf0c344c4 --- /dev/null +++ b/13.3.0/commands/pm_list/index.html @@ -0,0 +1,5344 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + pm:list - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

pm:list

+

Show a list of available extensions (modules and themes).

+

Options

+
    +
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • +
  • --type[=TYPE]. Only show extensions having a given type. Choices: module, theme. [default: module,theme]
  • +
  • --status[=STATUS]. Only show extensions having a given status. Choices: enabled or disabled. [default: enabled,disabled]
  • +
  • --package=PACKAGE. Only show extensions having a given project packages (e.g. Development).
  • +
  • --core. Only show extensions that are in Drupal core.
  • +
  • --no-core. Only show extensions that are not provided by Drupal core.
  • +
  • --fields=FIELDS. Available fields: Package (package), Project (project), Name (display_name), Name (name), Type (type), Path (path), Status (status), Version (version)
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
  • --filter[=FILTER]. Filter output based on provided expression
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • pml
  • +
  • pm-list
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/pm_uninstall/index.html b/13.3.0/commands/pm_uninstall/index.html new file mode 100644 index 0000000000..e19a23afb1 --- /dev/null +++ b/13.3.0/commands/pm_uninstall/index.html @@ -0,0 +1,5337 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + pm:uninstall - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

pm:uninstall

+

Uninstall one or more modules and their dependent modules.

+

Examples

+
    +
  • drush pm:uninstall --simulate field_ui. Display what modules would be uninstalled but don't uninstall them.
  • +
+

Arguments

+
    +
  • [modules].... A comma delimited list of modules.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • un
  • +
  • pmu
  • +
  • pm-uninstall
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/pml/index.html b/13.3.0/commands/pml/index.html new file mode 100644 index 0000000000..e69b0cf53f --- /dev/null +++ b/13.3.0/commands/pml/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/pmu/index.html b/13.3.0/commands/pmu/index.html new file mode 100644 index 0000000000..fd3dae2e4a --- /dev/null +++ b/13.3.0/commands/pmu/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/queue_delete/index.html b/13.3.0/commands/queue_delete/index.html new file mode 100644 index 0000000000..7d3d7f10b6 --- /dev/null +++ b/13.3.0/commands/queue_delete/index.html @@ -0,0 +1,5324 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + queue:delete - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

queue:delete

+

Delete all items in a specific queue.

+

Arguments

+
    +
  • name. The name of the queue to delete.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • queue-delete
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/queue_list/index.html b/13.3.0/commands/queue_list/index.html new file mode 100644 index 0000000000..14b51bd12f --- /dev/null +++ b/13.3.0/commands/queue_list/index.html @@ -0,0 +1,5338 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + queue:list - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

queue:list

+

Returns a list of all defined queues.

+

Options

+
    +
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • +
  • --fields=FIELDS. Available fields: Queue (queue), Items (items), Class (class)
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
  • --filter[=FILTER]. Filter output based on provided expression
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • queue-list
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/queue_run/index.html b/13.3.0/commands/queue_run/index.html new file mode 100644 index 0000000000..d3b6fda0d0 --- /dev/null +++ b/13.3.0/commands/queue_run/index.html @@ -0,0 +1,5337 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + queue:run - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

queue:run

+

Run a specific queue by name.

+

Arguments

+
    +
  • name. The name of the queue to run.
  • +
+

Options

+
    +
  • --time-limit=TIME-LIMIT. The maximum number of seconds allowed to run the queue.
  • +
  • --items-limit=ITEMS-LIMIT. The maximum number of items allowed to run the queue.
  • +
  • --lease-time=LEASE-TIME. The maximum number of seconds that an item remains claimed.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • queue-run
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/rap/index.html b/13.3.0/commands/rap/index.html new file mode 100644 index 0000000000..a96dbefa59 --- /dev/null +++ b/13.3.0/commands/rap/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/rcrt/index.html b/13.3.0/commands/rcrt/index.html new file mode 100644 index 0000000000..7ef8b0c06d --- /dev/null +++ b/13.3.0/commands/rcrt/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/rdel/index.html b/13.3.0/commands/rdel/index.html new file mode 100644 index 0000000000..66bf64213c --- /dev/null +++ b/13.3.0/commands/rdel/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/rebuild/index.html b/13.3.0/commands/rebuild/index.html new file mode 100644 index 0000000000..3f488e4ecd --- /dev/null +++ b/13.3.0/commands/rebuild/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/recipe/index.html b/13.3.0/commands/recipe/index.html new file mode 100644 index 0000000000..42f91d1f53 --- /dev/null +++ b/13.3.0/commands/recipe/index.html @@ -0,0 +1,5309 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + recipe - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

recipe

+

Applies a recipe to a site.

+

See https://drupal.org/project/issues/drupal for bug reports and feature requests for this command.

+

Arguments

+
    +
  • path. The path to the recipe's folder to apply
  • +
+

Options

+
    +
  • -i, --input=INPUT. An input value to pass to the recipe or one of its dependencies, in the form --input=RECIPE_NAME.INPUT_NAME=VALUE.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/rls/index.html b/13.3.0/commands/rls/index.html new file mode 100644 index 0000000000..fe687e3c67 --- /dev/null +++ b/13.3.0/commands/rls/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/rmp/index.html b/13.3.0/commands/rmp/index.html new file mode 100644 index 0000000000..cb2ac5dda1 --- /dev/null +++ b/13.3.0/commands/rmp/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/role-add-perm/index.html b/13.3.0/commands/role-add-perm/index.html new file mode 100644 index 0000000000..a96dbefa59 --- /dev/null +++ b/13.3.0/commands/role-add-perm/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/role-remove-perm/index.html b/13.3.0/commands/role-remove-perm/index.html new file mode 100644 index 0000000000..cb2ac5dda1 --- /dev/null +++ b/13.3.0/commands/role-remove-perm/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/role_create/index.html b/13.3.0/commands/role_create/index.html new file mode 100644 index 0000000000..39c9db4ce5 --- /dev/null +++ b/13.3.0/commands/role_create/index.html @@ -0,0 +1,5337 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + role:create - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

role:create

+

Create a new role.

+

Examples

+
    +
  • drush role:create 'test_role' 'Test role'. Create a new role with a machine name of 'test_role', and a human-readable name of 'Test role'.
  • +
+

Arguments

+
    +
  • machine_name. The symbolic machine name for the role.
  • +
  • [human_readable_name]. A descriptive name for the role.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • rcrt
  • +
  • role-create
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/role_delete/index.html b/13.3.0/commands/role_delete/index.html new file mode 100644 index 0000000000..3fc119070d --- /dev/null +++ b/13.3.0/commands/role_delete/index.html @@ -0,0 +1,5336 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + role:delete - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

role:delete

+

Delete a role.

+

Examples

+
    +
  • drush role:delete 'test_role'. Delete the role 'test_role'.
  • +
+

Arguments

+
    +
  • machine_name. The symbolic machine name for the role.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • rdel
  • +
  • role-delete
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/role_list/index.html b/13.3.0/commands/role_list/index.html new file mode 100644 index 0000000000..5b5cacb0cb --- /dev/null +++ b/13.3.0/commands/role_list/index.html @@ -0,0 +1,5351 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + role:list - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

role:list

+

Display roles and their permissions.

+

Examples

+
    +
  • drush role:list --filter='administer nodes'. Display a list of roles that have the administer nodes permission assigned.
  • +
  • drush role:list --filter='rid=anonymous'. Display only the anonymous role.
  • +
+

Options

+
    +
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: yaml]
  • +
  • --fields=FIELDS. Available fields: ID (rid), Role Label (label), Permissions (perms)
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
  • --filter[=FILTER]. Filter output based on provided expression
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • rls
  • +
  • role-list
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/role_perm_add/index.html b/13.3.0/commands/role_perm_add/index.html new file mode 100644 index 0000000000..7d54b0e4df --- /dev/null +++ b/13.3.0/commands/role_perm_add/index.html @@ -0,0 +1,5338 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + role:perm:add - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

role:perm:add

+

Grant specified permission(s) to a role.

+

Examples

+
    +
  • drush role:perm:add anonymous 'post comments'. Allow anon users to post comments.
  • +
  • drush role:perm:add anonymous 'post comments,access content'. Allow anon users to post comments and access content.
  • +
+

Arguments

+
    +
  • machine_name. The role to modify.
  • +
  • permissions. The list of permission to grant, delimited by commas.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • rap
  • +
  • role-add-perm
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/role_perm_remove/index.html b/13.3.0/commands/role_perm_remove/index.html new file mode 100644 index 0000000000..de4d8d0421 --- /dev/null +++ b/13.3.0/commands/role_perm_remove/index.html @@ -0,0 +1,5337 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + role:perm:remove - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

role:perm:remove

+

Remove specified permission(s) from a role.

+

Examples

+
    +
  • drush role:remove-perm anonymous. Remove 2 permissions from anon users.
  • +
+

Arguments

+
    +
  • machine_name. The role to modify.
  • +
  • permissions. The list of permission to grant, delimited by commas.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • rmp
  • +
  • role-remove-perm
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/route/index.html b/13.3.0/commands/route/index.html new file mode 100644 index 0000000000..4550a88a39 --- /dev/null +++ b/13.3.0/commands/route/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/rq/index.html b/13.3.0/commands/rq/index.html new file mode 100644 index 0000000000..f2fd34100b --- /dev/null +++ b/13.3.0/commands/rq/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/rs/index.html b/13.3.0/commands/rs/index.html new file mode 100644 index 0000000000..5c55fc9f77 --- /dev/null +++ b/13.3.0/commands/rs/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/rsync/index.html b/13.3.0/commands/rsync/index.html new file mode 100644 index 0000000000..3a67abca48 --- /dev/null +++ b/13.3.0/commands/rsync/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/runserver/index.html b/13.3.0/commands/runserver/index.html new file mode 100644 index 0000000000..cc63ae930d --- /dev/null +++ b/13.3.0/commands/runserver/index.html @@ -0,0 +1,5361 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + runserver - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

runserver

+

Runs PHP's built-in http server for development.

+
    +
  • Don't use this for production, it is neither scalable nor secure for this use.
  • +
  • If you run multiple servers simultaneously, you will need to assign each a unique port.
  • +
  • Use Ctrl-C or equivalent to stop the server when complete.
  • +
+

Examples

+
    +
  • drush rs 8080. Start a web server on 127.0.0.1, port 8080.
  • +
  • drush rs 10.0.0.28:80. Start runserver on 10.0.0.28, port 80.
  • +
  • drush rs [::1]:80. Start runserver on IPv6 localhost ::1, port 80.
  • +
  • drush rs --dns localhost:8888/user. Start runserver on localhost (using rDNS to determine binding IP), port 8888, and open /user in browser.
  • +
  • drush rs /. Start runserver on default IP/port (127.0.0.1, port 8888), and open / in browser.
  • +
  • drush rs :9000/admin. Start runserver on 127.0.0.1, port 9000, and open /admin in browser. Note that you need a colon when you specify port and path, but no IP.
  • +
  • drush --quiet rs. Silence logging the printing of web requests to the console.
  • +
+

Arguments

+
    +
  • [uri]. IP address and port number to bind to and path to open in web browser. Format is addr:port/path. Only opens a browser if a path is specified.
  • +
+

Options

+
    +
  • --default-server=DEFAULT-SERVER. A default addr:port/path to use for any values not specified as an argument.
  • +
  • --browser[=BROWSER]. Open the URL in the default browser. Use --no-browser to avoid opening a browser. [default: 1]
  • +
  • --dns. Resolve hostnames/IPs using DNS/rDNS (if possible) to determine binding IPs and/or human friendly hostnames for URLs and browser.
  • +
  • --no-browser. Negate --browser option.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • rs
  • +
  • serve
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/sa/index.html b/13.3.0/commands/sa/index.html new file mode 100644 index 0000000000..ad76c968f6 --- /dev/null +++ b/13.3.0/commands/sa/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/scr/index.html b/13.3.0/commands/scr/index.html new file mode 100644 index 0000000000..547c3e6134 --- /dev/null +++ b/13.3.0/commands/scr/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/sdel/index.html b/13.3.0/commands/sdel/index.html new file mode 100644 index 0000000000..fc35584d28 --- /dev/null +++ b/13.3.0/commands/sdel/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/serve/index.html b/13.3.0/commands/serve/index.html new file mode 100644 index 0000000000..5c55fc9f77 --- /dev/null +++ b/13.3.0/commands/serve/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/sget/index.html b/13.3.0/commands/sget/index.html new file mode 100644 index 0000000000..e94fba6c79 --- /dev/null +++ b/13.3.0/commands/sget/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/si/index.html b/13.3.0/commands/si/index.html new file mode 100644 index 0000000000..9977924126 --- /dev/null +++ b/13.3.0/commands/si/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/sin/index.html b/13.3.0/commands/sin/index.html new file mode 100644 index 0000000000..9977924126 --- /dev/null +++ b/13.3.0/commands/sin/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/site_alias/index.html b/13.3.0/commands/site_alias/index.html new file mode 100644 index 0000000000..f87e6de061 --- /dev/null +++ b/13.3.0/commands/site_alias/index.html @@ -0,0 +1,5362 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + site:alias - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

site:alias

+

Show site alias details, or a list of available site aliases.

+

Examples

+
    +
  • drush site:alias. List all alias records known to drush.
  • +
  • drush site:alias @dev. Print an alias record for the alias dev.
  • +
+

Arguments

+
    +
  • [site]. Site alias or site specification.
  • +
+

Options

+
    +
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,tsv,var_dump,var_export,xml,yaml [default: yaml]
  • +
  • --fields=FIELDS. Limit output to only the listed elements. Name top-level elements by key, e.g. "--fields=name,date", or use dot notation to select a nested element, e.g. "--fields=a.b.c as example".
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
  • --filter[=FILTER]. Filter output based on provided expression
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • sa
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/site_install/index.html b/13.3.0/commands/site_install/index.html new file mode 100644 index 0000000000..015d6a683f --- /dev/null +++ b/13.3.0/commands/site_install/index.html @@ -0,0 +1,5368 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + site:install - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

site:install

+

Install Drupal along with modules/themes/configuration/profile.

+

Examples

+
    +
  • drush si demo_umami --locale=da. (Re)install using the Umami install profile. Set default language to Danish.
  • +
  • drush si --db-url=mysql://user:pass@localhost:port/dbname?module=mysql#tableprefix. Install on MySQL using the specified DB params.
  • +
  • drush si --db-url=sqlite://sites/example.com/files/.ht.sqlite?module=sqlite#tableprefix. Install on SQLite, using database file sites/example.com/files/.ht.sqlite
  • +
  • drush si --db-url=sqlite://:memory:?module=sqlite. Install using SQLite in-memory database, that is not persisted. Useful for testing.
  • +
  • drush si --account-pass=mom. Re-install with specified uid1 password.
  • +
  • drush si --existing-config. Install based on the yml files stored in the config export/import directory.
  • +
  • drush si standard install_configure_form.enable_update_status_emails=NULL. Disable email notification during install and later. If your server has no mail transfer agent, this gets rid of an error during install.
  • +
  • drush si core/recipes/standard. Install from the core Standard recipe.
  • +
+

Arguments

+
    +
  • [recipeOrProfile].... An install profile name, or a path to a directory containing a recipe. Relative paths are searched relative to both the Drupal root and the cwd. Defaults to standard unless an install profile is marked as a distribution. Use minimal for a bare minimum installation. Additional info for the install profile may also be provided with additional arguments. Use the format [form name].[parameter name]
  • +
+

Options

+
    +
  • --db-url=DB-URL. A Drupal 10 style database URL. Required for initial install, not re-install. If omitted and required, Drush prompts for this item.
  • +
  • --db-prefix=DB-PREFIX. An optional table prefix to use for initial install.
  • +
  • --db-su=DB-SU. Account to use when creating a new database. Must have Grant permission (mysql only). Optional.
  • +
  • --db-su-pw=DB-SU-PW. Password for the db-su account. Optional.
  • +
  • --account-name[=ACCOUNT-NAME]. uid1 name. [default: admin]
  • +
  • --account-mail[=ACCOUNT-MAIL]. uid1 email. [default: admin@example.com]
  • +
  • --site-mail[=SITE-MAIL]. From: for system mailings. [default: admin@example.com]
  • +
  • --account-pass=ACCOUNT-PASS. uid1 pass. Defaults to a randomly generated password. If desired, set a fixed password in drush.yml.
  • +
  • --locale[=LOCALE]. A short language code. Sets the default site language. Language files must already be present. [default: en]
  • +
  • --site-name[=SITE-NAME]. Site name [default: Drush Site-Install]
  • +
  • --site-pass=SITE-PASS.
  • +
  • --sites-subdir=SITES-SUBDIR. Name of directory under sites which should be created.
  • +
  • --config-dir=CONFIG-DIR.
  • +
  • --existing-config. Configuration from sync directory should be imported during installation.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • si
  • +
  • sin
  • +
  • site-install
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/site_set/index.html b/13.3.0/commands/site_set/index.html new file mode 100644 index 0000000000..837b4f00fb --- /dev/null +++ b/13.3.0/commands/site_set/index.html @@ -0,0 +1,5353 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + site:set - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

site:set

+

Set a site alias that will persist for the current session.

+

Stores the site alias being used in the current session in a temporary +file.

+

Examples

+
    +
  • drush site:set @dev. Set the current session to use the @dev alias.
  • +
  • drush site:set user@server/path/to/drupal#sitename. Set the current session to use a remote site via site specification.
  • +
  • drush site:set /path/to/drupal#sitename. Set the current session to use a local site via site specification.
  • +
  • drush site:set -. Go back to the previously-set site (like cd -).
  • +
  • drush site:set. Without an argument, any existing site becomes unset.
  • +
+

Arguments

+
    +
  • [site]. Site specification to use, or - for previous site. Omit this argument to unset.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • use
  • +
  • site-set
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/site_ssh/index.html b/13.3.0/commands/site_ssh/index.html new file mode 100644 index 0000000000..c157a746fd --- /dev/null +++ b/13.3.0/commands/site_ssh/index.html @@ -0,0 +1,5363 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + site:ssh - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

site:ssh

+

Connect to a webserver via SSH, and optionally run a shell command.

+

Examples

+
    +
  • drush @mysite ssh. Open an interactive shell on @mysite's server.
  • +
  • drush @prod ssh "ls /tmp". Run ls /tmp on @prod site.
  • +
  • drush @prod ssh "git pull". Run git pull on the Drupal root directory on the @prod site.
  • +
  • drush ssh "git pull". Run git pull on the local Drupal root directory.
  • +
+

Arguments

+
    +
  • [code].... Code which should run at remote host.
  • +
+

Options

+
    +
  • --cd=CD. Directory to change to. Defaults to Drupal root.
  • +
  • --ssh-options=SSH-OPTIONS. A string of extra options that will be passed to the ssh command (e.g. -p 100)
  • +
  • --tty. Create a tty (e.g. to run an interactive program).
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • ssh
  • +
  • site-ssh
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/sql_cli/index.html b/13.3.0/commands/sql_cli/index.html new file mode 100644 index 0000000000..2cbfc6302a --- /dev/null +++ b/13.3.0/commands/sql_cli/index.html @@ -0,0 +1,5353 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + sql:cli - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

sql:cli

+

Open a SQL command-line interface using Drupal's credentials.

+

Examples

+
    +
  • drush sql:cli. Open a SQL command-line interface using Drupal's credentials.
  • +
  • drush sql:cli --extra=--progress-reports. Open a SQL CLI and skip reading table information.
  • +
  • drush sql:cli < example.sql. Import sql statements from a file into the current database.
  • +
+

Options

+
    +
  • --extra=EXTRA. Add custom options to the connect string (e.g. --extra=--skip-column-names)
  • +
  • --database[=DATABASE]. The DB connection key if using multiple connections in settings.php. [default: default]
  • +
  • --db-url=DB-URL. A Drupal 6 style database URL. For example mysql://root:pass@localhost:port/dbname
  • +
  • --target[=TARGET]. The name of a target within the specified database connection. [default: default]
  • +
  • --show-passwords. Show password on the CLI. Useful for debugging.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • sqlc
  • +
  • sql-cli
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/sql_connect/index.html b/13.3.0/commands/sql_connect/index.html new file mode 100644 index 0000000000..a9814cb882 --- /dev/null +++ b/13.3.0/commands/sql_connect/index.html @@ -0,0 +1,5340 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + sql:connect - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

sql:connect

+

A string for connecting to the DB.

+

Examples

+
    +
  • $(drush sql:connect) < example.sql. Bash: Import SQL statements from a file into the current database.
  • +
  • eval (drush sql:connect) < example.sql. Fish: Import SQL statements from a file into the current database.
  • +
+

Options

+
    +
  • --extra=EXTRA. Add custom options to the connect string (e.g. --extra=--skip-column-names)
  • +
  • --database[=DATABASE]. The DB connection key if using multiple connections in settings.php. [default: default]
  • +
  • --db-url=DB-URL. A Drupal 6 style database URL. For example mysql://root:pass@localhost:port/dbname
  • +
  • --target[=TARGET]. The name of a target within the specified database connection. [default: default]
  • +
  • --show-passwords. Show password on the CLI. Useful for debugging.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • sql-connect
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/sql_create/index.html b/13.3.0/commands/sql_create/index.html new file mode 100644 index 0000000000..e4dfaebff3 --- /dev/null +++ b/13.3.0/commands/sql_create/index.html @@ -0,0 +1,5342 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + sql:create - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

sql:create

+

Create a database.

+

Examples

+
    +
  • drush sql:create. Create the database for the current site.
  • +
  • drush @site.test sql:create. Create the database as specified for @site.test.
  • +
  • drush sql:create --db-su=root --db-su-pw=rootpassword --db-url="mysql://drupal_db_user:drupal_db_password@127.0.0.1/drupal_db". Create the database as specified in the db-url option.
  • +
+

Options

+
    +
  • --db-su=DB-SU. Account to use when creating a new database.
  • +
  • --db-su-pw=DB-SU-PW. Password for the db-su account.
  • +
  • --database[=DATABASE]. The DB connection key if using multiple connections in settings.php. [default: default]
  • +
  • --db-url=DB-URL. A Drupal 6 style database URL. For example mysql://root:pass@localhost:port/dbname
  • +
  • --target[=TARGET]. The name of a target within the specified database connection. [default: default]
  • +
  • --show-passwords. Show password on the CLI. Useful for debugging.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • sql-create
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/sql_drop/index.html b/13.3.0/commands/sql_drop/index.html new file mode 100644 index 0000000000..67f85af1ca --- /dev/null +++ b/13.3.0/commands/sql_drop/index.html @@ -0,0 +1,5338 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + sql:drop - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

sql:drop

+

Drop all tables in a given database.

+

Options

+
    +
  • --database[=DATABASE]. The DB connection key if using multiple connections in settings.php. [default: default]
  • +
  • --db-url=DB-URL. A Drupal 6 style database URL. For example mysql://root:pass@localhost:port/dbname
  • +
  • --target[=TARGET]. The name of a target within the specified database connection. [default: default]
  • +
  • --show-passwords. Show password on the CLI. Useful for debugging.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • sql-drop
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/sql_dump/index.html b/13.3.0/commands/sql_dump/index.html new file mode 100644 index 0000000000..d6a16e9189 --- /dev/null +++ b/13.3.0/commands/sql_dump/index.html @@ -0,0 +1,5368 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + sql:dump - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

sql:dump

+

Exports the Drupal DB as SQL using mysqldump or equivalent.

+

--create-db is used by sql-sync, since including the DROP TABLE statements interferes with the import when the database is created.

+

Examples

+
    +
  • drush sql:dump --result-file=../18.sql. Save SQL dump to the directory above Drupal root.
  • +
  • drush sql:dump --skip-tables-key=common. Skip standard tables. See Drush configuration
  • +
  • drush sql:dump --extra-dump=--no-data. Pass extra option to mysqldump command.
  • +
+

Options

+
    +
  • --result-file=RESULT-FILE. Save to a file. The file should be relative to Drupal root. If --result-file is provided with the value 'auto', a date-based filename will be created under ~/drush-backups directory.
  • +
  • --create-db. Omit DROP TABLE statements. Used by Postgres and Oracle only.
  • +
  • --data-only. Dump data without statements to create any of the schema.
  • +
  • --ordered-dump. Order by primary key and add line breaks for efficient diffs. Slows down the dump. Mysql only.
  • +
  • --gzip. Compress the dump using the gzip program which must be in your $PATH.
  • +
  • --extra=EXTRA. Add custom arguments/options when connecting to database (used internally to list tables).
  • +
  • --extra-dump=EXTRA-DUMP. Add custom arguments/options to the dumping of the database (e.g. mysqldump command).
  • +
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,string,table,tsv,var_dump,var_export,xml,yaml [default: null]
  • +
  • --database[=DATABASE]. The DB connection key if using multiple connections in settings.php. [default: default]
  • +
  • --db-url=DB-URL. A Drupal 6 style database URL. For example mysql://root:pass@localhost:port/dbname
  • +
  • --target[=TARGET]. The name of a target within the specified database connection. [default: default]
  • +
  • --show-passwords. Show password on the CLI. Useful for debugging.
  • +
  • --skip-tables-key=SKIP-TABLES-KEY. A key in the $skip_tables array. @see Site aliases
  • +
  • --structure-tables-key=STRUCTURE-TABLES-KEY. A key in the $structure_tables array. @see Site aliases
  • +
  • --tables-key=TABLES-KEY. A key in the $tables array.
  • +
  • --skip-tables-list=SKIP-TABLES-LIST. A comma-separated list of tables to exclude completely.
  • +
  • --structure-tables-list=STRUCTURE-TABLES-LIST. A comma-separated list of tables to include for structure, but not data.
  • +
  • --tables-list=TABLES-LIST. A comma-separated list of tables to transfer.
  • +
  • --fields=FIELDS. Available fields: Path (path)
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • sql-dump
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/sql_query/index.html b/13.3.0/commands/sql_query/index.html new file mode 100644 index 0000000000..25d3be9848 --- /dev/null +++ b/13.3.0/commands/sql_query/index.html @@ -0,0 +1,5360 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + sql:query - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

sql:query

+

Execute a query against a database.

+

Examples

+
    +
  • drush sql:query "SELECT * FROM users WHERE uid=1". Browse user record. Table prefixes, if used, must be added to table names by hand.
  • +
  • drush sql:query --db-prefix "SELECT * FROM {users}". Browse user record. Table prefixes are honored. Caution: All curly-braces will be stripped.
  • +
  • $(drush sql:connect) < example.sql. Import sql statements from a file into the current database.
  • +
  • drush sql:query --file=example.sql. Alternate way to import sql statements from a file.
  • +
  • drush php:eval --format=json "return \Drupal::service('database')->query('SELECT * FROM users LIMIT 5')->fetchAll()". Get data back in JSON format. See https://github.com/drush-ops/drush/issues/3071#issuecomment-347929777.
  • +
  • $(drush sql:connect) -e "SELECT * FROM users LIMIT 5;". Results are formatted in a pretty table with borders and column headers.
  • +
+

Arguments

+
    +
  • [query]. An SQL query. Ignored if --file is provided.
  • +
+

Options

+
    +
  • --result-file[=RESULT-FILE]. Save to a file. The file should be relative to Drupal root.
  • +
  • --file=FILE. Path to a file containing the SQL to be run. Gzip files are accepted.
  • +
  • --file-delete. Delete the --file after running it.
  • +
  • --extra=EXTRA. Add custom options to the connect string (e.g. --extra=--skip-column-names)
  • +
  • --db-prefix. Enable replacement of braces in your query.
  • +
  • --database[=DATABASE]. The DB connection key if using multiple connections in settings.php. [default: default]
  • +
  • --db-url=DB-URL. A Drupal 6 style database URL. For example mysql://root:pass@localhost:port/dbname
  • +
  • --target[=TARGET]. The name of a target within the specified database connection. [default: default]
  • +
  • --show-passwords. Show password on the CLI. Useful for debugging.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • sqlq
  • +
  • sql-query
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/sql_sanitize/index.html b/13.3.0/commands/sql_sanitize/index.html new file mode 100644 index 0000000000..cb61164224 --- /dev/null +++ b/13.3.0/commands/sql_sanitize/index.html @@ -0,0 +1,5356 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + sql:sanitize - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

sql:sanitize

+

Sanitize the database by removing or obfuscating user data.

+

Commandfiles may add custom operations by implementing:

+
- `#[CLI\Hook(type: HookManager::ON_EVENT, target: SanitizeCommands::CONFIRMS)]`. Display summary to user before confirmation.
+- `#[CLI\Hook(type: HookManager::POST_COMMAND_HOOK, target: SanitizeCommands::SANITIZE)]`. Run queries or call APIs to perform sanitizing
+
+

Several working commandfiles may be found at https://github.com/drush-ops/drush/tree/13.x/src/Commands/sql/sanitize

+

Examples

+
    +
  • drush sql:sanitize --sanitize-password=no. Sanitize database without modifying any passwords.
  • +
  • drush sql:sanitize --allowlist-fields=field_biography,field_phone_number. Sanitizes database but exempts two user fields from modification.
  • +
+

Options

+
    +
  • --allowlist-fields[=ALLOWLIST-FIELDS]. A comma delimited list of fields exempt from sanitization.
  • +
  • --sanitize-email[=SANITIZE-EMAIL]. The pattern for test email addresses in the sanitization operation, or no to keep email addresses unchanged. May contain replacement patterns %uid, %mail or %name. [default: user+%uid@localhost.localdomain]
  • +
  • --sanitize-password[=SANITIZE-PASSWORD]. By default, passwords are randomized. Specify no to disable that. Specify any other value to set all passwords to that value.
  • +
  • --ignored-roles[=IGNORED-ROLES]. A comma delimited list of roles. Users with at least one of the roles will be exempt from sanitization.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • sqlsan
  • +
  • sql-sanitize
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/sql_sync/index.html b/13.3.0/commands/sql_sync/index.html new file mode 100644 index 0000000000..afb7f50891 --- /dev/null +++ b/13.3.0/commands/sql_sync/index.html @@ -0,0 +1,5377 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + sql:sync - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

sql:sync

+

Copy DB data from a source site to a target site. Transfers data via rsync.

+

Examples

+
    +
  • drush sql:sync @source @self. Copy the database from the site with the alias 'source' to the local site.
  • +
  • drush sql:sync @self @target. Copy the database from the local site to the site with the alias 'target'.
  • +
  • drush sql:sync #prod #dev. Copy the database from the site in /sites/prod to the site in /sites/dev (multisite installation).
  • +
+

Arguments

+
    +
  • source. A site-alias or site specification whose database you want to copy from.
  • +
  • target. A site-alias or site specification whose database you want to replace.
  • +
+

Options

+
    +
  • --no-dump. Do not dump the sql database; always use an existing dump file.
  • +
  • --no-sync. Do not rsync the database dump file from source to target.
  • +
  • --runner=RUNNER. Where to run the rsync command; defaults to the local site. Can also be source or target.
  • +
  • --create-db. Create a new database before importing the database dump on the target machine.
  • +
  • --db-su=DB-SU. Account to use when creating a new database (e.g. root).
  • +
  • --db-su-pw=DB-SU-PW. Password for the db-su account.
  • +
  • --target-dump=TARGET-DUMP. The path for storing the sql-dump on target machine.
  • +
  • --source-dump[=SOURCE-DUMP]. The path for retrieving the sql-dump on source machine.
  • +
  • --extra-dump=EXTRA-DUMP. Add custom arguments/options to the dumping of the database (e.g. mysqldump command).
  • +
  • --skip-tables-key=SKIP-TABLES-KEY. A key in the $skip_tables array. @see Site aliases
  • +
  • --structure-tables-key=STRUCTURE-TABLES-KEY. A key in the $structure_tables array. @see Site aliases
  • +
  • --tables-key=TABLES-KEY. A key in the $tables array.
  • +
  • --skip-tables-list=SKIP-TABLES-LIST. A comma-separated list of tables to exclude completely.
  • +
  • --structure-tables-list=STRUCTURE-TABLES-LIST. A comma-separated list of tables to include for structure, but not data.
  • +
  • --tables-list=TABLES-LIST. A comma-separated list of tables to transfer.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • sql-sync
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/sqlc/index.html b/13.3.0/commands/sqlc/index.html new file mode 100644 index 0000000000..6a13792e97 --- /dev/null +++ b/13.3.0/commands/sqlc/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/sqlq/index.html b/13.3.0/commands/sqlq/index.html new file mode 100644 index 0000000000..0563039b34 --- /dev/null +++ b/13.3.0/commands/sqlq/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/sqlsan/index.html b/13.3.0/commands/sqlsan/index.html new file mode 100644 index 0000000000..969385ae1a --- /dev/null +++ b/13.3.0/commands/sqlsan/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/sset/index.html b/13.3.0/commands/sset/index.html new file mode 100644 index 0000000000..1417b4f9c9 --- /dev/null +++ b/13.3.0/commands/sset/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/ssh/index.html b/13.3.0/commands/ssh/index.html new file mode 100644 index 0000000000..5689c64e49 --- /dev/null +++ b/13.3.0/commands/ssh/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/st/index.html b/13.3.0/commands/st/index.html new file mode 100644 index 0000000000..7bc33b91f6 --- /dev/null +++ b/13.3.0/commands/st/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/state_delete/index.html b/13.3.0/commands/state_delete/index.html new file mode 100644 index 0000000000..a2e275e0e4 --- /dev/null +++ b/13.3.0/commands/state_delete/index.html @@ -0,0 +1,5336 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + state:delete - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

state:delete

+

Delete a state entry.

+

Examples

+
    +
  • drush state:del system.cron_last. Delete state entry for system.cron_last.
  • +
+

Arguments

+
    +
  • key. The state key, for example system.cron_last.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • sdel
  • +
  • state-delete
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/state_get/index.html b/13.3.0/commands/state_get/index.html new file mode 100644 index 0000000000..ba05991be2 --- /dev/null +++ b/13.3.0/commands/state_get/index.html @@ -0,0 +1,5350 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + state:get - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

state:get

+

Display a state value.

+

Examples

+
    +
  • drush state:get system.cron_last. Displays last cron run timestamp
  • +
  • drush state:get drupal_css_cache_files --format=yaml. Displays an array of css files in yaml format.
  • +
+

Arguments

+
    +
  • key. The key name.
  • +
+

Options

+
    +
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,string,table,tsv,var_dump,var_export,xml,yaml [default: string]
  • +
  • --fields=FIELDS. Limit output to only the listed elements. Name top-level elements by key, e.g. "--fields=name,date", or use dot notation to select a nested element, e.g. "--fields=a.b.c as example".
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • sget
  • +
  • state-get
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/state_set/index.html b/13.3.0/commands/state_set/index.html new file mode 100644 index 0000000000..4a3711ccd8 --- /dev/null +++ b/13.3.0/commands/state_set/index.html @@ -0,0 +1,5354 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + state:set - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

state:set

+

Set a state value.

+

Examples

+
    +
  • drush sset system.maintenance_mode 1 --input-format=integer. Put site into Maintenance mode.
  • +
  • drush state:set system.cron_last 1406682882 --input-format=integer. Sets a timestamp for last cron run.
  • +
  • php -r "print json_encode(array('drupal', 'simpletest'));" | drush state-set --input-format=json foo.name -. Set a key to a complex value (e.g. array)
  • +
  • drush state:set twig_debug TRUE. Enable the Twig debug mode (since Drupal 10.1)
  • +
  • drush state:set twig_autoreload TRUE. Enable Twig auto reload (since Drupal 10.1)
  • +
  • drush state:set twig_cache_disable TRUE. Disable the Twig, page, render and dynamic page caches (since Drupal 10.1)
  • +
  • drush state:set disable_rendered_output_cache_bins TRUE. Disables render cache, dynamic page cache, and page cache. (since Drupal 10.1)
  • +
+

Arguments

+
    +
  • key. The state key, for example: system.cron_last.
  • +
  • value. The value to assign to the state key. Use - to read from Stdin.
  • +
+

Options

+
    +
  • --input-format[=INPUT-FORMAT]. Type for the value. Other recognized values: string, integer, float, boolean, json, yaml. [default: auto]
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • sset
  • +
  • state-set
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/status-report/index.html b/13.3.0/commands/status-report/index.html new file mode 100644 index 0000000000..f2fd34100b --- /dev/null +++ b/13.3.0/commands/status-report/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/status/index.html b/13.3.0/commands/status/index.html new file mode 100644 index 0000000000..7bc33b91f6 --- /dev/null +++ b/13.3.0/commands/status/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/theme-enable/index.html b/13.3.0/commands/theme-enable/index.html new file mode 100644 index 0000000000..b0f1383b8c --- /dev/null +++ b/13.3.0/commands/theme-enable/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/theme_enable/index.html b/13.3.0/commands/theme_enable/index.html new file mode 100644 index 0000000000..b0f1383b8c --- /dev/null +++ b/13.3.0/commands/theme_enable/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/theme_install/index.html b/13.3.0/commands/theme_install/index.html new file mode 100644 index 0000000000..e732ed04f4 --- /dev/null +++ b/13.3.0/commands/theme_install/index.html @@ -0,0 +1,5327 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + theme:install - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

theme:install

+

Install one or more themes.

+

Arguments

+
    +
  • [themes].... A comma delimited list of themes.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • thin
  • +
  • theme:enable
  • +
  • then
  • +
  • theme-enable
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/theme_un/index.html b/13.3.0/commands/theme_un/index.html new file mode 100644 index 0000000000..917236e758 --- /dev/null +++ b/13.3.0/commands/theme_un/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/theme_uninstall/index.html b/13.3.0/commands/theme_uninstall/index.html new file mode 100644 index 0000000000..d6ddf74d25 --- /dev/null +++ b/13.3.0/commands/theme_uninstall/index.html @@ -0,0 +1,5326 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + theme:uninstall - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

theme:uninstall

+

Uninstall themes.

+

Arguments

+
    +
  • [themes].... A comma delimited list of themes.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • theme:un
  • +
  • thun
  • +
  • theme-uninstall
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/then/index.html b/13.3.0/commands/then/index.html new file mode 100644 index 0000000000..b0f1383b8c --- /dev/null +++ b/13.3.0/commands/then/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/thin/index.html b/13.3.0/commands/thin/index.html new file mode 100644 index 0000000000..b0f1383b8c --- /dev/null +++ b/13.3.0/commands/thin/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/thun/index.html b/13.3.0/commands/thun/index.html new file mode 100644 index 0000000000..917236e758 --- /dev/null +++ b/13.3.0/commands/thun/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/topic/index.html b/13.3.0/commands/topic/index.html new file mode 100644 index 0000000000..71f987d0e2 --- /dev/null +++ b/13.3.0/commands/topic/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/twig_compile/index.html b/13.3.0/commands/twig_compile/index.html new file mode 100644 index 0000000000..c1fafcd8f0 --- /dev/null +++ b/13.3.0/commands/twig_compile/index.html @@ -0,0 +1,5314 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + twig:compile - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

twig:compile

+

Compile all Twig template(s).

+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • twigc
  • +
  • twig-compile
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/twig_debug/index.html b/13.3.0/commands/twig_debug/index.html new file mode 100644 index 0000000000..3300096d5b --- /dev/null +++ b/13.3.0/commands/twig_debug/index.html @@ -0,0 +1,5325 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + twig:debug - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

twig:debug

+

12.1+

+

Enables Twig debug and disables caching Twig templates.

+

Arguments

+
    +
  • mode. Debug mode. Recognized values: on, off.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • twig-debug
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/twig_unused/index.html b/13.3.0/commands/twig_unused/index.html new file mode 100644 index 0000000000..821e40a10c --- /dev/null +++ b/13.3.0/commands/twig_unused/index.html @@ -0,0 +1,5350 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + twig:unused - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

twig:unused

+

Find potentially unused Twig templates.

+

Immediately before running this command, web crawl your entire web site. Or +use your Production PHPStorage dir for comparison.

+

Examples

+
    +
  • drush twig:unused --field=template /var/www/mass.local/docroot/modules/custom,/var/www/mass.local/docroot/themes/custom. Output a simple list of potentially unused templates.
  • +
+

Arguments

+
    +
  • searchpaths. A comma delimited list of paths to recursively search
  • +
+

Options

+
    +
  • --format=FORMAT. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • +
  • --fields=FIELDS. Available fields: Template (template), Compiled (compiled)
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/twigc/index.html b/13.3.0/commands/twigc/index.html new file mode 100644 index 0000000000..8626904bbf --- /dev/null +++ b/13.3.0/commands/twigc/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/ublk/index.html b/13.3.0/commands/ublk/index.html new file mode 100644 index 0000000000..e2ea8d0b3a --- /dev/null +++ b/13.3.0/commands/ublk/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/ucan/index.html b/13.3.0/commands/ucan/index.html new file mode 100644 index 0000000000..cd2d15c57d --- /dev/null +++ b/13.3.0/commands/ucan/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/ucrt/index.html b/13.3.0/commands/ucrt/index.html new file mode 100644 index 0000000000..38c45765bf --- /dev/null +++ b/13.3.0/commands/ucrt/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/uinf/index.html b/13.3.0/commands/uinf/index.html new file mode 100644 index 0000000000..335e9fbacf --- /dev/null +++ b/13.3.0/commands/uinf/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/uli/index.html b/13.3.0/commands/uli/index.html new file mode 100644 index 0000000000..79a747919a --- /dev/null +++ b/13.3.0/commands/uli/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/un/index.html b/13.3.0/commands/un/index.html new file mode 100644 index 0000000000..fd3dae2e4a --- /dev/null +++ b/13.3.0/commands/un/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/updatedb/index.html b/13.3.0/commands/updatedb/index.html new file mode 100644 index 0000000000..91b5d70f45 --- /dev/null +++ b/13.3.0/commands/updatedb/index.html @@ -0,0 +1,5336 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + updatedb - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

updatedb

+

Apply any database updates required (as with running update.php).

+

Options

+
    +
  • --cache-clear[=CACHE-CLEAR]. Clear caches upon completion. [default: 1]
  • +
  • --no-cache-clear. Negate --cache-clear option.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • updb
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/updatedb_status/index.html b/13.3.0/commands/updatedb_status/index.html new file mode 100644 index 0000000000..0dcdcd4c3d --- /dev/null +++ b/13.3.0/commands/updatedb_status/index.html @@ -0,0 +1,5339 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + updatedb:status - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

updatedb:status

+

List any pending database updates.

+

Options

+
    +
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • +
  • --fields=FIELDS. Available fields: Module (module), Update ID (update_id), Description (description), Type (type)
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
  • --filter[=FILTER]. Filter output based on provided expression
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • updbst
  • +
  • updatedb-status
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/updb/index.html b/13.3.0/commands/updb/index.html new file mode 100644 index 0000000000..2764b2a011 --- /dev/null +++ b/13.3.0/commands/updb/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/updbst/index.html b/13.3.0/commands/updbst/index.html new file mode 100644 index 0000000000..07bbe299eb --- /dev/null +++ b/13.3.0/commands/updbst/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/upwd/index.html b/13.3.0/commands/upwd/index.html new file mode 100644 index 0000000000..dea5c91449 --- /dev/null +++ b/13.3.0/commands/upwd/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/urol/index.html b/13.3.0/commands/urol/index.html new file mode 100644 index 0000000000..a7acf01092 --- /dev/null +++ b/13.3.0/commands/urol/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/urrol/index.html b/13.3.0/commands/urrol/index.html new file mode 100644 index 0000000000..b1dafd0893 --- /dev/null +++ b/13.3.0/commands/urrol/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/use/index.html b/13.3.0/commands/use/index.html new file mode 100644 index 0000000000..0a17e4f3de --- /dev/null +++ b/13.3.0/commands/use/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/user-add-role/index.html b/13.3.0/commands/user-add-role/index.html new file mode 100644 index 0000000000..a7acf01092 --- /dev/null +++ b/13.3.0/commands/user-add-role/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/user-remove-role/index.html b/13.3.0/commands/user-remove-role/index.html new file mode 100644 index 0000000000..b1dafd0893 --- /dev/null +++ b/13.3.0/commands/user-remove-role/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/user_block/index.html b/13.3.0/commands/user_block/index.html new file mode 100644 index 0000000000..a4343a9fbe --- /dev/null +++ b/13.3.0/commands/user_block/index.html @@ -0,0 +1,5350 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + user:block - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

user:block

+

Block the specified user(s).

+

Examples

+
    +
  • drush user:block user3. Block the user whose name is user3
  • +
  • drush user:cancel user3 --delete-content. Delete the user whose name is user3 and delete her content.
  • +
  • drush user:cancel user3 --reassign-content. Delete the user whose name is user3 and reassign her content to the anonymous user.
  • +
+

Arguments

+
    +
  • [names]. A comma delimited list of user names.
  • +
+

Options

+
    +
  • --uid=UID. A comma delimited list of user ids to lookup (an alternative to names).
  • +
  • --mail=MAIL. A comma delimited list of emails to lookup (an alternative to names).
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • ublk
  • +
  • user-block
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/user_cancel/index.html b/13.3.0/commands/user_cancel/index.html new file mode 100644 index 0000000000..aedce7fda8 --- /dev/null +++ b/13.3.0/commands/user_cancel/index.html @@ -0,0 +1,5357 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + user:cancel - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

user:cancel

+

Block or delete user account(s) with the specified name(s).

+
    +
  • Existing content may be deleted or reassigned to the Anonymous user. See options.
  • +
  • By default only nodes are deleted or reassigned. Custom entity types need own code to +support cancellation. See https://www.drupal.org/project/drupal/issues/3043725 for updates.
  • +
+

Examples

+
    +
  • drush user:cancel username. Block the user account with the name username.
  • +
  • drush user:cancel --delete-content username. Delete the user account with the name username and delete all content created by that user.
  • +
  • drush user:cancel --reassign-content username. Delete the user account with the name username and assign all her content to the anonymous user.
  • +
+

Arguments

+
    +
  • [names]. A comma delimited list of user names.
  • +
+

Options

+
    +
  • --delete-content. Delete the user, and delete all content created by that user.
  • +
  • --reassign-content. Delete the user and make its content belong to the anonymous user.
  • +
  • --uid=UID. A comma delimited list of user ids to lookup (an alternative to names).
  • +
  • --mail=MAIL. A comma delimited list of emails to lookup (an alternative to names).
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • ucan
  • +
  • user-cancel
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/user_create/index.html b/13.3.0/commands/user_create/index.html new file mode 100644 index 0000000000..500eb7e876 --- /dev/null +++ b/13.3.0/commands/user_create/index.html @@ -0,0 +1,5363 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + user:create - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

user:create

+

Create a user account.

+

Examples

+
    +
  • drush user:create newuser --mail='person@example.com' --password='letmein'. Create a new user account with the name newuser, the email address person@example.com, and the password letmein
  • +
+

Arguments

+
    +
  • name. The name of the account to add
  • +
+

Options

+
    +
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • +
  • --password=PASSWORD. The password for the new account
  • +
  • --mail=MAIL. The email address for the new account
  • +
  • --fields=FIELDS. Available fields: User ID (uid), User name (name), Password (pass), User mail (mail), User theme (theme), Signature (signature), Signature format (signature_format), User created (user_created), Created (created), User last access (user_access), Last access (access), User last login (user_login), Last login (login), User status (user_status), Status (status), Time zone (timezone), User picture (picture), Initial user mail (init), User roles (roles), Group Audience (group_audience), Language code (langcode), Uuid (uuid)
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
  • --filter[=FILTER]. Filter output based on provided expression
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • ucrt
  • +
  • user-create
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/user_information/index.html b/13.3.0/commands/user_information/index.html new file mode 100644 index 0000000000..d27a4fdd74 --- /dev/null +++ b/13.3.0/commands/user_information/index.html @@ -0,0 +1,5366 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + user:information - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

user:information

+

Print information about the specified user(s).

+

Examples

+
    +
  • drush user:information someguy,somegal. Display information about the someguy and somegal user accounts.
  • +
  • drush user:information --mail=someguy@somegal.com. Display information for a given email account.
  • +
  • drush user:information --uid=5. Display information for a given user id.
  • +
  • drush uinf --uid=$(drush sqlq "SELECT GROUP_CONCAT(entity_id) FROM user__roles WHERE roles_target_id = 'administrator'"). Display information for all administrators.
  • +
+

Arguments

+
    +
  • [names]. A comma delimited list of user names.
  • +
+

Options

+
    +
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • +
  • --uid=UID. A comma delimited list of user ids to lookup (an alternative to names).
  • +
  • --mail=MAIL. A comma delimited list of emails to lookup (an alternative to names).
  • +
  • --fields=FIELDS. Available fields: User ID (uid), User name (name), Password (pass), User mail (mail), User theme (theme), Signature (signature), Signature format (signature_format), User created (user_created), Created (created), User last access (user_access), Last access (access), User last login (user_login), Last login (login), User status (user_status), Status (status), Time zone (timezone), User picture (picture), Initial user mail (init), User roles (roles), Group Audience (group_audience), Language code (langcode), Uuid (uuid)
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
  • --filter[=FILTER]. Filter output based on provided expression
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • uinf
  • +
  • user-information
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/user_login/index.html b/13.3.0/commands/user_login/index.html new file mode 100644 index 0000000000..f0ee5551c8 --- /dev/null +++ b/13.3.0/commands/user_login/index.html @@ -0,0 +1,5355 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + user:login - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

user:login

+

Display a one time login link for user ID 1, or another user.

+

Examples

+
    +
  • drush user:login. Open browser to homepage, logged in as uid=1.
  • +
  • drush user:login --name=ryan node/add/blog. Open browser (if configured or detected) for a one-time login link for username ryan that redirects to node/add/blog.
  • +
  • drush user:login --uid=123. Open browser and login as user with uid "123".
  • +
  • drush user:login --mail=foo@bar.com. Open browser and login as user with mail "foo@bar.com".
  • +
+

Arguments

+
    +
  • [path]. Optional path to redirect to after logging in.
  • +
+

Options

+
    +
  • --name[=NAME]. A user name to log in as.
  • +
  • --uid[=UID]. A user ID to log in as.
  • +
  • --mail[=MAIL]. A user email to log in as.
  • +
  • --browser[=BROWSER]. Open the URL in the default browser. Use --no-browser to avoid opening a browser. [default: 1]
  • +
  • --redirect-port=REDIRECT-PORT. A custom port for redirecting to (e.g., when running within a Vagrant environment)
  • +
  • --no-browser. Negate --browser option.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • uli
  • +
  • user-login
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/user_password/index.html b/13.3.0/commands/user_password/index.html new file mode 100644 index 0000000000..e47bc42f89 --- /dev/null +++ b/13.3.0/commands/user_password/index.html @@ -0,0 +1,5337 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + user:password - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

user:password

+

Set the password for the user account with the specified name.

+

Examples

+
    +
  • drush user:password someuser 'correct horse battery staple'. Set the password for the username someuser. See https://xkcd.com/936
  • +
+

Arguments

+
    +
  • name. The name of the account to modify.
  • +
  • password. The new password for the account.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • upwd
  • +
  • user-password
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/user_role_add/index.html b/13.3.0/commands/user_role_add/index.html new file mode 100644 index 0000000000..79d5b1ed6c --- /dev/null +++ b/13.3.0/commands/user_role_add/index.html @@ -0,0 +1,5349 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + user:role:add - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

user:role:add

+

Add a role to the specified user accounts.

+

Examples

+
    +
  • drush user:role:add 'editor' user3. Add the editor role to user3
  • +
+

Arguments

+
    +
  • role. The machine name of the role to add.
  • +
  • [names]. A comma delimited list of user names.
  • +
+

Options

+
    +
  • --uid=UID. A comma delimited list of user ids to lookup (an alternative to names).
  • +
  • --mail=MAIL. A comma delimited list of emails to lookup (an alternative to names).
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • urol
  • +
  • user-add-role
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/user_role_remove/index.html b/13.3.0/commands/user_role_remove/index.html new file mode 100644 index 0000000000..181f42a9e9 --- /dev/null +++ b/13.3.0/commands/user_role_remove/index.html @@ -0,0 +1,5349 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + user:role:remove - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

user:role:remove

+

Remove a role from the specified user accounts.

+

Examples

+
    +
  • drush user:role:remove 'power_user' user3. Remove the power_user role from user3
  • +
+

Arguments

+
    +
  • role. The machine name of the role to add.
  • +
  • [names]. A comma delimited list of user names.
  • +
+

Options

+
    +
  • --uid=UID. A comma delimited list of user ids to lookup (an alternative to names).
  • +
  • --mail=MAIL. A comma delimited list of emails to lookup (an alternative to names).
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • urrol
  • +
  • user-remove-role
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/user_unblock/index.html b/13.3.0/commands/user_unblock/index.html new file mode 100644 index 0000000000..3e5b578ffa --- /dev/null +++ b/13.3.0/commands/user_unblock/index.html @@ -0,0 +1,5348 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + user:unblock - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

user:unblock

+

Unblock the specified user(s).

+

Examples

+
    +
  • drush user:unblock user3. Unblock the user whose name is user3
  • +
+

Arguments

+
    +
  • [names]. A comma delimited list of user names.
  • +
+

Options

+
    +
  • --uid=UID. A comma delimited list of user ids to lookup (an alternative to names).
  • +
  • --mail=MAIL. A comma delimited list of emails to lookup (an alternative to names).
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • uublk
  • +
  • user-unblock
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/uublk/index.html b/13.3.0/commands/uublk/index.html new file mode 100644 index 0000000000..b5bef5e854 --- /dev/null +++ b/13.3.0/commands/uublk/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/vd/index.html b/13.3.0/commands/vd/index.html new file mode 100644 index 0000000000..a9558c44db --- /dev/null +++ b/13.3.0/commands/vd/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/vdis/index.html b/13.3.0/commands/vdis/index.html new file mode 100644 index 0000000000..855cacc519 --- /dev/null +++ b/13.3.0/commands/vdis/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/ven/index.html b/13.3.0/commands/ven/index.html new file mode 100644 index 0000000000..d65101f48f --- /dev/null +++ b/13.3.0/commands/ven/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/version/index.html b/13.3.0/commands/version/index.html new file mode 100644 index 0000000000..5ca8b0798a --- /dev/null +++ b/13.3.0/commands/version/index.html @@ -0,0 +1,5326 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + version - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

version

+

Show Drush version.

+

Options

+
    +
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • +
  • --fields=FIELDS. Available fields: Drush version (drush-version)
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/vex/index.html b/13.3.0/commands/vex/index.html new file mode 100644 index 0000000000..ad38b80e90 --- /dev/null +++ b/13.3.0/commands/vex/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/views_dev/index.html b/13.3.0/commands/views_dev/index.html new file mode 100644 index 0000000000..1fc45fbcea --- /dev/null +++ b/13.3.0/commands/views_dev/index.html @@ -0,0 +1,5314 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + views:dev - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

views:dev

+

Set several Views settings to more developer-oriented values.

+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • vd
  • +
  • views-dev
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/views_disable/index.html b/13.3.0/commands/views_disable/index.html new file mode 100644 index 0000000000..0c1db5487d --- /dev/null +++ b/13.3.0/commands/views_disable/index.html @@ -0,0 +1,5336 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + views:disable - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

views:disable

+

Disable the specified views.

+

Examples

+
    +
  • drush vdis frontpage taxonomy_term. Disable the frontpage and taxonomy_term views.
  • +
+

Arguments

+
    +
  • views. A comma delimited list of view names.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • vdis
  • +
  • views-disable
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/views_enable/index.html b/13.3.0/commands/views_enable/index.html new file mode 100644 index 0000000000..1944400737 --- /dev/null +++ b/13.3.0/commands/views_enable/index.html @@ -0,0 +1,5336 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + views:enable - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

views:enable

+

Enable the specified views.

+

Examples

+
    +
  • drush ven frontpage,taxonomy_term. Enable the frontpage and taxonomy_term views.
  • +
+

Arguments

+
    +
  • views. A comma delimited list of view names.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • ven
  • +
  • views-enable
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/views_execute/index.html b/13.3.0/commands/views_execute/index.html new file mode 100644 index 0000000000..4187ae4e6f --- /dev/null +++ b/13.3.0/commands/views_execute/index.html @@ -0,0 +1,5352 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + views:execute - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

views:execute

+

Execute a view and show a count of the results, or the rendered HTML.

+

Examples

+
    +
  • drush views:execute my_view. Show the rendered HTML for the default display for the my_view View.
  • +
  • drush views:execute my_view page_1 3 --count. Show a count of my_view:page_1 where the first contextual filter value is 3.
  • +
  • drush views:execute my_view page_1 3,foo. Show the rendered HTML of my_view:page_1 where the first two contextual filter values are 3 and 'foo' respectively.
  • +
+

Arguments

+
    +
  • view_name. The name of the view to execute.
  • +
  • [display]. The display ID to execute. If none specified, the default display will be used.
  • +
  • [view_args]. A comma delimited list of values, corresponding to contextual filters.
  • +
+

Options

+
    +
  • --count[=COUNT]. Display a count of the results instead of each row.
  • +
  • --show-admin-links. Show contextual admin links in the rendered markup.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • vex
  • +
  • views-execute
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/views_list/index.html b/13.3.0/commands/views_list/index.html new file mode 100644 index 0000000000..ae16f37ea3 --- /dev/null +++ b/13.3.0/commands/views_list/index.html @@ -0,0 +1,5356 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + views:list - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

views:list

+

Get a list of all views in the system.

+

Examples

+
    +
  • drush vl. Show a list of all available views.
  • +
  • drush vl --name=blog. Show a list of views which names contain 'blog'.
  • +
  • drush vl --tags=tag1,tag2. Show a list of views tagged with 'tag1' or 'tag2'.
  • +
  • drush vl --status=enabled. Show a list of enabled views.
  • +
+

Options

+
    +
  • --name=NAME.
  • +
  • --tags=TAGS. A comma-separated list of views tags by which to filter the results.
  • +
  • --status=STATUS. Filter views by status. Choices: enabled, disabled.
  • +
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • +
  • --fields=FIELDS. Available fields: Machine name (machine-name), Name (label), Description (description), Status (status), Tag (tag)
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
  • --filter[=FILTER]. Filter output based on provided expression
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • vl
  • +
  • views-list
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/vl/index.html b/13.3.0/commands/vl/index.html new file mode 100644 index 0000000000..2f59432a65 --- /dev/null +++ b/13.3.0/commands/vl/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/watchdog_delete/index.html b/13.3.0/commands/watchdog_delete/index.html new file mode 100644 index 0000000000..e7ee29a933 --- /dev/null +++ b/13.3.0/commands/watchdog_delete/index.html @@ -0,0 +1,5354 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + watchdog:delete - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

watchdog:delete

+

Delete watchdog log records.

+

Examples

+
    +
  • drush watchdog:delete all. Delete all messages.
  • +
  • drush watchdog:delete 64. Delete messages with id 64.
  • +
  • drush watchdog:delete "cron run succesful". Delete messages containing the string "cron run succesful".
  • +
  • drush watchdog:delete --severity=Notice. Delete all messages with a severity of notice.
  • +
  • drush watchdog:delete --type=cron. Delete all messages of type cron.
  • +
+

Arguments

+
    +
  • [substring]. Delete all log records with this text in the messages.
  • +
+

Options

+
    +
  • --severity=SEVERITY. Delete messages of a given severity level.
  • +
  • --type=TYPE. Delete messages of a given type.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • wd-del
  • +
  • wd-delete
  • +
  • wd
  • +
  • watchdog-delete
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/watchdog_list/index.html b/13.3.0/commands/watchdog_list/index.html new file mode 100644 index 0000000000..89703b2f41 --- /dev/null +++ b/13.3.0/commands/watchdog_list/index.html @@ -0,0 +1,5364 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + watchdog:list - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

watchdog:list

+

Interactively filter the watchdog message listing.

+

Examples

+
    +
  • drush watchdog:list. Prompt for message type or severity, then run watchdog:show.
  • +
+

Arguments

+
    +
  • [substring]. A substring to look search in error messages.
  • +
+

Options

+
    +
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • +
  • --count[=COUNT]. The number of messages to show. [default: 10]
  • +
  • --extended. Return extended information about each message.
  • +
  • --severity. Restrict to messages of a given severity level (numeric or string).
  • +
  • --type. Restrict to messages of a given type.
  • +
  • --fields=FIELDS. Available fields: ID (wid), Type (type), Message (message), Severity (severity), Location (location), Hostname (hostname), Date (date), Username (username)
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
  • --filter[=FILTER]. Filter output based on provided expression
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • wd-list,watchdog-list
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/watchdog_show-one/index.html b/13.3.0/commands/watchdog_show-one/index.html new file mode 100644 index 0000000000..6ae6c259f8 --- /dev/null +++ b/13.3.0/commands/watchdog_show-one/index.html @@ -0,0 +1,5338 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + watchdog:show-one - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

watchdog:show-one

+

Show one log record by ID.

+

Arguments

+
    +
  • id. Watchdog Id
  • +
+

Options

+
    +
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,string,table,tsv,var_dump,var_export,xml,yaml [default: yaml]
  • +
  • --fields=FIELDS. Limit output to only the listed elements. Name top-level elements by key, e.g. "--fields=name,date", or use dot notation to select a nested element, e.g. "--fields=a.b.c as example".
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • wd-one
  • +
  • watchdog-show-one
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/watchdog_show/index.html b/13.3.0/commands/watchdog_show/index.html new file mode 100644 index 0000000000..6806c56459 --- /dev/null +++ b/13.3.0/commands/watchdog_show/index.html @@ -0,0 +1,5372 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + watchdog:show - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

watchdog:show

+

Show watchdog messages.

+

Examples

+
    +
  • drush watchdog:show. Show a listing of most recent 10 messages.
  • +
  • drush watchdog:show "cron run successful". Show a listing of most recent 10 messages containing the string cron run successful.
  • +
  • drush watchdog:show --count=46. Show a listing of most recent 46 messages.
  • +
  • drush watchdog:show --severity=Notice. Show a listing of most recent 10 messages with a severity of notice.
  • +
  • drush watchdog:show --severity-min=Warning. Show a listing of most recent 10 messages with a severity of warning or higher.
  • +
  • drush watchdog:show --type=php. Show a listing of most recent 10 messages of type php
  • +
+

Arguments

+
    +
  • [substring]. A substring to look search in error messages.
  • +
+

Options

+
    +
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • +
  • --count[=COUNT]. The number of messages to show. [default: 10]
  • +
  • --severity=SEVERITY. Restrict to messages of a given severity level (numeric or string).
  • +
  • --severity-min=SEVERITY-MIN. Restrict to messages of a given severity level and higher.
  • +
  • --type=TYPE. Restrict to messages of a given type.
  • +
  • --extended. Return extended information about each message.
  • +
  • --fields=FIELDS. Available fields: ID (wid), Type (type), Message (message), Severity (severity), Location (location), Hostname (hostname), Date (date), Username (username), Uid (uid)
  • +
  • --field=FIELD. Select just one field, and force format to string.
  • +
  • --filter[=FILTER]. Filter output based on provided expression
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Topics

+ +

Aliases

+
    +
  • wd-show
  • +
  • ws
  • +
  • watchdog-show
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/watchdog_tail/index.html b/13.3.0/commands/watchdog_tail/index.html new file mode 100644 index 0000000000..c963d5b146 --- /dev/null +++ b/13.3.0/commands/watchdog_tail/index.html @@ -0,0 +1,5356 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + watchdog:tail - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

watchdog:tail

+

10.6+

+

Tail watchdog messages.

+

Examples

+
    +
  • drush watchdog:tail. Continuously tail watchdog messages.
  • +
  • drush watchdog:tail "cron run successful". Continuously tail watchdog messages, filtering on the string cron run successful.
  • +
  • drush watchdog:tail --severity=Notice. Continuously tail watchdog messages, filtering severity of notice.
  • +
  • drush watchdog:tail --severity-min=Warning. Continuously tail watchdog messages, filtering for a severity of warning or higher.
  • +
  • drush watchdog:tail --type=php. Continuously tail watchdog messages, filtering on type equals php.
  • +
+

Arguments

+
    +
  • [substring]. A substring to look search in error messages.
  • +
+

Options

+
    +
  • --severity=SEVERITY. Restrict to messages of a given severity level (numeric or string).
  • +
  • --severity-min=SEVERITY-MIN. Restrict to messages of a given severity level and higher.
  • +
  • --type=TYPE. Restrict to messages of a given type.
  • +
  • --extended. Return extended information about each message.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • wd-tail
  • +
  • wt
  • +
  • watchdog-tail
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/wd-del/index.html b/13.3.0/commands/wd-del/index.html new file mode 100644 index 0000000000..309b6118d5 --- /dev/null +++ b/13.3.0/commands/wd-del/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/wd-delete/index.html b/13.3.0/commands/wd-delete/index.html new file mode 100644 index 0000000000..309b6118d5 --- /dev/null +++ b/13.3.0/commands/wd-delete/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/wd-list,watchdog-list/index.html b/13.3.0/commands/wd-list,watchdog-list/index.html new file mode 100644 index 0000000000..b631245b9f --- /dev/null +++ b/13.3.0/commands/wd-list,watchdog-list/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/wd-one/index.html b/13.3.0/commands/wd-one/index.html new file mode 100644 index 0000000000..ae3ba0bf4e --- /dev/null +++ b/13.3.0/commands/wd-one/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/wd-show/index.html b/13.3.0/commands/wd-show/index.html new file mode 100644 index 0000000000..22993e4436 --- /dev/null +++ b/13.3.0/commands/wd-show/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/wd-tail/index.html b/13.3.0/commands/wd-tail/index.html new file mode 100644 index 0000000000..136c892a8c --- /dev/null +++ b/13.3.0/commands/wd-tail/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/wd/index.html b/13.3.0/commands/wd/index.html new file mode 100644 index 0000000000..309b6118d5 --- /dev/null +++ b/13.3.0/commands/wd/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/ws/index.html b/13.3.0/commands/ws/index.html new file mode 100644 index 0000000000..22993e4436 --- /dev/null +++ b/13.3.0/commands/ws/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/wt/index.html b/13.3.0/commands/wt/index.html new file mode 100644 index 0000000000..136c892a8c --- /dev/null +++ b/13.3.0/commands/wt/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/y_get_value/index.html b/13.3.0/commands/y_get_value/index.html new file mode 100644 index 0000000000..0d4c7e2e25 --- /dev/null +++ b/13.3.0/commands/y_get_value/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/y_lint/index.html b/13.3.0/commands/y_lint/index.html new file mode 100644 index 0000000000..3c98ee613c --- /dev/null +++ b/13.3.0/commands/y_lint/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/y_unset_key/index.html b/13.3.0/commands/y_unset_key/index.html new file mode 100644 index 0000000000..3af9bedf82 --- /dev/null +++ b/13.3.0/commands/y_unset_key/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/y_update_key/index.html b/13.3.0/commands/y_update_key/index.html new file mode 100644 index 0000000000..15acd38aed --- /dev/null +++ b/13.3.0/commands/y_update_key/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/y_update_value/index.html b/13.3.0/commands/y_update_value/index.html new file mode 100644 index 0000000000..1ec56c33b5 --- /dev/null +++ b/13.3.0/commands/y_update_value/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/commands/yaml_get_value/index.html b/13.3.0/commands/yaml_get_value/index.html new file mode 100644 index 0000000000..3104c31439 --- /dev/null +++ b/13.3.0/commands/yaml_get_value/index.html @@ -0,0 +1,5311 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + yaml:get:value - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

yaml:get:value

+

12.0+

+

Get a value for a specific key in a YAML file.

+

See https://github.com/grasmash/yaml-cli for a README and bug reports.

+

Arguments

+
    +
  • filename. The filename of the YAML file
  • +
  • key. The key for the value to get, in dot notation.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • y:get:value
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/yaml_lint/index.html b/13.3.0/commands/yaml_lint/index.html new file mode 100644 index 0000000000..318d026513 --- /dev/null +++ b/13.3.0/commands/yaml_lint/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + yaml:lint - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

yaml:lint

+

12.0+

+

Validates that a given YAML file has valid syntax.

+

See https://github.com/grasmash/yaml-cli for a README and bug reports.

+

Arguments

+
    +
  • filename. The filename of the YAML file
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • y:lint
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/yaml_unset_key/index.html b/13.3.0/commands/yaml_unset_key/index.html new file mode 100644 index 0000000000..ffc4f739de --- /dev/null +++ b/13.3.0/commands/yaml_unset_key/index.html @@ -0,0 +1,5311 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + yaml:unset:key - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

yaml:unset:key

+

12.0+

+

Unset a specific key in a YAML file.

+

See https://github.com/grasmash/yaml-cli for a README and bug reports.

+

Arguments

+
    +
  • filename. The filename of the YAML file
  • +
  • key. The key to unset, in dot notation
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • y:unset:key
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/yaml_update_key/index.html b/13.3.0/commands/yaml_update_key/index.html new file mode 100644 index 0000000000..4d3e874362 --- /dev/null +++ b/13.3.0/commands/yaml_update_key/index.html @@ -0,0 +1,5312 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + yaml:update:key - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

yaml:update:key

+

12.0+

+

Update a specific key in a YAML file.

+

See https://github.com/grasmash/yaml-cli for a README and bug reports.

+

Arguments

+
    +
  • filename. The filename of the YAML file
  • +
  • key. The original key, in dot notation
  • +
  • new-key. The new key, in dot notation
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • y:update:key
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/commands/yaml_update_value/index.html b/13.3.0/commands/yaml_update_value/index.html new file mode 100644 index 0000000000..b78808a6d1 --- /dev/null +++ b/13.3.0/commands/yaml_update_value/index.html @@ -0,0 +1,5323 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + yaml:update:value - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

yaml:update:value

+

12.0+

+

Update the value for a specific key in a YAML file.

+

See https://github.com/grasmash/yaml-cli for a README and bug reports.

+

Arguments

+
    +
  • filename. The filename of the YAML file
  • +
  • key. The key for the value to set, in dot notation
  • +
  • value. The new value
  • +
+

Options

+
    +
  • -t, --type=TYPE. Set the variable type for the value. Accepted types are int, integer, bool, boolean, str, and string.
  • +
+

Global Options

+
    +
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • +
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • +
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • +
  • To see all global options, run drush topic and pick the first choice.
  • +
+

Aliases

+
    +
  • y:update:value
  • +
+
+

Legend

+
    +
  • An argument or option with square brackets is optional.
  • +
  • Any default value is listed at end of arg/option description.
  • +
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
  • +
+
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/config-exporting/index.html b/13.3.0/config-exporting/index.html new file mode 100644 index 0000000000..326047f49e --- /dev/null +++ b/13.3.0/config-exporting/index.html @@ -0,0 +1,5328 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Drupal configuration - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

Exporting and Importing Configuration

+

Drush provides commands to export, pull, and import Drupal configuration files.

+

Simple - value changes

+

It is not necessary to alter configuration values to +make simple value changes to configuration variables, as this may be +done by the configuration override system.

+

The configuration override system allows you to change configuration +values for a given instance of a site (e.g. the development server) by +setting configuration variables in the site's settings.php file. +For example, to change the name of a local development site: +

$config['system.site']['name'] = 'Local Install of Awesome Widgets, Inc.';
+
+Note that the configuration override system is a Drupal feature, not +a Drush feature. It should be the preferred method for changing +configuration values on a per-environment basis; however, it does not +work for some things, such as enabling and disabling modules.

+

Advanced - variation by environment

+ + +
+
+ + + Last update: + March 23, 2023 + + + +
+ + + + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/contribute/CONTRIBUTING/index.html b/13.3.0/contribute/CONTRIBUTING/index.html new file mode 100644 index 0000000000..24812b5168 --- /dev/null +++ b/13.3.0/contribute/CONTRIBUTING/index.html @@ -0,0 +1,5344 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Guidelines - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

Guidelines

+ +

Drush is built by people like you! Please join us.

+

Git and Pull requests

+
    +
  • Contributions are submitted, reviewed, and accepted using GitHub pull requests.
  • +
  • The latest changes are in the 13.x branch. PR's should initially target this branch.
  • +
  • See the test-specific README.md for instructions on running the test suite. Test before you push. Get familiar with Unish, our test suite. Optionally run tests in the provided Docker containers.
  • +
  • We maintain branches named 13.x, 12.x, etc. These are release branches. From these branches, we make new tags for patch and minor versions.
  • +
+

Development Environment

+ +

Coding style

+
    +
  • Do write comments. You don't have to comment every line, but if you come up with something that's a bit complex/weird, just leave a comment. Bear in mind that you will probably leave the project at some point and that other people will read your code. Undocumented huge amounts of code are nearly worthless!
  • +
  • We use PSR-12.
  • +
  • Keep it compatible. Do not introduce changes to the public API, or configurations too casually. Don't make incompatible changes without good reasons!
  • +
  • Run composer cs to check the project for coding style issues and run composer cbf to fix them automatically where possible. These scripts use PHP_CodeSniffer in background.
  • +
+

Documentation

+
    +
  • The docs are on our web site. You may also read these from within Drush, with the drush topic command.
  • +
  • Documentation should be kept up-to-date. This means, whenever you add a new API method, add a new hook or change the database model, pack the relevant changes to the docs in the same pull request.
  • +
+ +
+
+ + + Last update: + March 12, 2024 + + + +
+ + + + + + + + +
+ + Authors: Moshe Weitzman + +
+ + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/contribute/unish/index.html b/13.3.0/contribute/unish/index.html new file mode 100644 index 0000000000..681e011544 --- /dev/null +++ b/13.3.0/contribute/unish/index.html @@ -0,0 +1,5381 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Unish - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

Unish

+ +

Drush's test suite (aka Unish) is based on PHPUnit. In order to maintain +high quality, our tests are run on every push. See CircleCi.

+

Usage

+
    +
  1. git clone https://github.com/drush-ops/drush.git
  2. +
  3. cd drush
  4. +
  5. composer install
  6. +
  7. Review the configuration settings in tests/phpunit.xml.dist. If customization is needed, copy phpunit.xml.dist to phpunit.xml and edit away.
  8. +
  9. Run all test suites: composer test
  10. +
+

DDEV

+

11.0+

+

Drush's own tests may be run within provided Docker containers via DDEV

+
    +
  • Start containers: ddev start
  • +
  • Run a test: ddev exec drupal composer functional -- --filter testUserRole
  • +
  • See the DDEV's XDebug docs for help on enabling Xdebug.
  • +
+

Advanced usage

+
    +
  • Run only one test suite
      +
    • composer unit
    • +
    • composer integration
    • +
    • composer functional
    • +
    +
  • +
  • Run only tests matching a regex: composer functional -- --filter testUserRole
  • +
  • Skip slow tests (usually those with network usage): composer functional -- --exclude-group slow
  • +
  • XML results: composer functional -- --log-junit results.xml
  • +
  • Ad-hoc testing with the SUT +
  • +
+

About the Test Suites

+
    +
  • Unit tests operate on functions that take values and return results without creating side effects. No database connection is required to run these tests, and no Drupal site is set up.
  • +
  • Integration tests set up a test dependency injection container and operate by calling the Symfony Application APIs directly. A Drupal site called the System Under Test is set up and used for the tests. The SUT is set up and installed only once, and then is re-used for all tests. Integration tests therefore cannot make destructive changes to the SUT database. Also, Drupal is bootstrapped only once (always using the standard Drupal kernel, never the install or update kernel). This means that all commands run at @bootstrap full, and it is not possible to test loading different Drush configuration files and so on. It is not possible to test argument / option parsing. The shutdown and error handlers are not installed, so PHP deprecation warnings will be evidenced in the integration tests.
  • +
  • Functional tests operate by execing the Drush executable. All functional tests therefore run in their own separate processes. The Drupal System Under Test is set up every time it is needed by any functional test. It is therefore okay if a functional test changes the state of the SUT. The codebase is re-used, so no destructive changes should be made to the code.
  • +
+

Drush Test Traits

+

Drush provides test traits that may be used to test your own Drush extensions. Adding the traits varies slightly depending how you package your Drush extension.

+ +

Once you successfully have use Drush\TestTraits\DrushTestTrait in your test class, you are able to write simple tests that call your extension's commands and makes assertions against the output. +

    public function testMyCommand()
+    {
+        $this->drush('my:command', ['param'], ['flag' => 'value']);
+        $this->assertOutputEquals('The parameter is "param" and the "flag" option is "value"');
+    }
+

+ +
+
+ + + Last update: + June 7, 2023 + + + +
+ + + + + + + + +
+ + Authors: Moshe Weitzman + +
+ + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/cron/index.html b/13.3.0/cron/index.html new file mode 100644 index 0000000000..2308748108 --- /dev/null +++ b/13.3.0/cron/index.html @@ -0,0 +1,5368 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Cron - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

Running Drupal cron tasks from Drush

+

Drupal cron tasks are often set up to be run via a wget/curl call to cron.php; this same task can also be accomplished via the cron command, which circumvents the need to provide a web server interface to cron.

+

Quick start

+

If you just want to get started quickly, here is a crontab entry that will run cron once every hour at ten minutes after the hour:

+
10 * * * * cd [DOCROOT] && /usr/bin/env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COLUMNS=72 ../vendor/bin/drush --uri=your.drupalsite.org --quiet maint:status && /usr/bin/env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COLUMNS=72 ../vendor/bin/drush --uri=your.drupalsite.org --quiet cron
+
+

You should set up crontab to run your cron tasks as the same user that runs the web server; for example, if you run your web server as the user www-data:

+
sudo crontab -u www-data -e
+
+

You might need to edit the crontab entry shown above slightly for your particular setup; for example, if you have installed Drush to some directory other than /usr/local/drush, then you will need to adjust the path to drush appropriately. We'll break down the meaning of each section of the crontab entry in the documentation that continues below.

+

Setting the schedule

+

See man 5 crontab for information on how to format the information in a crontab entry. In the example above, the schedule for the crontab is set by the string 10 * * * *. These fields are the minute, hour, day of month, month and day of week; * means essentially 'all values', so 10 * * * * will run any time the minute == 10 (once every hour).

+

Setting the PATH

+

We use /usr/bin/env to run Drush so that we can set up some necessary environment variables that Drush needs to execute. By default, cron will run each command with an empty PATH, which would not work well with Drush. To find out what your PATH needs to be, just type:

+
echo $PATH
+
+

Take the value that is output and place it into your crontab entry in the place of the one shown above. You can remove any entry that is known to not be of interest to Drush (e.g. /usr/games), or is only useful in a graphic environment (e.g. /usr/X11/bin).

+

Setting COLUMNS

+

When running Drush in a terminal, the number of columns will be automatically determined by Drush by way of the tput command, which queries the active terminal to determine what the width of the screen is. When running Drush from cron, there will not be any terminal set, and the call to tput will produce an error message. Spurious error messages are undesirable, as cron is often configured to send email whenever any output is produced, so it is important to make an effort to insure that successful runs of cron complete with no output.

+

In some cases, Drush is smart enough to recognize that there is no terminal -- if the terminal value is empty or "dumb", for example. However, there are some "non-terminal" values that Drush does not recognize, such as "unknown." If you manually set COLUMNS, then Drush will respect your setting and will not attempt to call tput.

+

Using --quiet

+

By default, Drush will print a success message when the run of cron is completed. The --quiet flag will suppress these and other progress messages, again avoiding an unnecessary email message.

+

Specifying the Drupal site to run

+

The Drupal root is derived from which drush you call. The Drupal docroot is usually discovered via the Composer Runtime API, looking for the path of the__drupal/core__ package. Use the --uri to control which multisite to target within the docroot (if applicable).

+

Avoiding Maintenance mode

+

The call to maint:status checks to see if the site is in maintenance mode. If yes, cron will not run and the command returns a failure. It is not safe to run cron while the site is in maintenance. See https://drupal.slack.com/archives/C45SW3FLM/p1675287662331809.

+ +
+
+ + + Last update: + August 6, 2024 + + + +
+ + + + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/css/extra.drush.css b/13.3.0/css/extra.drush.css new file mode 100644 index 0000000000..c9c8c7c678 --- /dev/null +++ b/13.3.0/css/extra.drush.css @@ -0,0 +1,23 @@ +/*https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#content-area-width. Looks worse IMO.*/ +/*.md-grid {*/ +/* max-width: 1440px;*/ +/*}*/ + +/*https://github.com/squidfunk/mkdocs-material/issues/2574#issuecomment-821979698*/ +[data-md-toggle="search"]:not(:checked) ~ .md-header .md-search__form::after { + position: absolute; + top: .3rem; + right: .3rem; + display: block; + padding: .1rem .4rem; + color: var(--md-default-bg-color); + font-weight: bold; + font-size: .8rem; + border: .05rem solid var(--md-default-bg-color--lighter); + border-radius: .1rem; + content: "/"; +} + +.md-typeset h1 { + margin: 0 0 0.1em; +} \ No newline at end of file diff --git a/13.3.0/dependency-injection/index.html b/13.3.0/dependency-injection/index.html new file mode 100644 index 0000000000..1c010f96af --- /dev/null +++ b/13.3.0/dependency-injection/index.html @@ -0,0 +1,5363 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Dependency injection - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

Dependency Injection

+

Drush command files obtain references to the resources they need through a technique called dependency injection. When using this programing paradigm, a class by convention will never use the new operator to instantiate dependencies. Instead, it will store the other objects it needs in class variables, and provide a way for other code to assign an object to that variable.

+
+

Tip

+

Drush 11 and prior required dependency injection via a drush.services.yml file. This approach is deprecated in Drush 12+ and removed in Drush 13.

+
+

Autowire

+

12.5+

+

Command files may inject Drush and Drupal services by adding the AutowireTrait to the class (example: PmCommands). This enables your Constructor parameter type hints determine the the injected service. When a type hint is insufficient, an #[Autowire] Attribute on the constructor property (with +service: named argument) directs AutoWireTrait to the right service (example: FieldDefinitionCommands).

+

If your command is not found by Drush, add the -vvv option for debug info about any service instantiation errors. If Autowire is still insufficient, a commandfile may implement its own create() method (see below).

+

create() method

+

11.6+

+

Command files not using Autowire may inject services by adding a create() method to the commandfile. The passed in Container is a League container with a delegate to the Drupal container. Note that the type hint should be to Psr\Container\ContainerInterface not Symfony\Component\DependencyInjection\ContainerInterface. A create() method and constructor will look something like this: +

class WootStaticFactoryCommands extends DrushCommands
+{
+    protected $configFactory;
+
+    protected function __construct($configFactory)
+    {
+        $this->configFactory = $configFactory;
+    }
+
+    public static function create(Psr\Container\ContainerInterface $container): self
+    {
+        return new static($container->get('config.factory'));
+    }
+
+See the Drupal Documentation for details on how to inject Drupal services into your command file. This approach mimics Drupal's blocks, forms, and controllers.

+

createEarly() method

+

12.0+

+

Drush 12 supported a createEarly() method. This is deprecated and instead put a #[CLI\Bootstrap(DrupalBootLevels::NONE)] Attribute on the command class and inject dependencies via the usual __construct() and AutowireTrait.

+

Note also that Drush commands packaged with Drupal modules are not discovered +until after Drupal bootstraps, and therefore cannot use createEarly(). This +mechanism is only usable by PSR-4 discovered commands packaged with Composer +projects that are not Drupal modules.

+

Inflection

+

A command class may implement the following interfaces. When doing so, implement the corresponding trait to satisfy the interface.

+ + +
+
+ + + Last update: + May 30, 2024 + + + +
+ + + + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/deploycommand/index.html b/13.3.0/deploycommand/index.html new file mode 100644 index 0000000000..34347c65f1 --- /dev/null +++ b/13.3.0/deploycommand/index.html @@ -0,0 +1,5348 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Deploy - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

Deploy

+

10.3+

+

The deploy command standardizes how Drupal deployments work. The intent is your +deployment script updates the codebase for the target site and then this command +performs the following:

+
drush updatedb
+drush config:import
+drush cache:rebuild
+drush deploy:hook
+
+

Authoring update functions

+

Below are the 3 types of update functions run by this command, in order. Choose the most appropriate for your need.

+ + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionDrupal APIPurpose
HOOK_update_n()Not allowedLow level changes.
HOOK_post_update_NAME()AllowedRuns before config is imported.
HOOK_deploy_NAME()AllowedRuns after config is imported.
+

Configuration

+

If you need to customize this command, you should use Drush configuration for the +subcommands listed above (e.g. updatedb, config:import, etc.).

+ +
+
+ + + Last update: + October 8, 2024 + + + +
+ + + + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/drush_logo-black.png b/13.3.0/drush_logo-black.png new file mode 100644 index 0000000000000000000000000000000000000000..4275941baf78d4c54af294b2cfe5babe330f2d09 GIT binary patch literal 23280 zcmV)eK&HQmP);HY+0v@4%1Ybow0qt;cWycL-aE6iyR*_9 z`)X$Hl)ZE3{O|w!{^u(il*gPN=U@8nw@G$)?|bprhs$TDbcR+w1tkZZ8hq1%w{~+Q zqmz0`XMrER18;-o{mmGN-z}f*GSJRdkX?jtx=f%=_vpf4`&9X?mw|THkK2Cu=;Ft^ zd)s&R4tDen4R;B{U z1M5zXP8$0osd1QLkO5_ymPeV<=KiSp=qBQKtuy^Aa$8G3zqGaz;zK8(@73pK`p~vw zM!UBB3zZpdE`w{a2`UR<_K1Z7u&S{d)-=_?vf2d1!$ElV`CjPbuYwwaND$?Ir~ras zAa_4#+}E8KB4pnnK-B)+O)49JtR8@gOqf5+j`A;62HIQ%*NqfwF=kmyA_l85xX3m? z5jXY)GyJSQm@9env8x6!t|h&)$+#c(#*@NFcR#b#uX|1*Svx0QdwGSKG2FwDd+T(z>GHz$*m@*l^<1Vw7b z9Rpe>gIQp+O-pOP1xj+y1Y0N|1zOopn}HE1pMoiyjYbF*VY5QV=`*LL`{R)ua4aU% z!1+fr*-EpYu=bkFra2(B*i&IXwwHg!GSKD>n|b+QqS@%&A08PNe;CbVC;PRIp9aih z7Hsq%&@`|=gN$%cmmNx((aJ!ZJ3u3TS)oG)v`EOplSVO=!)^`&H3n=NjW`QrCaR+$ zDbQ4b$>mW7T1kzLf*6f49eXAI8RASv&B7coaIzn}gU#AU{Is(9SO(ghWwfdIXfkO( z9F&=i8fA7Wzy>m~nZ$_y3(5VoviVpB+T36?YZ2PNkLE7zM?=7X$}t(;!RDBY^s|mK z5)PJuRtDM}8)lf55mFTo1q);|xwIb$Xf_xHlTigW+jWzG&D<9aNlnMj@~>G2TFIM@ z`LY=>{+UYJH$g-(pC{Nfn!V&;Q$>i7P^|LLSq56Ej?O~-GjD0%G%Ym>Y*JvU!KU$w z3nj9UVCAy;SO(ghW3+q~M|#MB77Y`yX~qVgz;XkdOo`OW>uIwv${|=q09w9lXkOBO zB;=TksQsMD zM|?CrhcFRrS}w8EG9dvF$6KPYY5`Q?qgmf+TM@xTs(P*S0+MXBRmY(s5`?xIe2Xdm z^<6K);E_FEzehI)TxThol5-MhWc_MEB)d+3ExQxU;`fsCvGY04W?4Z!xecF|Y!G-1nQD zoP>Mse*lB*sGmPeER3xfY-Ap6DFdx=Q^Tmg5td*y-Ac1<#3y;3 z$!^nWLUc}*(PTi&`DX#pb;rC5U?Ays;wPALJt%|^r3S+6%bAZs>BVD;zgd?B*pGEA zf~yub_AL|j#p-4DjCUjcPnfN{jFLHm4$-o9Vt0@GL z&MEwEH<}=;CE;j)ef4teUsd=%C$y=!`N469C|6=BBSI)KR!+2MF!B8)+VMP zhKMFnG#tqJS!S%GY|Hs!Y>Xpgld6zS?F*}O(=IB|AKOeoMoh$8-?`d1$cU8~4CcNU zF%^GsN0%$eG|Xbb)N%Y3GP$p&PXbIH$G2(KTZkfg$868-U>jz$gyMOuXsQ_YqC1=-OY;(*`o763s);elGy;8HrpWk-TqTu6X`6&WMu5x>khJ}>Hy5E4cdMS zQR>Jok*vEu1ueFNEDN(1^{yew9&mIA(+C(BK#=Y>W>;eCW6*xSXrJ2A7>* zlLHk6G#+H+vCcn6P6=ZNY-*s9fAAs0iQ$OMd~_W;HqVk(O%QKshyQ)URjzWqU@Dpn zy<^udc=-2^xtfY0eGmd@%shVN2{igSh&E%e)szg_v{C@s!rD08(s@2qL~=javExVK zwjcgX`Q8Qf0jNs^Z6>3EM$|eYB=ioXpyx~yvm5eaw{?COxlLuws;6Hoch=KJ!-~p* zBM?ka=5~am#`VNr2{jU-~(6eze#;2&lm}qw8$50<_*I>jWTvqfvY|qfrg3*oYz=o zEX39X({NzVE;xK(U%m^hx$o5wgZBBA4om44cpNsNq}v}f%bpzeB_h=Z~MWnqk|K9gKU1CW-ys%=4!EE3z(94zX=^xYZo=(W3Mnie`It79(&>`cyY(Byw62#0)w?C1~ru- zsE7qkkm)u{A=5;3Oi5k3-(o#iR#N~C@y#)e&jXmmfJG8Y)wulmJ9WxOdsm&J12pfF;y45zwbUg*%`_a#!=Y(91tE<#t zUR?l!GIPzdz8$FyOAb{4%)evP->9MaV!D2#clV>?H#n^ExC5BKGsbWbzUwTU3`*sv;2${_VEgl_0CeFI!OOfGOYxHZ5Qm zwqe1Rd;X1{VK~-1=6bB@XaZU;yb9jBW|^^QPM@rFCJE0x{{lSn_*1^WdsSrwn}sz7 z$OyP>Rgv<+2$+C27X|at0-OUj)`ZM`UN%qj5rNJDjWx%3|7Q|29BKcQ%7%+FFM=?M zK{l9^=Mne^8Ur}Q3L+Aqkp+@qFQ!Xkb_ndhPbYwmkb_Kvj_Dip{8h|8T()t9t^^;*5hBC&M%}&Au2HQkB$}FAd zGa@hyVHg98VAV(I{+x6TfnQHVS;&qafnZfTzVHg`pB+%-6rmXh8Ufk&{_w`u!vo{B zJjjCB=YHn77vQ-UUyKLrOZ~?q=YzU5= zRIlMY{^ZlpedGvS|Bko9?;d{=-Z*r`^ZSM|z?Qbv8Sn8nQ1qHrT9-3YBp!o09UyYxV_93n-7tOFE8L29gjDB_W9!Zafq7ZB`QYifedSTc}oiXUQ%E7;KYgAXKqn#s$F8G=r?>8;`!$^?Ki^VSj!8&C6|& z5g+-;v14%muOE?L?Lr7z8#Fso-L`XiRDiK zo`Q^GmHW`)qwxLPf94Bd%N8}lvV{#s;wEqa6M<%?v1rbIgfyydC_8+*HGnzP}!T04?)7E7aW%ZQTybJ($w1&z{=M{S0A+7r<1z=@nCN4Fl&H~ z{hVlE4B~+ibqFWZ2u@1wC3V~RoYFTIF zoHQLtkT3?>dKzR$2F8sdD@O;%Vc(e%nCR{SS%OJJ0-05MfsH)pu4r`4dAoigBY;@% zrTTWL^Ru-*!;=j8sO0Gb0F^t2K_fXmwHjqsmHS zv&|qhPFUfV2+Y56UV9U?VH@^%@2~;3NF)pkTk4>)GRiD97>r`B<>Y>Pow*2DEN0C% zOSD0JW;72HszE$Z&EPF|GFT9SAisO62rA{#`v}$tk1>X(xs{x>NAx@XQCT0 z(U4Tlrr)mC^1OUAt;j~?OaY2A*(sn0Vl8-AaMnyla2$xDj!l+Kx~#eiu3I=CR@c>t zAT!4WYp#H%Ci$AisX_2ZK}sZJsqjVgjS(48D})x zx~M=K`q_pdi;j2n4ZyKc&p=+d=IZ|e;joygOhWd0`jJvk(m-sqrwQgFNE|$2>PkKd znDsZHmKbtd(B7=213JvhIR;GvZnimv@;h-D(llNk(v-7P%Yy`_jbJowR{uT(!q{JF zn01qJx)_asZHvil@ZX1fAenVfQHeyN2H0d{0=sv_Uz1$49rr~t1b8C1A667r=uj`9 z7P&!l7|Q^b9a9+)Kq;*MXuvME%Pz`1lY+}S98b(rcAI6i&E_Ck)^d|^!)%ldpROuc z8wshUumN0s1*Od)x6W2k)oB45WkL@2j7`AHXZk(gb8*L8 zpteR{QL3jeE6q<0=<>}McadVi%=5C+ zH;7VW$@)n4$vkL~eAXk$;W0^@z?1`b{3rS!QI16i0z z>6G9hGqn(R!KV@c1&-kXK_w0H8_8-mGMmY5HkW{@>r8n8B>5b7kO5O~5phh2goR}! zWlI)hGvvR`^vBD<$b^~&a%@&&CgY3&&GgrdCKay^4#OKmBR>4KYn1-lk<)3`Uqk9& z4^d06PVEc|baYlRpAOHPi!|V@asoE^%mr&2YyzN=5RuRS9q#%dT=fyG@@fB z9K8Y$AE`~oO|xk-&WPzqnUIIE2}$mDc8`o<6S5kjL6@ARU2JHxa#?+%DK0sjx0-GEP)Y=!bV9if1jrHdk5Sd^T*$ot?B!E~P2QlWMQxAh; zIR!f+4v=U%CU`#Ppl^9-3P7{M+=$5-mYR$^Fvvb!3cl%#HMzjdM!LEflK=0Ho$!2p zU2T)WY_icmlEqtwx1^lO>ey2ta0MfFPz5*n$trBRZ9XE(bkv#q6tf9nbk_H1^O7+I zSzAz)QV^@Q`kAB11qw*2;-V=d6#2FMe520|_yIuS1~<0_&MBaogP4$p7c7xJckE0G#*)g#E-sPQ)M$NreO!qjJ9{U*QiS_0ozLqL7>8=o@`5#}=x^;0&u&#*%5VJEPrX zun9SYO~{i3a0F~5=(sxKUQMZ`WszY*rqe0mHyWGNp|Lj1)&|j>FeQx&Hm0K|G&;7? zzKXI@|H`X3<3v&BAYTHF5lM6#OoCtn!1{r-`N)YTRyq#iO-J5rzUeKC|}IU zu6Fz{HWGvZ88stR5gATGB{lJNPSU5@QD8+&rl*;cem(8y0RvzffIx!{QCh03h^QY^ zQIL$di7eZ%0Iquf^a&w)WPVO<6vy>mEvL?Q)6p6m@YX$&&R~D-q%VK1<084g);pMn z!O;xkf;qk#Vwr)P)VyiObaA0nMI_X_XH7(1U@&fNO|@*mF&X0@^1d5WGlVr05l6Ua zDwEy6GBWM5Ba)e-*2RSMLeoMjm2oGO*q9Zd(USkc;ZfK-;2q<6{&^QE{k86s6Oc@2 zd7VQ95J>j<+9-dF2bsaclVr%XpynFIlZKrKk~7Y*JYrN1yjJj8s+8fdz4 zlpp(fegd;@rtD3(2}*FxTE|apLY}fDf09nqUR4Q|9_@dKzxKw#-Gby#&Oa&n-B=R= zQJJR-sB-BvjB2mU14EL~C?pkB0C7a~f6XYzG+GdYs!n;Cwf3;hK#m z0ZGRdZXv)mE(<}v(uoIU$v+ACWVgIN7f;^w={aLQ&U&+W%xX!@YJ{RbbaGYpbze!zHn5kwAjFBkY@8fDt2^OFbHTYm(Mhww&ugfiJb3hjWNRb<}9;jIB zlL{kl;Bvzr@-g9OHx29VtsApi$%rB)lciMi(M|tus*(P#5a|hM zdgEzfe^opPD;Fh<>}RIyjG3rOYLS!wm}~s0p23g#Cz%FBLCB;y&(p!MhP5DQtvd3uSSR z-H_{jHdG4pI{>9Kw&wHV(Bz21kJC8Qi=EV<^Gt#S718NA#>xA-&h{vyB13e(of4%w zA}^3p<6_!TeYaDI!@sS&L^{;r;kGP4~$@qCKAr_jHd? z2?1?A`RAR>o8iM93zaX5L;?nw{^2{f!GMezD}(lrsZ&=Hr$nL-R?!h1aye!JtBVWM zwFYsu7d6J`v4u-Y7(j^iOV~9u@LWd70UQJ-1a3*fxtg=f6*9FEIA6^@mBxo@=n{IB zuMi?Cjx3mbe^Lftbc0oR6UrBCIRDajZz=^=D+xx!X5(U06oGfGXm(K@HDi13rB`5J zP&{|>hz9jlA&H^~4m(&9IU`>1jH6R=jWkoS3`M_>WkI&@wAD~hN7k(v7pd#cq*Jc- zQO`TV2`hvmDX_eNgBTD=*RBfm&rlvARfUN!<~!5Uav8Oy!fK^rIvQ+tep3P(E2FMJ zBNObmk3K1VenCT6%@zb(ItvIygM;35wr#BiG8;5>E*fQ0I%cPnv&Ki8Al(GHu5-~N zKy~hvug5w56W>Bs3^sNbL6ADB6p3b|7;PfS-IG3#rer?4i8Dgpo<510ZB+INgw<-! zd7$0<%O@8%R75uB%*J_qkh>#31ajwe`-^fmtBh*KCbEGp$oh6WT0}>2IGfHhnohA4 zlUc1ZDKa$JbUs0pityJF8_uQE%L}f{0OHykk}N{YMG$XFK|VY@^L{UK$8cm;|CwQ-8}p)2^@ z7*q`~_WNf5rH4zB)dI83W;K%;-MHFZy|}@}WX#FwFT5;gvzkf`LLra`2-`lD#UkPY zw$9|9(PpJ?FJdDFOF8Nz?bA88pd%{YQI@j?9E0hiUncltNQm}FQZo^GELh7Ch7fXn zonN!DApgv(Hi#FyrutN@w(gt-+P>2x8;%T)8*x`_7pZ|p8p@OL!ppm)&(|k3e`{5o z*~Tvz>qrC{4OH7y6rxOYMnGXeN&!a~SPYoIt*fF&z|wDMz;Ph*5-Skrhe<^cKWZZ? zh}Hb~XDA>449POk$vH`5R+Ea18_!vwJ=J~25J5WT*C<60lB!17?2SW*;b8X>iPD&B zDo=w(_YslLPkQD)4KBtPLzGX(u^AP$&%9reRzoY0I&x7OkvbYgoW%U36WI<)*w2^Q z=pk010@mV`{+XL7;)C%N=3_fHAK!M)0S%jtH@Ad|6~JO1)F8>Nb8p6hqYUI~V;HhOLY?S-BJ9Qz%3QW4x zUsH)6NSzwPvzbIi^j#kk<;P}zSQ7a(5%Vic=diS%l7?k9el729d6G8U8CN~?aVrEkav-x>0C^!c;tA844^{i`74>Y=sTEO}NHK$j!)v(>V z&Gn&1W_xL~$-7de<4huilqocP1ip}*%0EUT^9bu>E&_-s=d;1Z2r0@4cuD#K7Q8~U ze5#GIie8-AsP@mOzmlEA7q%2=0inJKaa+E7Rs)TE$%#xB>f;eu(NJa2b(ySBeyo>v zN<@$V5kc4=K(iz1HSSu;x1lw!c2*O1$hAAtRA4jdmHZV=m>3#}HS>`$VO4op^kmY7 zct-y|nF?g`H8OfXk}?PX8QyG`{~DUKsZ}8nCMt$AfvjWmF&GuxlT9S5A9AT#qzT3j z$mOqf?|bpr+s+oCZLmZTnN>k|rR^V3nT=NZiBoLHNoC3HM<(O~G~CSB(9A}IN&uVr z;Tn^+LDwDeA3Uo97+<7^Wjqzgz!%7nEG>ouo*Q`bQyS$7o?Zw+ii?wL3o7JpQqp_% z)SwJ#*65@d&KMYgz=O{MjDD;h%YlAba=8&BjDjH^F26iyW{4 zZAy|8ZRL(J;Bw4K_H!t(0Z{kZJT+zQdxZ%mYf`~hz(QhiRbbc2e3^^DflO&KB2OPk zDS*fTiTtyfQ=2l62oc7QbBpGed=FwiqO7W)wQAH-AOsGC4EQWSdUdP`%?6uY*ixeu zK`gV8j6;WyN<mf|d~v6fcX?<@_Qy zSzkexWKAtSdIW;8CJ2P$(>cv~Q*;LgU?&0FOfuR=@=t4Z92Vd$Yevdyv~OmxnPw=5 z-G`4zKO`2?fi5$^f(@Mgz?qWfb2)%h>_yQUtv2${BTfQQnmP!%bmBxzky8W;7L%+s zAvbeT5-==NK)u7P6l-vPy)6y(#@BorT!7fCWmvsX@FGDia;P3 z!}r6WVekcl5o0UzAnJM--rgIUCiYrv{*g{|>#&~d8J>V!e)|e6Z%7!RBe$0NNKfKJ z3ZTU!j(>*CLLkO{yNe99pJF!^;Am4(LuSQd<~`H|u78U9=_ zQe}fL7^%PnP%u>5i)K2SB1b0$u6F)4b+Iti#UpTVU<`=7zw6YHv4LqF63~%tRdW?A zs;!U$EgaM#V9EH5@<)M)0UT8VTmd+T`Eu{kjP*DRc&2t~{Vk;K1c($eIp11|w{3U^ zLoy$Y7f9Sd=CWSqWil#3CR|M1OUb$Vt}0>1W5L?JViyuSYSHHciJwmwL870?rYDSm zgw*7)bB@fQg>V#uFBHXF1VWKY%!WaT#%uksT48k^F|gjov6b-Gmey6mf~q(yt4kPL zJnX1GJtGrv9B&8vM~&O#qhh3W^Zu<6&@;@ws%Qr4DzlCON4Gbll|fD8Ogv3otJC;O z`=dbhtb#s8Qh0+r%|9~P7Qfr!Ju7@~z-!mPyV#)Yw&3TRBrDOKG@mH#SP*azk@ zE9ock&OeMd&u9>-& zEI>%XT>i{Px4p>kPs$BFn}y`~AWV++8(<672tcb16>0_&KrOA$fs249pV51!7fzq< z#kZ%8+oL_l?B^<7-WLt&PF+Qf0vlME;{*}J`fko|#hR4NNu^9n_N;4=|LTuRtqWfO zQ;QzFuO~AX-6B7H1r56%x4ZnW^36Q!HcCL3SGgb`W~2Q)LWf!i=JHM5f#tqP=fYe_l9`}TRguVNi0k4bfDVCl zt&aa)Q@RK$7G{_SV@lfOV@5qXC5j!hPjiB> zH0DHc=B1lD=IyTeGGIUvBrIhymFS@m6_BK)HVZPO23ZkIMira6=CFAJiaRfeS^8ry zIfz?QQ1p#cT^wY7G(ze=Z${>Yo|ZG3Z0{Qbqd>x>V$H!>0Tn;0qG?D(G87->z{XrH zId-FN%#bXHlNd8n!gRm@w9tV(RY`XfQZ3yJd1VM(qdwG&(%=d*`EeF<78G3L!#9&j z`pUW|GDTQoJ=0=~_?*OSL=vwS$@jZ4nlavU-U1kyOu_EnA$*&L7fuWq8}Y~1G}pj# zePBjFMMfl;H8vvWlZ`~{8@xq@`dg=(VK+a3qfAC-pFm?E_tgr4nTG(P0+>uyl!_kt zFd1ip%0T8O7v#@oNW$L8Te)>B`XlS(jiiBC0vpSbht%<(K5M8r!iWc>5kcdvi<{ua z^IHwD8QbX`=w90K61?8Ke_B8l4rDNpOi%@Kz@jI-mC9l*6x)+uldzj+EjrVIRcgSg zK*zIP{wPDf%t*QNFE)1QvyVhEdqrxrnw zM17?Jj+7S|xk+j5CtwQ%!vdpqTjrwWk6nNnjBJ6R1`ofm173M;f6+h{B%s1u$k=pd zjmq+*80MloxtM;KMu{Oz#3JwH+I^|zfO7*~p^S!nX#esYDha?`)I(R%L#i(N09k>t zj8djj&=K;jI3oABMh-Y`VOU67A_YlJO8#lSLl6rtBsD3C`53FLlLJjQ$b_!Wju!-~ zkd`*U6x1wGWtkvijp=(tt%q?jhbpi!ewCF8ZE~Ld63U!p*pLF03Ur10X+B!UN=--3 z6mes*d_ksID^pE!)kMt4WRxvV3+9-ga4Y8cST^(O?Iz)AF&vKXN$$gJRF~RQA5l?4 zu!33&1B-wvV*|@F`<$t&*#}~ngUA61SlP?8naF22)93%Vl{4QcqjIyn8O#%4s)?HilgYxA@(HtI*;t~2`Y|0PY=)G+nGAe(w#vsTmSQ?bR+T_>(#5vP3aOwQqjyL*8jjk>HhaWjACSL|H&?13J z18A~EJLy5Ft|WA4OzuP?KE+*9dxKWym~|5VdCvP~n`t7T{{ycLaf>&K4H@~}P6;`k zX^aR=(H!PFPQA$Plg6OvQghN|9oqEd*+S#}G>%m?Pxs7cJq(w(NTc#xltx)Jy_=*Dd7FzKwHe(^ zM%hwXQ;v1XypMtN!&Huin~z$OA#0XFkV z3vdE}cykg=nIAL`aI`-r2b~IhQ(H)Lv)*Msg*U+Df(IyL7xMv`Z*Vc(!UF*b8PQ1Q zvni?%tJq9@E%FuD2)v{(5kZ*N%fdO}eKqf;I4RIb1U)}=-A89Fo6T6E!vYxNhw)(X z0Gln601G%KAydL`^iQstMS8$oW8?ie6#z6em8cLOdCJm6QExwtbz%JZV=A^&fy~c( znQCELr7|L4x87_fT%V9Tn<1p~*(k1))=EJhgv>93yZ_#ScP(u(?wlB%%yYd6xyqf) z7v=J)kTk>xDg8G7D#I7Jk@;`*L}1Ho(+Pjv2BKeA=zo&M9;yo|Vtbw;_I>t+T^!3UDuG!g8AYKmMWeZ(&Zu;Pe(jw?zk zcwARQ+3Xa;jHG^=$WGQ`FwJs^mhe@qM4O(xD#7S5=o%Cgmfy3o*C@QN1`VjWLlgDF`Mrmv`q9*N9wyH^i_T zLZS%bCk`~^<#VabA~~>BU=#f}0cjmZ?iKzW*s$cLOS#x%OGSlenX?VCv!sQGm?cK{(z z5roth358>Fppgve$&3!9X**FNtuC8>8O=YlX-crUt(S?unAAKhnm*vl zWKz((fXvG;b0vFaFt1v2@yBM0#!j?v<*QK#>vHh>!_fppE9xK;OBi8S;YeJ`Xj|te z;&5ni%!uA6K+|<|QX`mVuz_5WG{GS=B`tPi%}Jkta{-+Sd?K9CltE>UYu@~3xaOK` zj4hGy&ilLg;)|JE!?(tOd-BOA;i2FB1`ZrJATlD7R532lTvRSfdn9kFg%NoK2+vw# zzL_MVM!I+`VKY$Z9uhX=zjrVk%>gT3W8CubjJ{1r{y+`?O_`vFfG=;O0-LBt(%H?9 zB547^Q&Hs1NpJxi4=#=WKAPqm7@7q9;CV%4N20P4uD||zc>nv~FECaiWB&a4@TY(J zr^ZHrcJI%B4o^Pu1dNQ1Don+~K_=EHQ5XOPsEi;;4Y_|?TU+6s?|dgzS5?_B-@A7& zJp1gkFg!fW0aUgI=D34M;ikk?vJG#XVe$eQUWESRVQ zq>4pt2Ve@3!~&d)@1_Er{3w-g_^Mj*f5(u;8JpsX?Zc@$>P^q>Jie^v@MnTmhfI`LE#0E3cG(R|2xz z@3;egbo=f2{ty?_h?pu`O5co9=7Zr1ql8>2QUPHME&{9~jt$yv|Ml47pX~1Le)Y^S z{PFVn@aDEAhwg#^&p!VQ{NcH0xHYCU#Nf0o#%Z95rWaMtP17`~X-3CKim{S>P%;R4 zYHDnV<>uU?JfxpB#WPF)qy$*E+;R(C+|dCuIYvfC;733D5!{0T=UNxUMfl)-AsKVI zhIGkF#c^c?XxW|s?5}RVSqU(H?7{5zp$~lsh6uZX*yWW0n{HN7(}I|#5;<^1s||2X zp+KsX!N9D&kGIXF3ym?K)_wUd^!VXkct`s@WAg$U8F9VG0f-80G+2CqO$ioFyzk{x zX_^2vU!e2z+4=Zp#Q*xzm%ap5i3H5nAb#A}|KT6trI%jv$6kmN?UAA<8_0u&-PuhJ zGGZc<^YkukCgwW`*gp8755myUupD4i@Nl@I0V--278_VQC}8c7wRZ~n^-sXfQ)9B4 z{rGBpx(qLr0MJqWUg1|#1(6X>=o(ghLqRq05JFQr`@~fIGM+rMJ%}Io{qKDbwr$&H z0FE%7UywOI8S?IBrW8Fu9sPmFCqD5BgT<<=s|)&mYgVs@zuB+>Hg3FCFh%L0_h2{< ziTWkQV5_a*bc^xTxX=Jv@7N@HV<$PJtWL^qYYYffrjaFDGvj z5I>-Eeh^8thxMnBZ+sc!2Fzro1~O|@RaL=vzVjW}x^*kuiUB9En~KR4!10v$`SRoD zKEh%*f9`VyvzQcYpZ+v_ZR19%$w>Y>shRIFx;YcDXl-^w6lyz9j!qiE#iZ06iNVY0 zX4;H&a$y*v3|DsB%4&AX3aCv+Ub0t2gV>#66o9iphqwZ#UQr<~;T*hcmX85>%{6a< zFMs*VQ0k+zvlA}8^itS(>#YXp7|}yvBC32c6@wv(I%%-jKmC&-dK7zn;QjB1uYK)n z5>iICvM3oFfomE#9m7aDYrWzuf)e{u|y_2Y92CuF~knpAnM}3{>#6}mqbc%kmLNL>#j3|nq9kg zK`NQ@4KnZnGA59j_+lUbIQ-kc{wpk9x^!B;Pb?OLhaY|zdV70?z+o*AfQp(n!QaB* zx}opH{(X2$PUpEcn%F-2ubq#9lWEg*6h|gd0~w8M)fjFu zl5_1`L#SYQJ}R9y?~p2ET3W7+?gGMGFNM!U+|^W-Fhobm3lZ}LjIUrOBc|D08z1?| zN8s+e?t=5qJI^=BkPnbqzX4&fJG;6JVW^mBOtVZ=msix@Oc3a$pOT_!UcF<0Cd}kUq**U&9$)rgW;aL?}k7B^FJ4WB9sZ2 z`D?t|XZd27#U8l-{%J84WrF}2Nh*1f^|ILnn$&js_{N{#_`-?)E^JO34KErFJ!`a5 zDjvF%hHxJQQs!GXYL6I?wM?GoB>NRy%}Ukhs9%`Zce?Kvzc6IgwAP!SlS)JK0|SaNdG3Ohjxmiy&> z_nlQhqesv2AN+2YD*L{K4S;>Yne-F}!CqrLZiH!*cSv|tqKTRUVzNL|SQ zjk(fY`tDCct}!9M&BzFA6A%xK_)-tqU0%=UeJboh0(tNJ@sHtbA0&u(%ddU~k3IGn zJoo(bHhW!u`Q`BTx4#|Ufw$QNm^Gd@fc8G7|8%sn5vm%O@h>GYi0_@LJQ2y?B_ht=rQ!O4Tmw^W@!t**AwFx%$0v>JdQHA@2c@s2>9suo&mPw4Zpe^^)Ad*FPxJ7*US%mf$Le4AC>=GMKKm9aSYafilIkRmx z&Kl4Nt3j?wJv?`+Phb_R*5rcuZPNE=AuNDJ1tKqSxq4zn0OQ#Z4Yxi!dmOe5vr-PwbNibSy7S9V|we`Es48b)EnxHlsX3ROlY>f>~ zP?e~HkCqDg$r zD$vZa$)NncAs8Yl8YstPxn5$qT(}j>R!iSVSdDHW><4tJ0-<>Y5T7Fq_T{g91q19l zcwozBwoJXO@DAQFJTd~`_{KNji(mYrDY4J|c<`ZztjS=2ED#jc#&Z&ABxAsGOrJV_ zhVj#Kq6mTpY(6FuRT4if=A=T^Z zz6yW*Cx2pqZYIVogik7ZL z@oNKO|1g%XSX0M(sI%bn147wn+f&StYOX zo7SqOIb<#wX|AlN+CcI6@vV=~Su^n`KlzDhCQ4LAB!CRqB0fk3LSz8?Lm&C@w1VxM z-}<)AW)(FHWG|UD5v0@@&1N+MG|N}hsqUPM7cGNCr6`K%fy!LzJ3fI^)?rh!3E%@c z(vafu$nXgK>Q}#-J7(giK4qGT!*fa;sy`W9^7yxI1r#9n%0#`G0eTyE^3 zGo^cu9fM=$dKzJ=9AFjx8rK!Hs;b&JPo%PNQ7oaMA-JgHVthMj9Dcm28ETqW$k?oX zwt*HZu{l9lt&6Z44YXVZWdzHYuZEX*ZWmH(bd9juh*4(}G)>;7RRt`*9;9S=NhCyh z{J{@?0AKjR7fKFfM6M@`&BI2aR3tXaaEuEN}J9vDiD_@ecUmfBhFMn?hmJrluyi7@KkT-FF}3uL*t2 z@Xh4pBy8F8E4a3^6PlZw^Zr|;*z0FL^BG7cC#mHK1ew%0#H;7YB0^R+E;w(n@5KJ? zWuQ4gTZwPhC3PM4^bbK0gJOO~+y+}X6f!_|@{|}g?tsl5RIV_aBC`>&5nt`X3oo1% zfDsn!Io{(7U}TV@rljy|F{&%KwY9-fY)bBZb+6D}l<8c9|DVJlAvH)k^8_35%l-sg z4Y_K>Ahg3xO$F`Tg$=A8h;f?TnzYdetg;*Sp>Y*WrzTiyj1MZ@%Ul z3S=ys@qN|EaeVjR|J_$p5DR34(H!t1hSkVzqOKKco0rQzf|Qr*oDE^5q!oH!z~S|A32?651aJi#;-Rx>Bi zp+kp^D|RxKGR( zci(-F;ddRg^UZSaPbHIh-!XV%+Y@l#FYkk<#wJ)zsfacBd+yo02i|z&4JF9vWq~9% zBR6l}Vk|gcdg&!b{e0PY>ZzyT17@FYH;|Fr7pxE8viY!AS;*?s822N}u!x4-=@eCB_C)&T_7{s{?TUC!q&T-XMG`?r4!ixw`l zkDt^4A)qHfW6efvJ@i$&k(U@!b; z|4E~*6d6~~Z-ixmBs}uy1Jch6Bzv$4nJU~@Qvp-bF3OYSB>RZTM2jZmeig-fgtbTr z6G>UI%|cN8IfTT&B>@;2t1!@iwPlL{*1$6j=-){L-2EZMM+t}Ai1caVlNkfS@)`{s{~p8i?`fj+zN0-Tpw$0 z0owX=&pi8#v8}x-*U5!MfH-UgLSVA>KE7->v(FV|&R11|jNBg|J`F=>jzCT0BL2*g zbtAHRf9*NrqnYLB$mKBh!8a|0C3Wh`QsH0#E^V!Yw(2;%+B*V6sWc47YN29~u$RuE zf@EL^K+BHLm;mCJ&13*XZs76BUc5;M5@sSk7g;MKA_iG#CW)Fy?Q|A7i`kQ%zYI{m z5dj)8AAkOfUl_s4Qt_i`AVVI0nsYxnJ_PYZ1BAkYs@mST;5@+o+Kfc>Yb5|QV*9OI z-jIO5Uc18g`^M85o896=$D!tgJdRGAAnV^cuq_dbE9vLUXv~B~K72hHxFqc51~9?j z;{7llVAjhez-56TDvA7Ky2Y(?ywe3T#HRY-5s4+BWyz%wl>2KPGg0F)ILjcr5zJuX z&tA3!s$*f_?(#J`pm92|h?G*GylHO5rr{4rZuWR8($BRP{f z_u1Fb091j@8okH%KsK9}{VMCvzx3TVo^?ROY<7`lGTyYN6)M8{iJuxcAR8PSf^APf zEuYiLQ))o?%J%f3EauU$(5uz2HNg>;??!{0&6neGhS(%b=DjjdA||UGI1r1ijH%;c zSWHsvh%ps86H@2*fh(Zg)kU?rDB*9=^$eUmqIAc)%w{ZS6{8txU1!ZY znz?4yN!HA6TGLt($SgK{_W2j!FllNakW3a^jD2#iN2Axp3YY0oUhhNT;!>$URdtm% z_mf5MPpw~XM0t>PxqtY_e>6j;kmPT1%A``RcM&_d_sLa71Z%Ip8vf(E-!&pU$XK>~ zg%PLdrYy=CO1=+(Wo^}2RQ*PMC-+0VvL2#wAyKyzv)b48z4+@}=d`>}2Mxb(b*r%m zo$tX0gO17ggFCt)nH0sM>;#@{nNd!`$Ty0=I16WJ3NJOLWjyt+ok%N=!lcx zt&j~s^@$+XBavB#67!VWbaUdbT(yb;85sn8U;VqU!V}xJ!TXH%vR1_}-c*(e9Wp8GFKL=SmLl_+wE5g+txMF9)>0+}KCrzfHB z#6CBFt!7S|j%LvCdP@MAHj{DUgmV?<*UG$p0j&rHzfnFw*g|P#y2Aq-o5hgU=M!Kp#O$@u^t-&qx4!*t_%_~L7r2!R(IUvi5G%F1nBN6FWSEd)F{Q?k z{Z)P2OA=@pWM3n4J`q4RzGHRXaz4Fg)^*q2QZ^$dBLSM%m-B4HB)D{ZvJ5H|X{@MF zfFOb-p!@3I{T=+-pZyt>${@u|zlGV9n2d5&(c2&M%VhL9nTjn!LbMhxUn_fxMEQ4^ zt)Zthf-?ZJ#U>5MK6ObuwAEDPZ88QZlkvr!JEbOLW~5tkx(mFHAnVMA4Ya`pgr4}AQSpMZPrxd(;@hXhkm6|yMWJZs=ek0B8YfiWEjKCig%FIOM&4lbE%spspZG-EsyAJ*c zZ)?}CE$Y`HGW|op`3=7P1MJ$pi;?%;Sd86|prX13YMPeGDptYx$Z0s!vllZ>T5*a{ zQ97?g89TZn@DH#dSgKIp)%@ONRJ-lW}Bpau8W$eA#Iv*hI|3g zjj{ZIi#EBA;B)oEAN|PK$fPC=N0dmbj-mlRMQ9n>yJz=qTO=W$brf&p*7CcYivSW# zJ(VwJ?I$G$YMYlqWlf9noK;jcLEDO};qx-3zJ>85()*`lo znLSNvf%x&!{Hlz};lrS(hlQ`9Dx#{*)o z@OqLxeSJnpEiWA(gjG#do_S}q$#~EG4?tgkzi2Whhaf%COXEn19?c67wsoUTUEW9T z31`UXGa?>Ea0zQ)ETUOoCJ%to7-H+_D^g|@X)g3_Rl{PVif}L#$-TZ zQnGx*DU7Px`A|P^nd~XjOYOtO{9DtmI_3*DVltB2jjk#qHW?>}4?-?;S^_LBKLS?= zX%)>SbA8q=D3+ht?%?88N--|c7r=l^%CtU9w$SZiDw58d^$XTupG+MI)YP;9YHJ%| zWMoib-UT61+hXLCjgRyhNu0&-%jPY-(D-a_kb~&#JF$OgP5~_+u<<72eZTr|$Yw>~ zE;Z5vdS=Xqh8LrG1F)F3qzh-EeA!Ga&LaaC125!pzYu`An2F9~R%y)nVk?Y7rfw{@ zX7%N8#TD;_MT=G#U^{v826C-3uC9Y+OD}-okpWkBBR&-Y3n{!)2)nf| zy#g~@rR=G$>4@B)QJ{H&jW!uy+kXI_-o9OGGENMe#A=p8 zINk`sZ~_Ca3PSN*4GKLoL7A~W{4500+961p^C2p2e!=C3z3kU8@s0TdtfG3JVJ5~C zjre@21e$see^fu#bMl)ZeJhrDv>W+IAWhXpVq*~`|&sL@R% z^D|4Yz6El=(aMyr$9l#lU`O8ooSsY?O-<@!QD5vvQe5(3x0;4UP}j6X_LLE7HJt@| zX06;DFa7_`H7j6YO$9a??}vQ{UKdTqt)kka&A`Z zI`UxqAM*g7e)PAJ37mnE)31U~Rk_k6Y^4H?EBk3G00tpmy9AqviGsdcdZORhvZ+zI z;Nit^E>)3{YoM`w-AoFwJQ&P+9Ew�)s17+33Yy)*!#{2Cs>1#>8$gL1)M6Ev-&K zM?)PnM}h{}jvqhd`o~C_f`Q(HMtu-#kOlDhi#t?rDO!Yn$pVcBTm6w2Au=vrk;Vs) zKytKKv;z4a)heLnS*17-ibK3^snk@=cj(z9q{dETMjkRQ6e^aJ0ZsK#W)@0KO^JC} z2*3z?#jEBSCSo}1`@++00&GhGb3)2;9gTHRGu{t7UwYg(yAc_mD2$3sYSKjhZ)Rei zmqe2b3v3u@9WtOL$Iigmz#;R1HRkC3bcxaOP(C8@2Fzrx#gGQgNzh?lfqh3xXVc@5 z8t=pAT!eWcWw~XQQ5b#w z1<;1vdkPK@9EZy4CKbqt!uY9~n&TzYP3G2bKV0*>NAKHu=FCYc#~WblKPUlFo@-_* z)+1N#>V*)gXmC4B(#UR|m7ip$yKl%Ba5<$iX#kG+o@u<%%LFQOP{mqG@k1ID=@!1_ zye1fmLerv4{hEhG1(;u!i;nafrQid4-jVlP@o`=|lk>ZzI)0iHw_7!7lh_0s>pvuZ zg*+nmWjG6lE1;sT-MDob$}6CG-0MxiwHNZ;N&jWScp1E9@%>D4SnbOp4->Kg_Tpbt zH}5>CsPQENZ8c4>8R<7>vfRc!4-R2H0Ywr~Q7!taSY>DWI8?_9FAglY(th z3O02hvHVLr&xPZ)P>DgN1wwA7;s(E0YO~@k0o}T(o(qx)Ntln^5=Ku?4i^M2cY#AR zFUf0KmR{+mCX#c~WdiK*Y|NAE{^lo(kByD5A4z9645!kyKG|*7TI-e^(0qXnU%kc# z4jajyD#61~L->lCg%GQ1@iK?j6(arCf8d`EMMuxH*AMqVW^$}3=Vg5O1ir|0D_lFI z1ec#RG9H9&=Xc5uf#eo$o(YxC@A&FBe^aw}U}!`4$k>LS{xh}lp50PGZ8kwxvOx0# zwoGaa22Z|7dwc zRzX(MK=TW>q27IldFAP=nKvQqhgHv8WkeIWj49_LnH8Bgt*A}FO)H$rQKO^72H=hy zJqRaH9)pyNOf4H@14m(W;3&uwL6J`r(w*T*OWLNkH_f_$FvYpE*z}jXXUn{$N2ruf z7BSiI3F}mWjmXb+3oeAg6MGCXL3Y(Jd>W&LE}1|rkf?XnDh5qcu^7?YJnrv5ZLpkmOF-y00-=aH&Qaob$$_Z$&&cD5e66e-=Fl*~b+}ZHN1G#8 zr;AKePKpvzSY;IZE|a6Z(ywIXGc~kBEYa-cD6cE#)ep0pF@68?!evksjrjgSM#n}B z=G*h?4ukpVkxq`nnWH-da24X8$wUt%ic~;N%Nj3`5$XQoX)rOQtmZbzQCDHco8Qs~YgUO%in+)Pt8AOjmFWhi z0}I`WMJ&4w%I6enXdg<(YD5IG%tjg5ND#`712AUV(NCMwF$)q5{N#`s^ z2N*yrRCy#)ecsT zBLE*vX7#+l<|T;alt)Y4@NXK@Eogyj{!50Wby1noiZDWF+ZQsK>$@d(ScDPQ5t)Bp zMJ(?(lf`R3G%Fmd@&p!ZhPpM-Ft56b_|F+oXUmLM9>o(x3RNCuf=FC0!~13~*@(oe z%0fsPXmff@iy%Tv@kr`-d4r1{q_%z8Y%Bw9&JOIS8BrBOsWjZa`ydP@^Gl5(f{2uX zi1{e+l|S~9PKL4&QU=;tFbqYMM2XzK=Md~VlOIvE%xjgHdI=Dv|&erlTRR-GG0Jb68lsqsv3U}-|q%lITFAwC&VElG2}hL-c7s&0YoW!>dprZ^*1J_V&^O5&UMS~Vew zDM=Q%-@SAJEUvDU2Nz@Cim(ys2S&g{`&zU)Xx$Hm+5D9!P<4P7_B z)<4{Z8O^9?`IgouW4ry%|Cq63DD}$3Wz(@draZQ7TEFG`_W7NyiMZh>J=t>_e)?)R zR8-f`)FE`0e}yv8&WZ8kuYX|Y$5*v?uB@vf+2eyGD7jCI&cvT4;NDRF1D?-w literal 0 HcmV?d00001 diff --git a/13.3.0/examples/ArtCommands.php/index.html b/13.3.0/examples/ArtCommands.php/index.html new file mode 100644 index 0000000000..e5b80180cb --- /dev/null +++ b/13.3.0/examples/ArtCommands.php/index.html @@ -0,0 +1,5424 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + ArtCommands.php - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

ArtCommands.php

+ +
<?php
+
+namespace Drush\Commands;
+
+use Consolidation\AnnotatedCommand\AnnotationData;
+use Consolidation\AnnotatedCommand\CommandData;
+use Consolidation\AnnotatedCommand\Events\CustomEventAwareInterface;
+use Consolidation\AnnotatedCommand\Events\CustomEventAwareTrait;
+use Consolidation\AnnotatedCommand\Hooks\HookManager;
+use Consolidation\OutputFormatters\StructuredData\RowsOfFields;
+use Drush\Attributes as CLI;
+use Symfony\Component\Console\Input\InputInterface;
+use Symfony\Component\Console\Output\OutputInterface;
+
+/**
+ * Run these commands using the --include option - e.g. `drush --include=/path/to/drush/examples art sandwich`
+ *
+ * See [Drush Test Traits](https://github.com/drush-ops/drush/blob/13.x/docs/contribute/unish.md#about-the-test-suites) for info on testing Drush commands.
+ */
+
+class ArtCommands extends DrushCommands implements CustomEventAwareInterface
+{
+    use CustomEventAwareTrait;
+
+    /** @var string[] */
+    protected ?array $arts;
+
+    /**
+     * Show a fabulous picture.
+     */
+    #[CLI\Command(name: 'artwork:show', aliases: ['arts'])]
+    #[CLI\Argument(name: 'art', description: 'The name of the art to display')]
+    #[CLI\Usage(name: 'drush art sandwich', description: 'Show a marvelous picture of a sandwich with pickles.')]
+    public function art($art = '')
+    {
+        $data = $this->getArt();
+        $name = $data[$art]['name'];
+        $description = $data[$art]['description'];
+        $path = $data[$art]['path'];
+        $msg = dt(
+            'Okay. Here is {art}: {description}',
+            ['art' => $name, 'description' => $description]
+        );
+        $this->output()->writeln("\n" . $msg . "\n");
+        $this->printFile($path);
+    }
+
+    /**
+     * Show a table of information about available art.
+     */
+    #[CLI\Command(name: 'artwork:list', aliases: ['artls'])]
+    #[CLI\FieldLabels(labels: ['name' => 'Name', 'description' => 'Description', 'path' => 'Path'])]
+    #[CLI\DefaultTableFields(fields: ['name', 'description'])]
+    #[CLI\FilterDefaultField(field: 'name')]
+    public function listArt($options = ['format' => 'table']): RowsOfFields
+    {
+        $data = $this->getArt();
+        return new RowsOfFields($data);
+    }
+
+    /**
+     * Commandfiles may also add topics.  These will appear in
+     * the list of topics when `drush topic` is executed.
+     * To view the topic below, run `drush --include=/full/path/to/examples topic`
+     */
+
+    /**
+     * Ruminations on the true meaning and philosophy of artwork.
+     */
+    #[CLI\Command(name: 'artwork:explain')]
+    #[CLI\Topics(isTopic: true, path: __DIR__ . '/art-topic.md')]
+    #[CLI\Help(hidden: true)]
+    public function ruminate(): void
+    {
+        self::printFile($this->commandData);
+    }
+
+    /**
+     * Return the available built-in art. Any Drush commandfile may provide
+     * more art by implementing a 'drush-art' on-event hook. This on-event
+     * hook is defined in the 'findArt' method below.
+     */
+    #[CLI\Hook(type: HookManager::ON_EVENT, target: 'drush-art')]
+    public function builtInArt()
+    {
+        return [
+            'drush' => [
+                'name' => 'Drush',
+                'description' => 'The Drush logo.',
+                'path' => __DIR__ . '/art/drush-nocolor.txt',
+            ],
+            'sandwich' => [
+                'name' => 'Sandwich',
+                'description' => 'A tasty meal with bread often consumed at lunchtime.',
+                'path' => __DIR__ . '/art/sandwich-nocolor.txt',
+            ],
+        ];
+    }
+
+    #[CLI\Hook(type: HookManager::INTERACT, target: 'artwork:show')]
+    public function interact(InputInterface $input, OutputInterface $output, AnnotationData $annotationData)
+    {
+        // If the user did not specify any artwork, then prompt for one.
+        $art = $input->getArgument('art');
+        if (empty($art)) {
+            $data = $this->getArt();
+            $selections = $this->convertArtListToKeyValue($data);
+            $selection = $this->io()->select('Select art to display', $selections);
+            $input->setArgument('art', $selection);
+        }
+    }
+
+    #[CLI\Hook(type: HookManager::ARGUMENT_VALIDATOR, target: 'artwork:show')]
+    public function artValidate(CommandData $commandData)
+    {
+        $art = $commandData->input()->getArgument('art');
+        $data = $this->getArt();
+        if (!isset($data[$art])) {
+            throw new \Exception(dt('I do not have any art called "{name}".', ['name' => $art]));
+        }
+    }
+
+    /**
+     * Get a list of available artwork. Cache result for future fast access.
+     */
+    protected function getArt(): array
+    {
+        if (!isset($this->arts)) {
+            $this->arts = $this->findArt();
+        }
+        return $this->arts;
+    }
+
+    /**
+     * Use custom defined on-event hook 'drush-art' to find available artwork.
+     */
+    protected function findArt()
+    {
+        $arts = [];
+        $handlers = $this->getCustomEventHandlers('drush-art');
+        foreach ($handlers as $handler) {
+            $handlerResult = $handler();
+            $arts = array_merge($arts, $handlerResult);
+        }
+        return $arts;
+    }
+
+    /**
+     * Given a list of artwork, convert to a 'key' => 'Name: Description' array.
+     */
+    protected function convertArtListToKeyValue(array $data): array
+    {
+        $result = [];
+        foreach ($data as $key => $item) {
+            $result[$key] = $item['name'] . ': ' . $item['description'];
+        }
+        return $result;
+    }
+}
+
+ +
+
+ + + Last update: + March 15, 2023 + + + +
+ + + + + + + + +
+ + Authors: Greg Anderson, Moshe Weitzman + +
+ + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/examples/PolicyCommands.php/index.html b/13.3.0/examples/PolicyCommands.php/index.html new file mode 100644 index 0000000000..333b93b666 --- /dev/null +++ b/13.3.0/examples/PolicyCommands.php/index.html @@ -0,0 +1,5326 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + PolicyCommands.php - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

PolicyCommands.php

+ +
<?php
+
+namespace Drush\Commands;
+
+use Consolidation\AnnotatedCommand\CommandData;
+use Consolidation\AnnotatedCommand\Hooks\HookManager;
+use Drush\Attributes as CLI;
+use Drush\Commands\core\RsyncCommands;
+use Drush\Commands\core\UpdateDBCommands;
+use Drush\Commands\sql\SqlSyncCommands;
+
+/**
+ * Load this commandfile using the --include option - e.g. `drush --include=/path/to/drush/examples`
+ *
+ * See [Drush Test Traits](https://github.com/drush-ops/drush/blob/13.x/docs/contribute/unish.md#about-the-test-suites) for info on testing Drush commands.
+ */
+
+class PolicyCommands extends DrushCommands
+{
+    /**
+     * Prevent catastrophic braino. Note that this file has to be local to the
+     * machine that initiates the sql:sync command.
+     *
+     * @throws \Exception
+     */
+    #[CLI\Hook(type: HookManager::ARGUMENT_VALIDATOR, target: SqlSyncCommands::SYNC)]
+    public function sqlSyncValidate(CommandData $commandData)
+    {
+        if ($commandData->input()->getArgument('target') == '@prod') {
+            throw new \Exception(dt('Per !file, you may never overwrite the production database.', ['!file' => __FILE__]));
+        }
+    }
+
+    /**
+     * Limit rsync operations to production site.
+     */
+    #[CLI\Hook(type: HookManager::ARGUMENT_VALIDATOR, target: RsyncCommands::RSYNC)]
+    public function rsyncValidate(CommandData $commandData)
+    {
+        if (preg_match("/^@prod/", $commandData->input()->getArgument('target'))) {
+            throw new \Exception(dt('Per !file, you may never rsync to the production site.', ['!file' => __FILE__]));
+        }
+    }
+
+    /**
+     * Unauthorized may not execute updates.
+     */
+    #[CLI\Hook(type: HookManager::ARGUMENT_VALIDATOR, target: UpdateDBCommands::UPDATEDB)]
+    public function validateUpdateDb(CommandData $commandData)
+    {
+        if (!$commandData->input()->getOption('secret') == 'mysecret') {
+            throw new \Exception(dt('UpdateDb command requires a secret token per site policy.'));
+        }
+    }
+
+    #[CLI\Hook(type: HookManager::OPTION_HOOK, target: UpdateDBCommands::UPDATEDB)]
+    #[CLI\Option(name: 'secret', description: 'A required token else user may not run updatedb command.')]
+    public function optionsetUpdateDb($options = ['secret' => self::REQ])
+    {
+    }
+}
+
+ +
+
+ + + Last update: + March 15, 2023 + + + +
+ + + + + + + + +
+ + Authors: Greg Anderson, Moshe Weitzman + +
+ + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/examples/SiteAliasAlterCommands.php/index.html b/13.3.0/examples/SiteAliasAlterCommands.php/index.html new file mode 100644 index 0000000000..427b7a7c6e --- /dev/null +++ b/13.3.0/examples/SiteAliasAlterCommands.php/index.html @@ -0,0 +1,5322 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + SiteAliasAlterCommands.php - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

SiteAliasAlterCommands.php

+ +
<?php
+
+namespace Drush\Commands;
+
+use Consolidation\AnnotatedCommand\AnnotationData;
+use Consolidation\AnnotatedCommand\Hooks\HookManager;
+use Consolidation\SiteAlias\SiteAliasManagerInterface;
+use Drush\Attributes as CLI;
+use Drush\Boot\DrupalBootLevels;
+use Symfony\Component\Console\Input\InputInterface;
+
+/**
+ * Load this example by using the --include option - e.g. `drush --include=/path/to/drush/examples`
+ */
+#[CLI\Bootstrap(DrupalBootLevels::NONE)]
+class SiteAliasAlterCommands extends DrushCommands
+{
+    use AutowireTrait;
+
+    public function __construct(
+        private readonly SiteAliasManagerInterface $siteAliasManager
+    ) {
+        parent::__construct();
+    }
+
+    /**
+     * A few example alterations to site aliases.
+     */
+    #[CLI\Hook(type: HookManager::PRE_INITIALIZE, target: '*')]
+    public function alter(InputInterface $input, AnnotationData $annotationData)
+    {
+        $self = $this->siteAliasManager->getSelf();
+        if ($self->isRemote()) {
+            // Always pass along ssh keys.
+            if (!$self->has('ssh.options')) {
+                // Don't edit the alias - edit the general config service instead.
+                $this->getConfig()->set('ssh.options', '-o ForwardAgent=yes');
+            }
+
+            // Change the SSH user.
+            $input->setOption('remote-user', 'mw2');
+
+            // Test to see if specific environment really exists in wildcard
+            // aliases, but only if the target is a specific host.
+            $host = $self->get('host');
+            if (preg_match('#\.myserver.com$#', $host)) {
+                $ip = gethostbyname($host);
+                // If the return value of gethostbyname equals its input parameter,
+                // that indicates failure.
+                if ($host == $ip) {
+                    $aliasName = $self->name();
+                    throw new \Exception("The alias $aliasName refers to an environment that does not exist.");
+                }
+            }
+        }
+    }
+}
+
+ +
+
+ + + Last update: + March 15, 2023 + + + +
+ + + + + + + + +
+ + Authors: Greg Anderson, Moshe Weitzman + +
+ + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/examples/SyncViaHttpCommands.php/index.html b/13.3.0/examples/SyncViaHttpCommands.php/index.html new file mode 100644 index 0000000000..a84687b3e4 --- /dev/null +++ b/13.3.0/examples/SyncViaHttpCommands.php/index.html @@ -0,0 +1,5368 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + SyncViaHttpCommands.php - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

SyncViaHttpCommands.php

+ +
<?php
+
+namespace Drush\Commands;
+
+use Consolidation\AnnotatedCommand\CommandData;
+use Consolidation\AnnotatedCommand\Hooks\HookManager;
+use Drush\Attributes as CLI;
+use Drush\Commands\DrushCommands;
+use Drush\Commands\sql\SqlSyncCommands;
+use Drush\Drush;
+use Drush\Exec\ExecTrait;
+use Symfony\Component\Filesystem\Filesystem;
+
+/**
+ * Load this commandfile using the --include option - e.g. `drush --include=/path/to/drush/examples`
+ */
+
+class SyncViaHttpCommands extends DrushCommands
+{
+  /**
+   * When a hook extends a command with additional options, it must
+   * implement declare those option(s) in a @hook option like this one.  Doing so will add
+   * the option to the help text for the modified command, and will also
+   * allow the new option to be specified on the command line.  Without
+   * this, Drush will fail with an error when a user attempts to use
+   * an unknown option.
+   */
+    #[CLI\Hook(type: HookManager::OPTION_HOOK, target: SqlSyncCommands::SYNC)]
+    #[CLI\Option(name: 'http-sync', description: 'Copy the database via http instead of rsync.  Value is the url that the existing database dump can be found at.')]
+    #[CLI\Option(name: 'http-sync-user', description: 'Username for the protected directory containing the sql dump.')]
+    #[CLI\Option(name: 'http-sync-password', description: 'Password for the same directory.')]
+    public function optionsetSqlSync()
+    {
+    }
+
+    /**
+     * During the pre hook, determine if the http-sync option has been
+     * specified.  If it has been, then disable the normal ssh + rsync
+     * dump-and-transfer that sql-sync usually does, and transfer the
+     * database dump via an http download.
+     */
+    #[CLI\Hook(type: HookManager::PRE_COMMAND_HOOK, target: SqlSyncCommands::SYNC)]
+    public function preSqlSync(CommandData $commandData)
+    {
+        $sql_dump_download_url = $commandData->input()->getOption('http-sync');
+        if (!empty($sql_dump_download_url)) {
+            $user = $commandData->input()->getOption('http-sync-user');
+            $password = $commandData->input()->getOption('http-sync-password');
+            $source_dump_file = $this->downloadFile($sql_dump_download_url, $user, $password);
+            $commandData->input()->setOption('target-dump', $source_dump_file);
+            $commandData->input()->setOption('no-dump', true);
+            $commandData->input()->setOption('no-sync', true);
+        }
+    }
+
+    /**
+     * Downloads a file.
+     *
+     * Optionally uses user authentication, using either wget or curl, as available.
+     */
+    protected function downloadFile($url, $user = false, $password = false, $destination = false, $overwrite = true)
+    {
+        static $use_wget;
+        if ($use_wget === null) {
+            $use_wget = ExecTrait::programExists('wget');
+        }
+
+        $destination_tmp = drush_tempnam('download_file');
+        if ($use_wget) {
+            $args = ['wget', '-q', '--timeout=30'];
+            if ($user && $password) {
+                $args = array_merge($args, ["--user=$user", "--password=$password", '-O', $destination_tmp, $url]);
+            } else {
+                $args = array_merge($args, ['-O', $destination_tmp, $url]);
+            }
+        } else {
+            $args = ['curl', '-s', '-L', '--connect-timeout 30'];
+            if ($user && $password) {
+                $args = array_merge($args, ['--user', "$user:$password", '-o', $destination_tmp, $url]);
+            } else {
+                $args = array_merge($args, ['-o', $destination_tmp, $url]);
+            }
+        }
+        $process = Drush::process($args);
+        $process->mustRun();
+
+        if (!Drush::simulate()) {
+            if (!drush_file_not_empty($destination_tmp) && $file = @file_get_contents($url)) {
+                @file_put_contents($destination_tmp, $file);
+            }
+            if (!drush_file_not_empty($destination_tmp)) {
+                // Download failed.
+                throw new \Exception(dt("The URL !url could not be downloaded.", ['!url' => $url]));
+            }
+        }
+        if ($destination) {
+            $fs = new Filesystem();
+            $fs->rename($destination_tmp, $destination, $overwrite);
+            return $destination;
+        }
+        return $destination_tmp;
+    }
+}
+
+ +
+
+ + + Last update: + March 15, 2023 + + + +
+ + + + + + + + +
+ + Authors: Greg Anderson, Moshe Weitzman + +
+ + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/examples/XkcdCommands.php/index.html b/13.3.0/examples/XkcdCommands.php/index.html new file mode 100644 index 0000000000..a106798b10 --- /dev/null +++ b/13.3.0/examples/XkcdCommands.php/index.html @@ -0,0 +1,5328 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + XkcdCommands.php - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

XkcdCommands.php

+ +
<?php
+
+namespace Drush\Commands;
+
+use Drush\Attributes as CLI;
+use Drush\Exec\ExecTrait;
+
+/**
+ * Run these commands using the --include option - e.g. `drush --include=/path/to/drush/examples xkcd`
+ *
+ * For an example of a Drush extension with tests for Drush:
+ * - https://github.com/drush-ops/example-drush-extension
+ */
+
+class XkcdCommands extends DrushCommands
+{
+    use ExecTrait;
+
+    /**
+     * Retrieve and display xkcd cartoons.
+     */
+    #[CLI\Command(name: 'xkcd:fetch', aliases: ['xkcd'])]
+    #[CLI\Option(name: 'search', description: 'Optional argument to retrieve the cartoons matching an index number, keyword search or "random". If omitted the latest cartoon will be retrieved.')]
+    #[CLI\Option(name: 'image-viewer', description: 'Command to use to view images (e.g. xv, firefox). Defaults to "display" (from ImageMagick).')]
+    #[CLI\Option(name: 'google-custom-search-api-key', description: 'Google Custom Search API Key, available from https://code.google.com/apis/console/. Default key limited to 100 queries/day globally.')]
+    #[CLI\Usage(name: 'drush xkcd', description: 'Retrieve and display the latest cartoon.')]
+    #[CLI\Usage(name: 'drush xkcd sandwich', description: 'Retrieve and display cartoons about sandwiches.')]
+    #[CLI\Usage(name: 'drush xkcd 123 --image-viewer=eog', description: 'Retrieve and display cartoon #123 in eog.')]
+    #[CLI\Usage(name: 'drush xkcd random --image-viewer=firefox', description: 'Retrieve and display a random cartoon in Firefox.')]
+    public function fetch($search = null, $options = ['image-viewer' => 'open', 'google-custom-search-api-key' => 'AIzaSyDpE01VDNNT73s6CEeJRdSg5jukoG244ek'])
+    {
+        $this->doFetch($search, $options);
+    }
+
+    /**
+     * @param $search
+     * @param array $options
+     * @throws \Exception
+     */
+    protected function doFetch($search, array $options): void
+    {
+        if (empty($search)) {
+            $this->startBrowser('http://xkcd.com');
+        } elseif (is_numeric($search)) {
+            $this->startBrowser('http://xkcd.com/' . $search);
+        } elseif ($search == 'random') {
+            $xkcd_response = @json_decode(file_get_contents('http://xkcd.com/info.0.json'));
+            if (!empty($xkcd_response->num)) {
+                $this->startBrowser('http://xkcd.com/' . rand(1, $xkcd_response->num));
+            }
+        } else {
+            // This uses an API key with a limited number of searches per.
+            $search_response = @json_decode(file_get_contents('https://www.googleapis.com/customsearch/v1?key=' . $options['google-custom-search-api-key'] . '&cx=012652707207066138651:zudjtuwe28q&q=' . $search));
+            if (!empty($search_response->items)) {
+                foreach ($search_response->items as $item) {
+                    $this->startBrowser($item->link);
+                }
+            } else {
+                throw new \Exception(dt('The search failed or produced no results.'));
+            }
+        }
+    }
+}
+
+ +
+
+ + + Last update: + March 15, 2023 + + + +
+ + + + + + + + +
+ + Authors: Greg Anderson, Moshe Weitzman + +
+ + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/examples/example.drush.yml/index.html b/13.3.0/examples/example.drush.yml/index.html new file mode 100644 index 0000000000..d151d72783 --- /dev/null +++ b/13.3.0/examples/example.drush.yml/index.html @@ -0,0 +1,5304 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + drush.yml - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

drush.yml

+ +
#
+# A minimalist Drush config file.
+# See https://www.drush.org/latest/using-drush-configuration/ for lots more documentation.
+#
+
+# Preflight configuration.
+drush:
+  include:
+    - '${env.HOME}/.drush/commands'
+    - /usr/share/drush/commands
+  paths:
+    config:
+      # Load additional config files. Is silently skipped if not found. Filename must be drush.yml
+      - ${env.HOME}/.drush/config/drush.yml
+    alias-path:
+      - '${env.HOME}/.drush/sites'
+      - /etc/drush/sites
+
+# Global options.
+options:
+  # Specify the base_url that should be used when generating links.
+# uri: 'http://example.com/subdir'
+
+# Command-specific options.
+command:
+  sql:
+    dump:
+      options:
+        # Uncomment to omit cache and similar tables (including during a sql:sync).
+#       structure-tables-key: common
+
+# Non-options.
+ssh:
+  # Specify options to pass to ssh.  The default is to prohibit
+  # password authentication, and is included here, so you may add additional
+  # parameters without losing the default configuration.
+  options: '-o PasswordAuthentication=no'
+  # This string is valid for Bash shell. Override in case you need something different. See https://github.com/drush-ops/drush/issues/3816.
+  pipefail: 'set -o pipefail; '
+
+ +
+
+ + + Last update: + March 15, 2023 + + + +
+ + + + + + + + +
+ + Authors: Moshe Weitzman + +
+ + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/examples/example.prompt.sh/index.html b/13.3.0/examples/example.prompt.sh/index.html new file mode 100644 index 0000000000..140d94bc60 --- /dev/null +++ b/13.3.0/examples/example.prompt.sh/index.html @@ -0,0 +1,5372 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + prompt.sh - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

prompt.sh

+ +
# -*- mode: shell-script; mode: flyspell-prog; ispell-local-dictionary: "american" -*-
+#
+# Example PS1 prompt.
+#
+# Note: This file does a lot, and is designed for Bash. If you want to show the
+# currently set alias in your prompt, use the first 2 values below as an example.
+
+# This section can be used for the POWERLEVEL9K theme for Oh My Zsh.
+#FILE="${TMPDIR:-/tmp/}/drush-env-${USER}/drush-drupal-site-$$"
+#POWERLEVEL9K_CUSTOM_DRUSH="[ -r $FILE ] && cat $FILE"
+#POWERLEVEL9K_CUSTOM_DRUSH_BACKGROUND="green"
+#POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir vcs custom_drush)
+
+#
+# Note that your Bash session must already have the __git_ps1 function available.
+# Typically this is provided by git-prompt.sh, see instructions for downloading
+# and including this file here:
+# https://github.com/git/git/blob/10.x/contrib/completion/git-prompt.sh
+#
+# Features:
+#
+# Displays Git repository and Drush alias status in your prompt.
+
+__drush_ps1() {
+  f="${TMPDIR:-/tmp/}/drush-env-${USER}/drush-drupal-site-$$"
+  if [ -f $f ]
+  then
+    __DRUPAL_SITE=$(cat "$f")
+  else
+    __DRUPAL_SITE="$DRUPAL_SITE"
+  fi
+
+  # Set DRUSH_PS1_SHOWCOLORHINTS to a non-empty value and define a
+  # __drush_ps1_colorize_alias() function for color hints in your Drush PS1
+  # prompt. See example.prompt.sh for an example implementation.
+  if [ -n "${__DRUPAL_SITE-}" ] && [ -n "${DRUSH_PS1_SHOWCOLORHINTS-}" ]; then
+    __drush_ps1_colorize_alias
+  fi
+
+  [[ -n "$__DRUPAL_SITE" ]] && printf "${1:- (%s)}" "$__DRUPAL_SITE"
+}
+
+if [ -n "$(type -t __git_ps1)" ] && [ "$(type -t __git_ps1)" = function ] && [ "$(type -t __drush_ps1)" ] && [ "$(type -t __drush_ps1)" = function ]; then
+
+  # This line enables color hints in your Drush prompt. Modify the below
+  # __drush_ps1_colorize_alias() to customize your color theme.
+  DRUSH_PS1_SHOWCOLORHINTS=true
+
+  # Git offers various prompt customization options as well as seen in
+  # https://github.com/git/git/blob/10.x/contrib/completion/git-prompt.sh.
+  # Adjust the following lines to enable the corresponding features:
+  #
+  GIT_PS1_SHOWDIRTYSTATE=true
+  GIT_PS1_SHOWUPSTREAM=auto
+  # GIT_PS1_SHOWSTASHSTATE=true
+  # GIT_PS1_SHOWUNTRACKEDFILES=true
+  GIT_PS1_SHOWCOLORHINTS=true
+
+  # The following line sets your bash prompt according to this example:
+  #
+  #   username@hostname ~/working-directory (git-branch)[@drush-alias] $
+  #
+  # See http://ss64.com/bash/syntax-prompt.html for customization options.
+  export PROMPT_COMMAND='__git_ps1 "\u@\h \w" "$(__drush_ps1 "[%s]") \\\$ "'
+
+  # PROMPT_COMMAND is used in the example above rather than PS1 because neither
+  # Git nor Drush color hints are compatible with PS1. If you don't want color
+  # hints, however, and prefer to use PS1, you can still do so by commenting out
+  # the PROMPT_COMMAND line above and uncommenting the PS1 line below:
+  #
+  # export PS1='\u@\h \w$(__git_ps1 " (%s)")$(__drush_ps1 "[%s]")\$ '
+
+  __drush_ps1_colorize_alias() {
+    if [[ -n ${ZSH_VERSION-} ]]; then
+      local COLOR_BLUE='%F{blue}'
+      local COLOR_CYAN='%F{cyan}'
+      local COLOR_GREEN='%F{green}'
+      local COLOR_MAGENTA='%F{magenta}'
+      local COLOR_RED='%F{red}'
+      local COLOR_WHITE='%F{white}'
+      local COLOR_YELLOW='%F{yellow}'
+      local COLOR_NONE='%f'
+    else
+      # Using \[ and \] around colors is necessary to prevent issues with
+      # command line editing/browsing/completion.
+      local COLOR_BLUE='\[\e[94m\]'
+      local COLOR_CYAN='\[\e[36m\]'
+      local COLOR_GREEN='\[\e[32m\]'
+      local COLOR_MAGENTA='\[\e[35m\]'
+      local COLOR_RED='\[\e[91m\]'
+      local COLOR_WHITE='\[\e[37m\]'
+      local COLOR_YELLOW='\[\e[93m\]'
+      local COLOR_NONE='\[\e[0m\]'
+    fi
+
+    # Customize your color theme below.
+    case "$__DRUPAL_SITE" in
+      *.live|*.prod) local ENV_COLOR="$COLOR_RED" ;;
+      *.stage|*.test) local ENV_COLOR="$COLOR_YELLOW" ;;
+      *.local) local ENV_COLOR="$COLOR_GREEN" ;;
+      *) local ENV_COLOR="$COLOR_BLUE" ;;
+    esac
+
+    __DRUPAL_SITE="${ENV_COLOR}${__DRUPAL_SITE}${COLOR_NONE}"
+  }
+
+fi
+
+ +
+
+ + + Last update: + March 15, 2023 + + + +
+ + + + + + + + +
+ + Authors: Greg Anderson, Moshe Weitzman + +
+ + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/examples/example.site.yml/index.html b/13.3.0/examples/example.site.yml/index.html new file mode 100644 index 0000000000..832ee28156 --- /dev/null +++ b/13.3.0/examples/example.site.yml/index.html @@ -0,0 +1,5292 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + site.yml - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

site.yml

+ +
#
+# A minimalist Drush site alias file.
+# See https://www.drush.org/latest/site-aliases/ for lots more documentation.
+#
+# File: self.site.yml
+live:
+  host: www.domain.com
+  user: www-admin
+  root: /other/path/to/drupal
+  uri: http://www.example.com
+  ssh:
+    options: '-p 100'
+  paths:
+    drush-script: '/path/to/drush'
+  env-vars:
+    PATH: /bin:/usr/bin:/home/www-admin/.composer/vendor/bin
+    DRUPAL_ENV: live
+  command:
+    site:
+      install:
+        options:
+          admin-password: 'secret-secret'
+stage:
+  host: stage.domain.com
+  user: www-admin
+  root: /other/path/to/drupal
+  uri: http://stage.example.com
+
+ +
+
+ + + Last update: + March 15, 2023 + + + +
+ + + + + + + + +
+ + Authors: Greg Anderson, Moshe Weitzman + +
+ + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/examples/git-bisect.example.sh/index.html b/13.3.0/examples/git-bisect.example.sh/index.html new file mode 100644 index 0000000000..a4cab693ed --- /dev/null +++ b/13.3.0/examples/git-bisect.example.sh/index.html @@ -0,0 +1,5315 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + git-bisect.sh - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

git-bisect.sh

+ +
#!/usr/bin/env sh
+
+#
+# Git bisect is a helpful way to discover which commit an error
+# occurred in.  This example file gives simple instructions for
+# using git bisect with Drush to quickly find erroneous commits
+# in Drush commands or Drupal modules, presuming that you can
+# trigger the error condition via Drush (e.g. using `drush php-eval`).
+#
+# Follow these simple steps:
+#
+#   $ git bisect start
+#   $ git bisect bad              # Tell git that the current commit does not work
+#   $ git bisect good bcadd5a     # Tell drush that the commithash 12345 worked fine
+#   $ git bisect run mytestscript.sh
+#
+# 'git bisect run' will continue to call 'git bisect good' and 'git bisect bad',
+# based on whether the script's exit code was 0 or 1, respectively.
+#
+# Replace 'mytestscript.sh' in the example above with a custom script that you
+# write yourself.  Use the example script at the end of this document as a
+# guide.  Replace the example command with one that calls the Drush command
+# that you would like to test, and replace the 'grep' string with a value
+# that appears when the error exists in the commit, but does not appear when
+# commit is okay.
+#
+# If you are using Drush to test Drupal or an external Drush module, use:
+#
+#   $ git bisect run drush mycommand --strict=2
+#
+# This presumes that there is one or more '[warning]' or '[error]'
+# messages emitted when there is a problem, and no warnings or errors
+# when the commit is okay.  Omit '--strict=2' to ignore warnings, and
+# signal failure only when 'error' messages are emitted.
+#
+# If you need to test for an error condition explicitly, to find errors
+# that do not return any warning or error log messages on their own, you
+# can use the Drush php-eval command to force an error when `myfunction()`
+# returns FALSE. Replace 'myfunction()' with the name of an appropriate
+# function in your module that can be used to detect the error condition
+# you are looking for.
+#
+#   $ git bisect run drush ev 'if(!myfunction()) { return drush_set_error("ERR"); }'
+#
+drush mycommand --myoption 2>&1 | grep -q 'string that indicates there was a problem'
+if [ $? == 0 ] ; then
+  exit 1
+else
+  exit 0
+fi
+
+ +
+
+ + + Last update: + March 15, 2023 + + + +
+ + + + + + + + +
+ + Authors: Greg Anderson, Moshe Weitzman + +
+ + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/examples/helloworld.script/index.html b/13.3.0/examples/helloworld.script/index.html new file mode 100644 index 0000000000..0a9208ecf5 --- /dev/null +++ b/13.3.0/examples/helloworld.script/index.html @@ -0,0 +1,5290 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Helloworld.script - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

Helloworld.script

+ +
<?php
+
+//
+// This example demonstrates how to write a drush
+// script. These scripts are run with the php:script command.
+//
+use Drush\Drush;
+
+$this->output()->writeln("Hello world!");
+$this->output()->writeln("The extra options/arguments to this command were:");
+$this->output()->writeln(print_r($extra, true));
+
+//
+// We can check which site was bootstrapped via
+// the '@self' alias, which is defined only if
+// there is a bootstrapped site.
+//
+$self = Drush::aliasManager()->getSelf();;
+if (!$self->hasRoot()) {
+  $this->output()->writeln('No bootstrapped site.');
+}
+else {
+  $this->output()->writeln('The following site is bootstrapped:');
+  $this->output()->writeln(print_r($self->legacyRecord(), true));
+}
+
+ +
+
+ + + Last update: + March 15, 2023 + + + +
+ + + + + + + + +
+ + Authors: Greg Anderson, Moshe Weitzman + +
+ + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/access-checker/index.html b/13.3.0/generators/access-checker/index.html new file mode 100644 index 0000000000..5c0c23617b --- /dev/null +++ b/13.3.0/generators/access-checker/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/action-links/index.html b/13.3.0/generators/action-links/index.html new file mode 100644 index 0000000000..31f4531353 --- /dev/null +++ b/13.3.0/generators/action-links/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/action/index.html b/13.3.0/generators/action/index.html new file mode 100644 index 0000000000..33f878f673 --- /dev/null +++ b/13.3.0/generators/action/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/all/index.html b/13.3.0/generators/all/index.html new file mode 100644 index 0000000000..125058059f --- /dev/null +++ b/13.3.0/generators/all/index.html @@ -0,0 +1,5339 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + all - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

All generators

+
+

Tip

+

Press the / key to Search for a command. Or use your browser's Find in Page feature.

+
+ + + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/apache-virtual-host/index.html b/13.3.0/generators/apache-virtual-host/index.html new file mode 100644 index 0000000000..1f76badfbe --- /dev/null +++ b/13.3.0/generators/apache-virtual-host/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/block/index.html b/13.3.0/generators/block/index.html new file mode 100644 index 0000000000..575cfa9f62 --- /dev/null +++ b/13.3.0/generators/block/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/breadcrumb-builder/index.html b/13.3.0/generators/breadcrumb-builder/index.html new file mode 100644 index 0000000000..49dd2aacb8 --- /dev/null +++ b/13.3.0/generators/breadcrumb-builder/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/breakpoints/index.html b/13.3.0/generators/breakpoints/index.html new file mode 100644 index 0000000000..3006972a86 --- /dev/null +++ b/13.3.0/generators/breakpoints/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/browser-test/index.html b/13.3.0/generators/browser-test/index.html new file mode 100644 index 0000000000..bdb32c653e --- /dev/null +++ b/13.3.0/generators/browser-test/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/bundle-class/index.html b/13.3.0/generators/bundle-class/index.html new file mode 100644 index 0000000000..46dccda982 --- /dev/null +++ b/13.3.0/generators/bundle-class/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/cache-context/index.html b/13.3.0/generators/cache-context/index.html new file mode 100644 index 0000000000..b570ea9ce9 --- /dev/null +++ b/13.3.0/generators/cache-context/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/ckeditor-plugin/index.html b/13.3.0/generators/ckeditor-plugin/index.html new file mode 100644 index 0000000000..77318294ba --- /dev/null +++ b/13.3.0/generators/ckeditor-plugin/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/ckeditor/index.html b/13.3.0/generators/ckeditor/index.html new file mode 100644 index 0000000000..77318294ba --- /dev/null +++ b/13.3.0/generators/ckeditor/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/composer.json/index.html b/13.3.0/generators/composer.json/index.html new file mode 100644 index 0000000000..a5d7fc9169 --- /dev/null +++ b/13.3.0/generators/composer.json/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/composer/index.html b/13.3.0/generators/composer/index.html new file mode 100644 index 0000000000..65efb48ff2 --- /dev/null +++ b/13.3.0/generators/composer/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + composer - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

composer

+

Generates a composer.json file

+

Examples

+
    +
  • drush generate composer. Generates a composer.json file
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • composer.json
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/condition/index.html b/13.3.0/generators/condition/index.html new file mode 100644 index 0000000000..ac74dea378 --- /dev/null +++ b/13.3.0/generators/condition/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/config-entity/index.html b/13.3.0/generators/config-entity/index.html new file mode 100644 index 0000000000..0399237dfe --- /dev/null +++ b/13.3.0/generators/config-entity/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/config-form/index.html b/13.3.0/generators/config-form/index.html new file mode 100644 index 0000000000..24c407120e --- /dev/null +++ b/13.3.0/generators/config-form/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/confirm-form/index.html b/13.3.0/generators/confirm-form/index.html new file mode 100644 index 0000000000..bd65262d2b --- /dev/null +++ b/13.3.0/generators/confirm-form/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/constraint/index.html b/13.3.0/generators/constraint/index.html new file mode 100644 index 0000000000..27c1918d6c --- /dev/null +++ b/13.3.0/generators/constraint/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/content-entity/index.html b/13.3.0/generators/content-entity/index.html new file mode 100644 index 0000000000..9fbec0b179 --- /dev/null +++ b/13.3.0/generators/content-entity/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/contextual-links/index.html b/13.3.0/generators/contextual-links/index.html new file mode 100644 index 0000000000..040603e8d6 --- /dev/null +++ b/13.3.0/generators/contextual-links/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/controller/index.html b/13.3.0/generators/controller/index.html new file mode 100644 index 0000000000..d8f367b727 --- /dev/null +++ b/13.3.0/generators/controller/index.html @@ -0,0 +1,5299 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + controller - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

controller

+

Generates a controller

+

Examples

+
    +
  • drush generate controller. Generates a controller
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ + + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/custom-service/index.html b/13.3.0/generators/custom-service/index.html new file mode 100644 index 0000000000..a811d510bb --- /dev/null +++ b/13.3.0/generators/custom-service/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/daf/index.html b/13.3.0/generators/daf/index.html new file mode 100644 index 0000000000..7c7d25653c --- /dev/null +++ b/13.3.0/generators/daf/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/dcf/index.html b/13.3.0/generators/dcf/index.html new file mode 100644 index 0000000000..258655796e --- /dev/null +++ b/13.3.0/generators/dcf/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/dg/index.html b/13.3.0/generators/dg/index.html new file mode 100644 index 0000000000..f1cb0aca50 --- /dev/null +++ b/13.3.0/generators/dg/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/drush_alias-file/index.html b/13.3.0/generators/drush_alias-file/index.html new file mode 100644 index 0000000000..8ad62067ac --- /dev/null +++ b/13.3.0/generators/drush_alias-file/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + drush:alias-file - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

drush:alias-file

+

Generates a Drush site alias file.

+

Examples

+
    +
  • drush generate drush:alias-file. Generates a Drush site alias file.
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • daf
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/drush_command-file/index.html b/13.3.0/generators/drush_command-file/index.html new file mode 100644 index 0000000000..3ff7972f68 --- /dev/null +++ b/13.3.0/generators/drush_command-file/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + drush:command-file - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

drush:command-file

+

Generates a Drush command file.

+

Examples

+
    +
  • drush generate drush:command-file. Generates a Drush command file.
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • dcf
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/drush_generator/index.html b/13.3.0/generators/drush_generator/index.html new file mode 100644 index 0000000000..309d169035 --- /dev/null +++ b/13.3.0/generators/drush_generator/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + drush:generator - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

drush:generator

+

Generates a Drush generator.

+

Examples

+
    +
  • drush generate drush:generator. Generates a Drush generator.
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • dg
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/drush_symfony-command/index.html b/13.3.0/generators/drush_symfony-command/index.html new file mode 100644 index 0000000000..217c08f2b1 --- /dev/null +++ b/13.3.0/generators/drush_symfony-command/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + drush:symfony-command - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

drush:symfony-command

+

Generates Symfony console command

+

Examples

+
    +
  • drush generate drush:symfony-command. Generates Symfony console command
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • symfony-command
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/entity-reference-selection/index.html b/13.3.0/generators/entity-reference-selection/index.html new file mode 100644 index 0000000000..70079b2a2b --- /dev/null +++ b/13.3.0/generators/entity-reference-selection/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/entity_bundle-class/index.html b/13.3.0/generators/entity_bundle-class/index.html new file mode 100644 index 0000000000..7bcc73be62 --- /dev/null +++ b/13.3.0/generators/entity_bundle-class/index.html @@ -0,0 +1,5311 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + entity:bundle-class - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

entity:bundle-class

+

11.0+

+

Generate a bundle class for a content entity.

+

Examples

+
    +
  • drush generate entity:bundle-class. Generate a bundle class for a content entity.
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • bundle-class
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/entity_configuration/index.html b/13.3.0/generators/entity_configuration/index.html new file mode 100644 index 0000000000..4705f93185 --- /dev/null +++ b/13.3.0/generators/entity_configuration/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + entity:configuration - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

entity:configuration

+

Generates configuration entity

+

Examples

+
    +
  • drush generate entity:configuration. Generates configuration entity
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • config-entity
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/entity_content/index.html b/13.3.0/generators/entity_content/index.html new file mode 100644 index 0000000000..6e1412da88 --- /dev/null +++ b/13.3.0/generators/entity_content/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + entity:content - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

entity:content

+

Generates content entity

+

Examples

+
    +
  • drush generate entity:content. Generates content entity
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • content-entity
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/event-subscriber/index.html b/13.3.0/generators/event-subscriber/index.html new file mode 100644 index 0000000000..49572fb7ce --- /dev/null +++ b/13.3.0/generators/event-subscriber/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/field-formatter/index.html b/13.3.0/generators/field-formatter/index.html new file mode 100644 index 0000000000..b8ab7e29f7 --- /dev/null +++ b/13.3.0/generators/field-formatter/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/field-type/index.html b/13.3.0/generators/field-type/index.html new file mode 100644 index 0000000000..dbf3117c15 --- /dev/null +++ b/13.3.0/generators/field-type/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/field-widget/index.html b/13.3.0/generators/field-widget/index.html new file mode 100644 index 0000000000..7149f6c14b --- /dev/null +++ b/13.3.0/generators/field-widget/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/field/index.html b/13.3.0/generators/field/index.html new file mode 100644 index 0000000000..59704037e7 --- /dev/null +++ b/13.3.0/generators/field/index.html @@ -0,0 +1,5299 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + field - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

field

+

Generates a field

+

Examples

+
    +
  • drush generate field. Generates a field
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ + + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/filter/index.html b/13.3.0/generators/filter/index.html new file mode 100644 index 0000000000..bf3928c9d1 --- /dev/null +++ b/13.3.0/generators/filter/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/form/index.html b/13.3.0/generators/form/index.html new file mode 100644 index 0000000000..dba0ecb1ca --- /dev/null +++ b/13.3.0/generators/form/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/form_config/index.html b/13.3.0/generators/form_config/index.html new file mode 100644 index 0000000000..788e58a8d9 --- /dev/null +++ b/13.3.0/generators/form_config/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + form:config - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

form:config

+

Generates a configuration form

+

Examples

+
    +
  • drush generate form:config. Generates a configuration form
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • config-form
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/form_confirm/index.html b/13.3.0/generators/form_confirm/index.html new file mode 100644 index 0000000000..1c8f52519c --- /dev/null +++ b/13.3.0/generators/form_confirm/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + form:confirm - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

form:confirm

+

Generates a confirmation form

+

Examples

+
    +
  • drush generate form:confirm. Generates a confirmation form
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • confirm-form
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/form_simple/index.html b/13.3.0/generators/form_simple/index.html new file mode 100644 index 0000000000..d08b2ce3ac --- /dev/null +++ b/13.3.0/generators/form_simple/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + form:simple - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

form:simple

+

Generates simple form

+

Examples

+
    +
  • drush generate form:simple. Generates simple form
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • form
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/hook/index.html b/13.3.0/generators/hook/index.html new file mode 100644 index 0000000000..96a7230639 --- /dev/null +++ b/13.3.0/generators/hook/index.html @@ -0,0 +1,5299 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + hook - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

hook

+

Generates a hook

+

Examples

+
    +
  • drush generate hook. Generates a hook
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ + + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/index.html b/13.3.0/generators/index.html new file mode 100644 index 0000000000..092b4827b2 --- /dev/null +++ b/13.3.0/generators/index.html @@ -0,0 +1,5349 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Generator Authoring - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

Overview

+
+

Tip

+

Drush 11 and prior required generators to define a drush.services.yml file. This is no longer used with Drush 12+ generators. See docs for injecting dependencies.

+
+

Generators jump start your coding by building all the boring boilerplate code for you. After running the generate command, you have a guide for where to insert your custom logic.

+

Drush's generators reuse classes provided by the excellent Drupal Code Generator project. See its Commands directory for inspiration.

+

Writing Custom Generators

+

Drupal modules may supply their own Generators, just like they can supply Commands.

+

Creating a new Drush generator is easy. Follow the steps below.

+
    +
  1. Run drush generate drush:generator.
  2. +
  3. Drush will prompt for the machine name of the module that should own the files. The module selected must already exist and be enabled. Use drush generate module to create a new module.
  4. +
  5. Drush will then report that it created a generator (PHP class and twig file). Edit as needed.
  6. +
  7. Similar to ExampleGenerator, implement your custom logic in the generate() method.
  8. +
  9. You may inject dependencies from Drupal or Drush.
  10. +
+

Auto-discovered Generators (PSR4)

+

Generators that don't ship inside Drupal modules are called global generators. For example see CustomDrushGenerator. In general, it is better to use modules to carry your generators. If you still prefer using a global generator, please note:

+
    +
  1. The generator class should be PSR4 auto-loadable.
  2. +
  3. The generator class namespace, relative to base namespace, should be Drush\Generators. For instance, if a Drush generator provider third party library maps this PSR4 autoload entry: +
    "autoload": {
    +  "psr-4": {
    +    "My\\Custom\\Library\\": "src"
    +  }
    +}
    +
    + then the Drush global generator class namespace should be My\Custom\Library\Drush\Generators and the class file should be located under the src/Drush/Generators directory.
  4. +
  5. The filename must have a name like FooGenerator.php. The prefix Foo can be whatever string you want. The file must end in Generator.php.
  6. +
+

Site-wide Generators

+

Sitewide generators (as opposed to auto-discovered PSR4) have a namespace that starts with \Drush\Generators, the directory above Generators must be one of: + 1. A Folder listed in the --include option. include may be provided via config or via CLI. + 1. ../drush, /drush or /sites/all/drush. These paths are relative to Drupal root.

+ +
+
+ + + Last update: + March 12, 2024 + + + +
+ + + + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/install-file/index.html b/13.3.0/generators/install-file/index.html new file mode 100644 index 0000000000..62ca1b7a24 --- /dev/null +++ b/13.3.0/generators/install-file/index.html @@ -0,0 +1,5299 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + install-file - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

install-file

+

Generates an install file

+

Examples

+
    +
  • drush generate install-file. Generates an install file
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ + + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/javascript/index.html b/13.3.0/generators/javascript/index.html new file mode 100644 index 0000000000..2a9fae1816 --- /dev/null +++ b/13.3.0/generators/javascript/index.html @@ -0,0 +1,5299 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + javascript - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

javascript

+

Generates Drupal JavaScript file

+

Examples

+
    +
  • drush generate javascript. Generates Drupal JavaScript file
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ + + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/kernel-test/index.html b/13.3.0/generators/kernel-test/index.html new file mode 100644 index 0000000000..a9a79c4872 --- /dev/null +++ b/13.3.0/generators/kernel-test/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/layout/index.html b/13.3.0/generators/layout/index.html new file mode 100644 index 0000000000..d341f4e0d1 --- /dev/null +++ b/13.3.0/generators/layout/index.html @@ -0,0 +1,5299 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + layout - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

layout

+

Generates a layout

+

Examples

+
    +
  • drush generate layout. Generates a layout
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ + + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/logger/index.html b/13.3.0/generators/logger/index.html new file mode 100644 index 0000000000..94e07cc1de --- /dev/null +++ b/13.3.0/generators/logger/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/menu-link/index.html b/13.3.0/generators/menu-link/index.html new file mode 100644 index 0000000000..9a2f09c720 --- /dev/null +++ b/13.3.0/generators/menu-link/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/menu-links/index.html b/13.3.0/generators/menu-links/index.html new file mode 100644 index 0000000000..43ac060fe1 --- /dev/null +++ b/13.3.0/generators/menu-links/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/middleware/index.html b/13.3.0/generators/middleware/index.html new file mode 100644 index 0000000000..041f9f92bc --- /dev/null +++ b/13.3.0/generators/middleware/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/migrate-destination/index.html b/13.3.0/generators/migrate-destination/index.html new file mode 100644 index 0000000000..423db47962 --- /dev/null +++ b/13.3.0/generators/migrate-destination/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/migrate-process/index.html b/13.3.0/generators/migrate-process/index.html new file mode 100644 index 0000000000..3c86aa3a8a --- /dev/null +++ b/13.3.0/generators/migrate-process/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/migrate-source/index.html b/13.3.0/generators/migrate-source/index.html new file mode 100644 index 0000000000..3b7f77130e --- /dev/null +++ b/13.3.0/generators/migrate-source/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/migration.yml/index.html b/13.3.0/generators/migration.yml/index.html new file mode 100644 index 0000000000..29d0d53821 --- /dev/null +++ b/13.3.0/generators/migration.yml/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/migration/index.html b/13.3.0/generators/migration/index.html new file mode 100644 index 0000000000..29d0d53821 --- /dev/null +++ b/13.3.0/generators/migration/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/misc_apache-virtual-host/index.html b/13.3.0/generators/misc_apache-virtual-host/index.html new file mode 100644 index 0000000000..548973bf19 --- /dev/null +++ b/13.3.0/generators/misc_apache-virtual-host/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + misc:apache-virtual-host - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

misc:apache-virtual-host

+

Generates an Apache site configuration file

+

Examples

+
    +
  • drush generate misc:apache-virtual-host. Generates an Apache site configuration file
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • apache-virtual-host
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/misc_nginx-virtual-host/index.html b/13.3.0/generators/misc_nginx-virtual-host/index.html new file mode 100644 index 0000000000..cc2e9c1eb4 --- /dev/null +++ b/13.3.0/generators/misc_nginx-virtual-host/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + misc:nginx-virtual-host - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

misc:nginx-virtual-host

+

Generates an Nginx site configuration file

+

Examples

+
    +
  • drush generate misc:nginx-virtual-host. Generates an Nginx site configuration file
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • nginx-virtual-host
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/module-libraries/index.html b/13.3.0/generators/module-libraries/index.html new file mode 100644 index 0000000000..70921b4f26 --- /dev/null +++ b/13.3.0/generators/module-libraries/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/module/index.html b/13.3.0/generators/module/index.html new file mode 100644 index 0000000000..ca0bcb2437 --- /dev/null +++ b/13.3.0/generators/module/index.html @@ -0,0 +1,5299 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + module - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

module

+

Generates Drupal module

+

Examples

+
    +
  • drush generate module. Generates Drupal module
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ + + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/nginx-virtual-host/index.html b/13.3.0/generators/nginx-virtual-host/index.html new file mode 100644 index 0000000000..9896266761 --- /dev/null +++ b/13.3.0/generators/nginx-virtual-host/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/nightwatch-test/index.html b/13.3.0/generators/nightwatch-test/index.html new file mode 100644 index 0000000000..25d539428f --- /dev/null +++ b/13.3.0/generators/nightwatch-test/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/param-converter/index.html b/13.3.0/generators/param-converter/index.html new file mode 100644 index 0000000000..1bb2f4ca39 --- /dev/null +++ b/13.3.0/generators/param-converter/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/path-processor/index.html b/13.3.0/generators/path-processor/index.html new file mode 100644 index 0000000000..eda64fa25d --- /dev/null +++ b/13.3.0/generators/path-processor/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/permissions.yml/index.html b/13.3.0/generators/permissions.yml/index.html new file mode 100644 index 0000000000..156a0b9e3f --- /dev/null +++ b/13.3.0/generators/permissions.yml/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/permissions/index.html b/13.3.0/generators/permissions/index.html new file mode 100644 index 0000000000..156a0b9e3f --- /dev/null +++ b/13.3.0/generators/permissions/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/phpstorm-meta/index.html b/13.3.0/generators/phpstorm-meta/index.html new file mode 100644 index 0000000000..a8a05743a8 --- /dev/null +++ b/13.3.0/generators/phpstorm-meta/index.html @@ -0,0 +1,5299 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + phpstorm-meta - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

phpstorm-meta

+

Generates PhpStorm metadata

+

Examples

+
    +
  • drush generate phpstorm-meta. Generates PhpStorm metadata
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ + + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/plugin_action/index.html b/13.3.0/generators/plugin_action/index.html new file mode 100644 index 0000000000..25b20c6ea0 --- /dev/null +++ b/13.3.0/generators/plugin_action/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + plugin:action - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

plugin:action

+

Generates action plugin

+

Examples

+
    +
  • drush generate plugin:action. Generates action plugin
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • action
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/plugin_block/index.html b/13.3.0/generators/plugin_block/index.html new file mode 100644 index 0000000000..2155e5b837 --- /dev/null +++ b/13.3.0/generators/plugin_block/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + plugin:block - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

plugin:block

+

Generates block plugin

+

Examples

+
    +
  • drush generate plugin:block. Generates block plugin
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • block
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/plugin_ckeditor/index.html b/13.3.0/generators/plugin_ckeditor/index.html new file mode 100644 index 0000000000..fd9b16e24e --- /dev/null +++ b/13.3.0/generators/plugin_ckeditor/index.html @@ -0,0 +1,5311 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + plugin:ckeditor - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

plugin:ckeditor

+

Generates CKEditor plugin

+

Examples

+
    +
  • drush generate plugin:ckeditor. Generates CKEditor plugin
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • ckeditor
  • +
  • ckeditor-plugin
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/plugin_condition/index.html b/13.3.0/generators/plugin_condition/index.html new file mode 100644 index 0000000000..243907363d --- /dev/null +++ b/13.3.0/generators/plugin_condition/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + plugin:condition - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

plugin:condition

+

Generates condition plugin

+

Examples

+
    +
  • drush generate plugin:condition. Generates condition plugin
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • condition
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/plugin_constraint/index.html b/13.3.0/generators/plugin_constraint/index.html new file mode 100644 index 0000000000..bead0f0ab2 --- /dev/null +++ b/13.3.0/generators/plugin_constraint/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + plugin:constraint - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

plugin:constraint

+

Generates constraint plugin

+

Examples

+
    +
  • drush generate plugin:constraint. Generates constraint plugin
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • constraint
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/plugin_entity-reference-selection/index.html b/13.3.0/generators/plugin_entity-reference-selection/index.html new file mode 100644 index 0000000000..14907039be --- /dev/null +++ b/13.3.0/generators/plugin_entity-reference-selection/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + plugin:entity-reference-selection - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

plugin:entity-reference-selection

+

Generates entity reference selection plugin

+

Examples

+
    +
  • drush generate plugin:entity-reference-selection. Generates entity reference selection plugin
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • entity-reference-selection
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/plugin_field_formatter/index.html b/13.3.0/generators/plugin_field_formatter/index.html new file mode 100644 index 0000000000..27ee1783a7 --- /dev/null +++ b/13.3.0/generators/plugin_field_formatter/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + plugin:field:formatter - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

plugin:field:formatter

+

Generates field formatter plugin

+

Examples

+
    +
  • drush generate plugin:field:formatter. Generates field formatter plugin
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • field-formatter
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/plugin_field_type/index.html b/13.3.0/generators/plugin_field_type/index.html new file mode 100644 index 0000000000..0f617b6755 --- /dev/null +++ b/13.3.0/generators/plugin_field_type/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + plugin:field:type - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

plugin:field:type

+

Generates field type plugin

+

Examples

+
    +
  • drush generate plugin:field:type. Generates field type plugin
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • field-type
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/plugin_field_widget/index.html b/13.3.0/generators/plugin_field_widget/index.html new file mode 100644 index 0000000000..8be77d04a9 --- /dev/null +++ b/13.3.0/generators/plugin_field_widget/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + plugin:field:widget - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

plugin:field:widget

+

Generates field widget plugin

+

Examples

+
    +
  • drush generate plugin:field:widget. Generates field widget plugin
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • field-widget
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/plugin_filter/index.html b/13.3.0/generators/plugin_filter/index.html new file mode 100644 index 0000000000..e9f83cc901 --- /dev/null +++ b/13.3.0/generators/plugin_filter/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + plugin:filter - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

plugin:filter

+

Generates filter plugin

+

Examples

+
    +
  • drush generate plugin:filter. Generates filter plugin
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • filter
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/plugin_manager/index.html b/13.3.0/generators/plugin_manager/index.html new file mode 100644 index 0000000000..d844824566 --- /dev/null +++ b/13.3.0/generators/plugin_manager/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + plugin:manager - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

plugin:manager

+

Generates plugin manager

+

Examples

+
    +
  • drush generate plugin:manager. Generates plugin manager
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • plugin-manager
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/plugin_menu-link/index.html b/13.3.0/generators/plugin_menu-link/index.html new file mode 100644 index 0000000000..377aae523f --- /dev/null +++ b/13.3.0/generators/plugin_menu-link/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + plugin:menu-link - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

plugin:menu-link

+

Generates menu-link plugin

+

Examples

+
    +
  • drush generate plugin:menu-link. Generates menu-link plugin
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • menu-link
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/plugin_migrate_destination/index.html b/13.3.0/generators/plugin_migrate_destination/index.html new file mode 100644 index 0000000000..45af3e8498 --- /dev/null +++ b/13.3.0/generators/plugin_migrate_destination/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + plugin:migrate:destination - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

plugin:migrate:destination

+

Generates migrate destination plugin

+

Examples

+
    +
  • drush generate plugin:migrate:destination. Generates migrate destination plugin
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • migrate-destination
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/plugin_migrate_process/index.html b/13.3.0/generators/plugin_migrate_process/index.html new file mode 100644 index 0000000000..6c0e99f50e --- /dev/null +++ b/13.3.0/generators/plugin_migrate_process/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + plugin:migrate:process - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

plugin:migrate:process

+

Generates migrate process plugin

+

Examples

+
    +
  • drush generate plugin:migrate:process. Generates migrate process plugin
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • migrate-process
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/plugin_migrate_source/index.html b/13.3.0/generators/plugin_migrate_source/index.html new file mode 100644 index 0000000000..7b66072df0 --- /dev/null +++ b/13.3.0/generators/plugin_migrate_source/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + plugin:migrate:source - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

plugin:migrate:source

+

Generates migrate source plugin

+

Examples

+
    +
  • drush generate plugin:migrate:source. Generates migrate source plugin
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • migrate-source
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/plugin_queue-worker/index.html b/13.3.0/generators/plugin_queue-worker/index.html new file mode 100644 index 0000000000..7c0c6c08ea --- /dev/null +++ b/13.3.0/generators/plugin_queue-worker/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + plugin:queue-worker - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

plugin:queue-worker

+

Generates queue worker plugin

+

Examples

+
    +
  • drush generate plugin:queue-worker. Generates queue worker plugin
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • queue-worker
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/plugin_rest-resource/index.html b/13.3.0/generators/plugin_rest-resource/index.html new file mode 100644 index 0000000000..dfe163000e --- /dev/null +++ b/13.3.0/generators/plugin_rest-resource/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + plugin:rest-resource - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

plugin:rest-resource

+

Generates rest resource plugin

+

Examples

+
    +
  • drush generate plugin:rest-resource. Generates rest resource plugin
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • rest-resource
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/plugin_views_argument-default/index.html b/13.3.0/generators/plugin_views_argument-default/index.html new file mode 100644 index 0000000000..105578c552 --- /dev/null +++ b/13.3.0/generators/plugin_views_argument-default/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + plugin:views:argument-default - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

plugin:views:argument-default

+

Generates views default argument plugin

+

Examples

+
    +
  • drush generate plugin:views:argument-default. Generates views default argument plugin
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • views-argument-default
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/plugin_views_field/index.html b/13.3.0/generators/plugin_views_field/index.html new file mode 100644 index 0000000000..e8f37e5071 --- /dev/null +++ b/13.3.0/generators/plugin_views_field/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + plugin:views:field - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

plugin:views:field

+

Generates views field plugin

+

Examples

+
    +
  • drush generate plugin:views:field. Generates views field plugin
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • views-field
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/plugin_views_style/index.html b/13.3.0/generators/plugin_views_style/index.html new file mode 100644 index 0000000000..2793b8b4a6 --- /dev/null +++ b/13.3.0/generators/plugin_views_style/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + plugin:views:style - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

plugin:views:style

+

Generates views style plugin

+

Examples

+
    +
  • drush generate plugin:views:style. Generates views style plugin
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • views-style
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/queue-worker/index.html b/13.3.0/generators/queue-worker/index.html new file mode 100644 index 0000000000..9567eb1a51 --- /dev/null +++ b/13.3.0/generators/queue-worker/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/readme/index.html b/13.3.0/generators/readme/index.html new file mode 100644 index 0000000000..c0179412ad --- /dev/null +++ b/13.3.0/generators/readme/index.html @@ -0,0 +1,5299 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + readme - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

readme

+

Generates README file

+

Examples

+
    +
  • drush generate readme. Generates README file
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ + + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/render-element/index.html b/13.3.0/generators/render-element/index.html new file mode 100644 index 0000000000..efe3af76c8 --- /dev/null +++ b/13.3.0/generators/render-element/index.html @@ -0,0 +1,5299 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + render-element - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

render-element

+

Generates Drupal render element

+

Examples

+
    +
  • drush generate render-element. Generates Drupal render element
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ + + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/request-policy/index.html b/13.3.0/generators/request-policy/index.html new file mode 100644 index 0000000000..da6880dc8d --- /dev/null +++ b/13.3.0/generators/request-policy/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/response-policy/index.html b/13.3.0/generators/response-policy/index.html new file mode 100644 index 0000000000..54778265ba --- /dev/null +++ b/13.3.0/generators/response-policy/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/rest-resource/index.html b/13.3.0/generators/rest-resource/index.html new file mode 100644 index 0000000000..fa99c5109e --- /dev/null +++ b/13.3.0/generators/rest-resource/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/route-subscriber/index.html b/13.3.0/generators/route-subscriber/index.html new file mode 100644 index 0000000000..f403533b0d --- /dev/null +++ b/13.3.0/generators/route-subscriber/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/routing.yml/index.html b/13.3.0/generators/routing.yml/index.html new file mode 100644 index 0000000000..ecece6713c --- /dev/null +++ b/13.3.0/generators/routing.yml/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/routing/index.html b/13.3.0/generators/routing/index.html new file mode 100644 index 0000000000..ecece6713c --- /dev/null +++ b/13.3.0/generators/routing/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/sdc/index.html b/13.3.0/generators/sdc/index.html new file mode 100644 index 0000000000..f32ccbbf0a --- /dev/null +++ b/13.3.0/generators/sdc/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/service-provider/index.html b/13.3.0/generators/service-provider/index.html new file mode 100644 index 0000000000..2a12a7643f --- /dev/null +++ b/13.3.0/generators/service-provider/index.html @@ -0,0 +1,5299 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + service-provider - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

service-provider

+

Generates a service provider

+

Examples

+
    +
  • drush generate service-provider. Generates a service provider
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ + + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/service_access-checker/index.html b/13.3.0/generators/service_access-checker/index.html new file mode 100644 index 0000000000..72ecf009b9 --- /dev/null +++ b/13.3.0/generators/service_access-checker/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + service:access-checker - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

service:access-checker

+

Generates an access checker service

+

Examples

+
    +
  • drush generate service:access-checker. Generates an access checker service
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • access-checker
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/service_breadcrumb-builder/index.html b/13.3.0/generators/service_breadcrumb-builder/index.html new file mode 100644 index 0000000000..b5512d1c09 --- /dev/null +++ b/13.3.0/generators/service_breadcrumb-builder/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + service:breadcrumb-builder - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

service:breadcrumb-builder

+

Generates a breadcrumb builder service

+

Examples

+
    +
  • drush generate service:breadcrumb-builder. Generates a breadcrumb builder service
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • breadcrumb-builder
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/service_cache-context/index.html b/13.3.0/generators/service_cache-context/index.html new file mode 100644 index 0000000000..eb8dc9786d --- /dev/null +++ b/13.3.0/generators/service_cache-context/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + service:cache-context - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

service:cache-context

+

Generates a cache context service

+

Examples

+
    +
  • drush generate service:cache-context. Generates a cache context service
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • cache-context
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/service_custom/index.html b/13.3.0/generators/service_custom/index.html new file mode 100644 index 0000000000..f6f2f8d418 --- /dev/null +++ b/13.3.0/generators/service_custom/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + service:custom - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

service:custom

+

Generates a custom Drupal service

+

Examples

+
    +
  • drush generate service:custom. Generates a custom Drupal service
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • custom-service
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/service_event-subscriber/index.html b/13.3.0/generators/service_event-subscriber/index.html new file mode 100644 index 0000000000..6b96d57a11 --- /dev/null +++ b/13.3.0/generators/service_event-subscriber/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + service:event-subscriber - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

service:event-subscriber

+

Generates an event subscriber

+

Examples

+
    +
  • drush generate service:event-subscriber. Generates an event subscriber
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • event-subscriber
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/service_logger/index.html b/13.3.0/generators/service_logger/index.html new file mode 100644 index 0000000000..aeea27880b --- /dev/null +++ b/13.3.0/generators/service_logger/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + service:logger - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

service:logger

+

Generates a logger service

+

Examples

+
    +
  • drush generate service:logger. Generates a logger service
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • logger
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/service_middleware/index.html b/13.3.0/generators/service_middleware/index.html new file mode 100644 index 0000000000..4d5ef1ec7a --- /dev/null +++ b/13.3.0/generators/service_middleware/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + service:middleware - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

service:middleware

+

Generates a middleware

+

Examples

+
    +
  • drush generate service:middleware. Generates a middleware
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • middleware
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/service_param-converter/index.html b/13.3.0/generators/service_param-converter/index.html new file mode 100644 index 0000000000..b32b26c755 --- /dev/null +++ b/13.3.0/generators/service_param-converter/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + service:param-converter - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

service:param-converter

+

Generates a param converter service

+

Examples

+
    +
  • drush generate service:param-converter. Generates a param converter service
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • param-converter
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/service_path-processor/index.html b/13.3.0/generators/service_path-processor/index.html new file mode 100644 index 0000000000..aeddd23f67 --- /dev/null +++ b/13.3.0/generators/service_path-processor/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + service:path-processor - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

service:path-processor

+

Generates a path processor service

+

Examples

+
    +
  • drush generate service:path-processor. Generates a path processor service
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • path-processor
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/service_request-policy/index.html b/13.3.0/generators/service_request-policy/index.html new file mode 100644 index 0000000000..01c636ed59 --- /dev/null +++ b/13.3.0/generators/service_request-policy/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + service:request-policy - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

service:request-policy

+

Generates a request policy service

+

Examples

+
    +
  • drush generate service:request-policy. Generates a request policy service
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • request-policy
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/service_response-policy/index.html b/13.3.0/generators/service_response-policy/index.html new file mode 100644 index 0000000000..6d3acddcad --- /dev/null +++ b/13.3.0/generators/service_response-policy/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + service:response-policy - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

service:response-policy

+

Generates a response policy service

+

Examples

+
    +
  • drush generate service:response-policy. Generates a response policy service
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • response-policy
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/service_route-subscriber/index.html b/13.3.0/generators/service_route-subscriber/index.html new file mode 100644 index 0000000000..d8ecae746d --- /dev/null +++ b/13.3.0/generators/service_route-subscriber/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + service:route-subscriber - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

service:route-subscriber

+

Generates a route subscriber

+

Examples

+
    +
  • drush generate service:route-subscriber. Generates a route subscriber
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • route-subscriber
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/service_theme-negotiator/index.html b/13.3.0/generators/service_theme-negotiator/index.html new file mode 100644 index 0000000000..e3abe68e4b --- /dev/null +++ b/13.3.0/generators/service_theme-negotiator/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + service:theme-negotiator - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

service:theme-negotiator

+

Generates a theme negotiator

+

Examples

+
    +
  • drush generate service:theme-negotiator. Generates a theme negotiator
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • theme-negotiator
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/service_twig-extension/index.html b/13.3.0/generators/service_twig-extension/index.html new file mode 100644 index 0000000000..555b171a3b --- /dev/null +++ b/13.3.0/generators/service_twig-extension/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + service:twig-extension - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

service:twig-extension

+

Generates Twig extension service

+

Examples

+
    +
  • drush generate service:twig-extension. Generates Twig extension service
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • twig-extension
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/service_uninstall-validator/index.html b/13.3.0/generators/service_uninstall-validator/index.html new file mode 100644 index 0000000000..c9c7dada73 --- /dev/null +++ b/13.3.0/generators/service_uninstall-validator/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + service:uninstall-validator - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

service:uninstall-validator

+

Generates a uninstall validator service

+

Examples

+
    +
  • drush generate service:uninstall-validator. Generates a uninstall validator service
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • uninstall-validator
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/services.yml/index.html b/13.3.0/generators/services.yml/index.html new file mode 100644 index 0000000000..a39376d88d --- /dev/null +++ b/13.3.0/generators/services.yml/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/services/index.html b/13.3.0/generators/services/index.html new file mode 100644 index 0000000000..a39376d88d --- /dev/null +++ b/13.3.0/generators/services/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/single-directory-component/index.html b/13.3.0/generators/single-directory-component/index.html new file mode 100644 index 0000000000..64a3b4182e --- /dev/null +++ b/13.3.0/generators/single-directory-component/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + single-directory-component - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

single-directory-component

+

Generates Drupal SDC theme component

+

Examples

+
    +
  • drush generate single-directory-component. Generates Drupal SDC theme component
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • sdc
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/symfony-command/index.html b/13.3.0/generators/symfony-command/index.html new file mode 100644 index 0000000000..39b1aee7aa --- /dev/null +++ b/13.3.0/generators/symfony-command/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/task-links/index.html b/13.3.0/generators/task-links/index.html new file mode 100644 index 0000000000..16e9bdfba3 --- /dev/null +++ b/13.3.0/generators/task-links/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/test_browser/index.html b/13.3.0/generators/test_browser/index.html new file mode 100644 index 0000000000..e0c736484a --- /dev/null +++ b/13.3.0/generators/test_browser/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + test:browser - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

test:browser

+

Generates a browser based test

+

Examples

+
    +
  • drush generate test:browser. Generates a browser based test
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • browser-test
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/test_kernel/index.html b/13.3.0/generators/test_kernel/index.html new file mode 100644 index 0000000000..b4dfc6c8d7 --- /dev/null +++ b/13.3.0/generators/test_kernel/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + test:kernel - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

test:kernel

+

Generates a kernel based test

+

Examples

+
    +
  • drush generate test:kernel. Generates a kernel based test
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • kernel-test
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/test_nightwatch/index.html b/13.3.0/generators/test_nightwatch/index.html new file mode 100644 index 0000000000..7ae6bb73c7 --- /dev/null +++ b/13.3.0/generators/test_nightwatch/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + test:nightwatch - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

test:nightwatch

+

Generates a nightwatch test

+

Examples

+
    +
  • drush generate test:nightwatch. Generates a nightwatch test
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • nightwatch-test
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/test_unit/index.html b/13.3.0/generators/test_unit/index.html new file mode 100644 index 0000000000..ebb1b92d82 --- /dev/null +++ b/13.3.0/generators/test_unit/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + test:unit - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

test:unit

+

Generates a unit test

+

Examples

+
    +
  • drush generate test:unit. Generates a unit test
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • unit-test
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/test_webdriver/index.html b/13.3.0/generators/test_webdriver/index.html new file mode 100644 index 0000000000..2a03af7800 --- /dev/null +++ b/13.3.0/generators/test_webdriver/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + test:webdriver - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

test:webdriver

+

Generates a test that supports JavaScript

+

Examples

+
    +
  • drush generate test:webdriver. Generates a test that supports JavaScript
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • webdriver-test
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/theme-libraries/index.html b/13.3.0/generators/theme-libraries/index.html new file mode 100644 index 0000000000..d2118ab3b7 --- /dev/null +++ b/13.3.0/generators/theme-libraries/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/theme-negotiator/index.html b/13.3.0/generators/theme-negotiator/index.html new file mode 100644 index 0000000000..e7b5938046 --- /dev/null +++ b/13.3.0/generators/theme-negotiator/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/theme/index.html b/13.3.0/generators/theme/index.html new file mode 100644 index 0000000000..a2821350ba --- /dev/null +++ b/13.3.0/generators/theme/index.html @@ -0,0 +1,5299 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + theme - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

theme

+

Generates Drupal theme

+

Examples

+
    +
  • drush generate theme. Generates Drupal theme
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ + + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/theme_settings/index.html b/13.3.0/generators/theme_settings/index.html new file mode 100644 index 0000000000..38f1644eb0 --- /dev/null +++ b/13.3.0/generators/theme_settings/index.html @@ -0,0 +1,5299 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + theme:settings - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

theme:settings

+

Generates Drupal theme-settings.php file

+

Examples

+
    +
  • drush generate theme:settings. Generates Drupal theme-settings.php file
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ + + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/twig-extension/index.html b/13.3.0/generators/twig-extension/index.html new file mode 100644 index 0000000000..4c7b22fefd --- /dev/null +++ b/13.3.0/generators/twig-extension/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/uninstall-validator/index.html b/13.3.0/generators/uninstall-validator/index.html new file mode 100644 index 0000000000..3241ab5ef0 --- /dev/null +++ b/13.3.0/generators/uninstall-validator/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/unit-test/index.html b/13.3.0/generators/unit-test/index.html new file mode 100644 index 0000000000..397bab9fe2 --- /dev/null +++ b/13.3.0/generators/unit-test/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/views-argument-default/index.html b/13.3.0/generators/views-argument-default/index.html new file mode 100644 index 0000000000..47d9eb907b --- /dev/null +++ b/13.3.0/generators/views-argument-default/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/views-field/index.html b/13.3.0/generators/views-field/index.html new file mode 100644 index 0000000000..0c6454cb02 --- /dev/null +++ b/13.3.0/generators/views-field/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/views-style/index.html b/13.3.0/generators/views-style/index.html new file mode 100644 index 0000000000..bb1929e978 --- /dev/null +++ b/13.3.0/generators/views-style/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/webdriver-test/index.html b/13.3.0/generators/webdriver-test/index.html new file mode 100644 index 0000000000..09a51462aa --- /dev/null +++ b/13.3.0/generators/webdriver-test/index.html @@ -0,0 +1,15 @@ + + + + + + Redirecting... + + + + + + +Redirecting... + + diff --git a/13.3.0/generators/yml_breakpoints/index.html b/13.3.0/generators/yml_breakpoints/index.html new file mode 100644 index 0000000000..583b514f9c --- /dev/null +++ b/13.3.0/generators/yml_breakpoints/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + yml:breakpoints - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

yml:breakpoints

+

Generates a breakpoints yml file

+

Examples

+
    +
  • drush generate yml:breakpoints. Generates a breakpoints yml file
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • breakpoints
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/yml_links_action/index.html b/13.3.0/generators/yml_links_action/index.html new file mode 100644 index 0000000000..915e632170 --- /dev/null +++ b/13.3.0/generators/yml_links_action/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + yml:links:action - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

yml:links:action

+

Generates a links.action yml file

+

Examples

+
    +
  • drush generate yml:links:action. Generates a links.action yml file
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • action-links
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/yml_links_contextual/index.html b/13.3.0/generators/yml_links_contextual/index.html new file mode 100644 index 0000000000..b26b415f50 --- /dev/null +++ b/13.3.0/generators/yml_links_contextual/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + yml:links:contextual - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

yml:links:contextual

+

Generates links.contextual yml file

+

Examples

+
    +
  • drush generate yml:links:contextual. Generates links.contextual yml file
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • contextual-links
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/yml_links_menu/index.html b/13.3.0/generators/yml_links_menu/index.html new file mode 100644 index 0000000000..cc529d58c8 --- /dev/null +++ b/13.3.0/generators/yml_links_menu/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + yml:links:menu - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

yml:links:menu

+

Generates a links.menu yml file

+

Examples

+
    +
  • drush generate yml:links:menu. Generates a links.menu yml file
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • menu-links
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/yml_links_task/index.html b/13.3.0/generators/yml_links_task/index.html new file mode 100644 index 0000000000..44e6dcbe0b --- /dev/null +++ b/13.3.0/generators/yml_links_task/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + yml:links:task - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

yml:links:task

+

Generates a links.task yml file

+

Examples

+
    +
  • drush generate yml:links:task. Generates a links.task yml file
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • task-links
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/yml_migration/index.html b/13.3.0/generators/yml_migration/index.html new file mode 100644 index 0000000000..adc1c9c2a4 --- /dev/null +++ b/13.3.0/generators/yml_migration/index.html @@ -0,0 +1,5311 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + yml:migration - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

yml:migration

+

Generates a migration yml file

+

Examples

+
    +
  • drush generate yml:migration. Generates a migration yml file
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • migration
  • +
  • migration.yml
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/yml_module-libraries/index.html b/13.3.0/generators/yml_module-libraries/index.html new file mode 100644 index 0000000000..926ef0cd5e --- /dev/null +++ b/13.3.0/generators/yml_module-libraries/index.html @@ -0,0 +1,5310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + yml:module-libraries - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

yml:module-libraries

+

Generates module libraries yml file

+

Examples

+
    +
  • drush generate yml:module-libraries. Generates module libraries yml file
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • module-libraries
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/yml_permissions/index.html b/13.3.0/generators/yml_permissions/index.html new file mode 100644 index 0000000000..f5a875c1c2 --- /dev/null +++ b/13.3.0/generators/yml_permissions/index.html @@ -0,0 +1,5311 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + yml:permissions - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

yml:permissions

+

Generates a permissions yml file

+

Examples

+
    +
  • drush generate yml:permissions. Generates a permissions yml file
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • permissions
  • +
  • permissions.yml
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/yml_routing/index.html b/13.3.0/generators/yml_routing/index.html new file mode 100644 index 0000000000..c442fcb965 --- /dev/null +++ b/13.3.0/generators/yml_routing/index.html @@ -0,0 +1,5311 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + yml:routing - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

yml:routing

+

Generates a routing yml file

+

Examples

+
    +
  • drush generate yml:routing. Generates a routing yml file
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • routing
  • +
  • routing.yml
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/yml_services/index.html b/13.3.0/generators/yml_services/index.html new file mode 100644 index 0000000000..d7ffd89123 --- /dev/null +++ b/13.3.0/generators/yml_services/index.html @@ -0,0 +1,5311 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + yml:services - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

yml:services

+

Generates a services yml file

+

Examples

+
    +
  • drush generate yml:services. Generates a services yml file
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • services
  • +
  • services.yml
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/generators/yml_theme-libraries/index.html b/13.3.0/generators/yml_theme-libraries/index.html new file mode 100644 index 0000000000..53bee7fb5a --- /dev/null +++ b/13.3.0/generators/yml_theme-libraries/index.html @@ -0,0 +1,5308 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + yml:theme-libraries - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + +

yml:theme-libraries

+

Generates theme libraries yml file

+

Examples

+
    +
  • drush generate yml:theme-libraries. Generates theme libraries yml file
  • +
+

Options

+
    +
  • --answer=ANSWER. Answer to generator question.
  • +
  • --destination=DESTINATION. Path to a base directory for file writing.
  • +
  • --dry-run. Output the generated code but not save it to file system.
  • +
+

Topics

+ +

Aliases

+
    +
  • theme-libraries
  • +
+ + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/hooks/index.html b/13.3.0/hooks/index.html new file mode 100644 index 0000000000..fa261cc63d --- /dev/null +++ b/13.3.0/hooks/index.html @@ -0,0 +1,5358 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hooks - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

Hooks

+ +

Core Hooks

+

All commandfiles may implement methods that are called by Drush at various times in the request cycle. To implement one, add a #[CLI\Hook(type: HookManager::ARGUMENT_VALIDATOR, target: 'pm:install')] (for example) to the top of your method. The class constants for hooks are located in HookManager.

+ +

Custom Hooks

+

Drush commands can define custom events that other command files can hook. You can find examples in CacheCommands and SanitizeCommands

+

First, the command must implement CustomEventAwareInterface and use CustomEventAwareTrait, as described in the dependency injection documentation.

+

Then, the command may ask the provided hook manager to return a list of handlers with a certain attribute. In the example below, the my-event label is used: +

    /**
+     * This command uses a custom event 'my-event' to collect data.  Note that
+     * the event handlers will not be found unless the hook manager is
+     * injected into this command handler object via `setHookManager()`
+     * (defined in CustomEventAwareTrait).
+     */
+    #[CLI\Command(name: 'example:command')]  
+    public function exampleCommand()
+    {
+        $myEventHandlers = $this->getCustomEventHandlers('my-event');
+        $result = [];
+        foreach ($myEventHandlers as $handler) {
+            $result[] = $handler();
+        }
+        sort($result);
+        return implode(',', $result);
+    }
+

+

Other commandfiles may provide implementations via a PHP8 Attribute or an Annotation.

+
+
+
+
/**
+ * #[CLI\Hook(type: HookManager::ON_EVENT, target: 'my-event')]
+ */
+public function hookOne()
+{
+    return 'one';
+}
+
+
+
+
/**
+ * @hook on-event my-event
+ */
+public function hookOne()
+{
+    return 'one';
+}
+
+
+
+
+ +
+
+ + + Last update: + March 12, 2024 + + + +
+ + + + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/img/favicon.ico b/13.3.0/img/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..8b2ee334fd28f71fb22eea9c63119f0ebb74596d GIT binary patch literal 1150 zcmZvaX-pGA6vu~nkQfuhit!5NP~+y^$YkKLwz5Foz0CNoope(!a@)h9!hN}LPCWo zE3=@ovH~SWBg9d2F;fr#fB*5Q-&fPf^Q?V%&2f7F1_NTEBM}`P1%)C5t5>f=Vq!d& zEYU(PmvOb(SY+s&;g4@$NBHu+-7S0c^!seSe31;JqoXtoIGs)$InsdQ;v#f)-GIyG zLd~Y~4xWAT;I77g_&~iWN9{^U7K33HA}dP`x7*F}e2u22;~dMrTh^@_{qe&+kuFJn zWuZ$VN#eM)G$~}Vbo#Gy*lbnk>FI&P;ebk|L_$J5(q(CAXlOu8R0I@^`2DsD^EvyL zJl9H%0-4eUP-HAZW~K^iwVEmuN~Mykm71E0-BX1Dx{~UaeGLNkHyv2^CiCgv-@o&oAZ|kM7^d^}YK%>uYIGCidQJt+g5po~~G|>c4%pqrf-ryZ$97#6$IVHX(QXsK))# SZff~4=J)>_XBp2fLVg3mb7kQG literal 0 HcmV?d00001 diff --git a/13.3.0/index.html b/13.3.0/index.html new file mode 100644 index 0000000000..b70259c9b8 --- /dev/null +++ b/13.3.0/index.html @@ -0,0 +1,5365 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

Home

+ +

Drush is a command line shell and Unix scripting interface for Drupal. Drush core ships with lots of useful commands and generators. Similarly, it runs update.php, executes SQL queries, runs content migrations, and misc utilities like cron or cache rebuild. Drush can be extended by 3rd party commandfiles.

+

Latest Stable Version Total Downloads License Twitter

+

Resources

+ +

Support

+ +

FAQ

+

What does Drush stand for?

+

A: The Drupal Shell.

+

How do I pronounce Drush?

+

Some people pronounce the dru with a long 'u' like Drupal. Fidelity points +go to them, but they are in the minority. Most pronounce Drush so that it +rhymes with hush, rush, flush, etc. This is the preferred pronunciation.

+

Credits

+ +

Drush Logo +PhpStorm Logo

+ +
+
+ + + Last update: + February 20, 2023 + + + +
+ + + + + + + + +
+ + Authors: Moshe Weitzman + +
+ + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/install/index.html b/13.3.0/install/index.html new file mode 100644 index 0000000000..f318bfb711 --- /dev/null +++ b/13.3.0/install/index.html @@ -0,0 +1,5404 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Install - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

Install

+ +
+

Tip

+

Drush only supports one install method. It requires that your Drupal site be built with Composer and Drush be listed as a dependency.

+

See the Drush 8 or Drush 9 docs for installing prior versions of Drush.

+
+
    +
  1. Composer. It is required that Drupal sites be built using Composer, with Drush listed as a dependency. See recommended-project (Drush must be added). If your Composer project doesn't yet depend on Drush, run composer require drush/drush to add it.
  2. +
  3. Execution. Change to the project root, and call Drush via vendor/bin/drush. To simplify things, add ./vendor/bin to your $PATH, allowing you to call Drush via drush from the project root. If you have only one Drupal codebase on your system, you may put /path/to/vendor/bin in your $PATH; now you can call Drush from everywhere, without having to change to project root.
  4. +
  5. Completion. Optional. Append to .bashrc or equivalent for ZSH or Fish shell. Run drush completion --help for more details.
  6. +
  7. Multiple Codebases. Optional. If using the bash shell, consider installing the fd project, a small set of scripts that make it easier to switch between different project directories quickly, with type completion.
  8. +
+
+

Note

+ +
+

Drupal Compatibility

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Drush Version PHP Version End Of Life Drupal versions
7 8 9 10 11
Drush 13 8.3+ TBD ✓ 10.2+
Drush 12 8.1+ TBD
Drush 11 7.4+ Nov 2023
Drush 10 7.1+ (not 8) Jan 2022
Drush 9 5.6+ May 2020
Drush 8 5.4.5+ Jan 2025 ✓️
Drush 7 5.3.0+ Jul 2017
Drush 6 5.3.0+ Dec 2015
Drush 5 5.2.0+ May 2015
+ + + + + + + + + + + + +
Legend
Supported and recommended
Compatible but no longer supported
+ +
+
+ + + Last update: + April 24, 2024 + + + +
+ + + + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/io/index.html b/13.3.0/io/index.html new file mode 100644 index 0000000000..16759ef3d2 --- /dev/null +++ b/13.3.0/io/index.html @@ -0,0 +1,5312 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Input / Output - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

Input / Output

+
    +
  • The Input object holds information about the request such option and argument values. You may need to this information when coding a hook implementation. You don't need this object in your command callback method since these values are passed as parameters.
  • +
  • The Output object is rarely needed. Instead, return an object that gets formatted via the Output Formatter system. If you want to send additional output, use the io system (see below).
  • +
+

The io() system

+
    +
  • If you need to ask the user a question, or print non-object content, use the io() system.
  • +
  • A command callback gets access via $this->io().
  • +
  • The main methods for gathering user input are $this->io()->select() and $this->io()->confirm(). See Laravel Prompts for other methods.
  • +
  • You may use any of the methods described in the Symfony Style docs.
  • +
+ +
+
+ + + Last update: + February 4, 2024 + + + +
+ + + + + + + + +
+ + Authors: Greg Anderson, Moshe Weitzman + +
+ + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/migrate/index.html b/13.3.0/migrate/index.html new file mode 100644 index 0000000000..fb10a81444 --- /dev/null +++ b/13.3.0/migrate/index.html @@ -0,0 +1,5324 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Migrate - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

Defining and running migrations

+

10.4+

+

The Migrate API delivers services for migrating data from a source system to Drupal. This API is provided by the core migrate module. In order to migrate data to Drupal, you'll need to create migrations for each type of destination data.

+

These commands are an alternative to https://www.drupal.org/project/migrate_tools. Don't use that module if you use these commands.

+

Defining migrations

+

Learn how to create migrations from the Drupal official documentation:

+ +

Running migrations

+

Drush provides a set of commands that allows to run migration operations such as importing, checking the current status of migrations, rolling-back migrations, stopping an ongoing migration, etc. Such commands are available only when the migrate module is enabled. In order the get a full list of migrate commands, type:

+
drush --filter=migrate
+
+

To get help on each command run drush with the command name as parameter and the --help option. For example next command will show details about the migrate:import Drush command:

+
drush migrate:import --help
+
+ +
+
+ + + Last update: + December 7, 2021 + + + +
+ + + + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/misc/icon_PhpStorm.png b/13.3.0/misc/icon_PhpStorm.png new file mode 100644 index 0000000000000000000000000000000000000000..698923d114b178270922911600ad05454f5f6aec GIT binary patch literal 5300 zcmV;l6ie%gP)5^@KWw+O1=Q9~X+=Sb?5F~gKyXrM ztB4jmAc6WJ`K+o)tyFTfRFx`GjN=d>_D<*Bow=Kto!OoJI`1X>O3Tgd-R*^YpLyQr zednDuLK&FT_u~p2sIc4{PT%=IDbt5Vga`njL6189k`wfK9WUOsQ2gZQFaXv)=g-rN zR=qPs`6BmuogM&$B^Mlvchw6woHGEJnx{_gmoKaZfoRJN6el=1C@7W-*K`;FsPkv& z!!QyYFJC+q2%D^L2r@Br082Cq_vHWpYuoqHSx;u9 zi%LL96$GZxvA~$32p#PNz}fBlYV-ngNaIKy8<;}^N$dZop$N<(bYum9v)g|PN*_dD z*)*Fo4hgolz?dS{(DBU9w`$1Cc3i!(>$ywo=M4bfqt3^!^HJH#vF!;7Z3`XL`5<;@ z3_68_t)WGQ!2!iwV zv$;b;f@poZ$|Q9>upWrr{x&dCgXVne>0LvdcFhQL?4vq(Blw8NlW4*JYhlB*x!_>n7b$*r2{7Me> z8-U;#1;a$90C?m2$LOqgW`dlbC?w=h7r0@7IbXcB|31LWBOk@`ymKmI&Oso&xtKpV%L4GXIO#+fIwyg z?7kaIKp;(i$%+mBx%q>`9pHG;_R?cE)e!Ld4aX|fiHnrh%O#28-MOwEOCf=UgH8(x zf4%5Nbh78eomkN8iz^I$A>g$ee_f`ooufyYFuHdb-4nyugMu)|T^WZ2Jv5To(j_}O z)%lzSk~6@opE&Lodgv^!dTAbEvzxk=j|rRk&6#e;3VF>E&f-nz&s%OrZ(MK%>R^j4 z1|!6pFy_R0Af>ZoDQXy?{c9Hq29RYF|EdG5qQ7$_OWUP!PNimgx*htksu3E*^?`M?0@m_-(Y-G901~m8lpkwFI9m;AFwqC5=77CksV?{P(U=SiZ$zi8`%r5_t|1oR9PlCtA?7 z#)aiu43?;)8bqDZ%`~q|8q4ZlUK=n0sIazMl`Ujhh5+2Pq@Ueg(pa9|rjStbU8Ask zvjEiqxbDy0?Pj+Onl8EcQ)qyVv>Iz#zy~?i8gCtjmJW9|rUxAt+1m#)Y-l@lX*X-cdbvbGR6E8$zf9 z8;FpqSK;#-KoDk49)wi}-LY2z1h=}CLTCU%PIK%Pj_7N`xFcnBwTjB+GV1T|Z=PFN zSdbp`k%Q&UsYY>#390Qlb7 z+1bniKrEc@F}ehnkvooWnGMze*eeFf;*a$J@P<%rmf$ZIsY0=BvX{=<@$qqV^5jWW ztJzgUhlht<7K-b94xpKt8ML^#nCLo@;=AB@A~wtluiJ`2*Fyu(UtM>^rVqnd7JqD= zU(FJ5D|^_8G!TF=H#g_b>M+U&$A!^-6d(YY!oD}M^Ret$B&?;1uOrp*uuAJ4)x)>0 zR09FPSfI|GYV7{8?Fke>vr#rWI_l1F6G*`Moucl=*-n(%uB3k4>8@yZTF>`}0)V({ z0$tkfA6-aru-x&Z8*g+e7@S0YGPbow%tT%j1#P{R4#o2RXj( zA6_qTUsJ{&P>74bxCZKaY;4R(;X8KhaK&EOOolK3*Wr$V_Xm9j-ZwBXU`+4eJ9)Y& z8e|_?)CfeUN@6eYx!gR214zbZz6+7q5?%2EvaCj+(fCQsAAaY6M5pzw)_39GsRunRl__4oDlWitDpzGX#qWGf?(G6d`sff{z`8-DhZ zx>f_+{=3WSex>g(?FM!K5G1sQvvJl2&IP&-vMBN1wy?ti3g5qH&z?-2k60`xqOjx7 zn<5W;hb;P<`askI>l!gA?+bu1Ag=ad!NI2PAI);H2$XhMnDBydVQYhfgOR=)m?g_< zpw5x1u6q_?cCul`ft8go!)c0YG42w0=SxNB1|al+O&)*T|@0KNXvpu%;&*i z@g{0{8PY#s1Xyc;1IFzDgJ1M9ha#lRY!(`@dR}A$_Po?$0SN$i9N)qi04r1@?h&+T z6K~^U5X9`TG*HdYLAWK!*}?I^1^|Sli%C`?0O>_ti{fRPcO)jj%6U%=-v9Zx%RT@w z9Z*+`39XReZy6`r-N4!R1On{?Er-?gf&O)r52;%k;*r-CfDzJKSW*i?j-JXj6fX%r z4I4CBqA3QuHHd4__f#?O@&S|(R`(^Cm59A_yo1Q?8iG0?Zgmj3*CNRrY%19BjvX5_ zRTDuAK=B3?KZw4h28;k;fZ9NsHGy^PukJZmt^o4a9r2vFUZ93`p)%+z)*iZTWr8|? zobS}SRv zd_6vk{yd%v!cubB3gb z_Z(qeLrDOT<)REYkJk`jMuStM7*rR70FY)XcmZXBEoUhRHkAYbV86Q8q7vT# zEPyPXZwvunefE<2{#~mrTIZCnhJ+^Nn?pk0oDU8Tavrb%-!s59RM4_^N6 zI{J4{m+SNpnzwSk5db_BpdPG(z-x*=ro}EWuH-guEHVbV&OE2x-P@C=#W)2qaQJQJ5CQ;HF>}uyTHI z2*6$@pf)3rh#?`b#@o8#h+6AcSp}+)ne7S^3q1n6UiJ2RV&?~nz^@&9O)t2Z( zp3-mK4TLD7kO7C-X8}R&+-b+rARxfOYyD8+1MwFm0O8*TpE-8ySR(LPhXCYX3f{6t z(8csv?Z&a4k5I_H)qhqyy+|Ed6?+3p$gn8Hvjimf5Zw9OEvQpXw~egbw}^qAL2`+= z#k8lW^IyHVIfqB6^Jk-8zdHnd4W0_h3?Kl4r+X3u2(NXp!Ax%#69r^r{w^OD5_;FY zg`(5lIF|DRH2~8AOTJwwn$8q)Ym)enbvoPsxiGcUN7VyYomp$db$%!Syk%h-d45qC zkOdU}%OnjHCmChh%Klxe!`T1;vtkg^WC2LY0t{I~VJVA1pD1*H@9|6kF!uCC3Ik|1 zCI*BAQur^G5TNVkQEmoRd31L?76@Ihbyz{jNBI^Z!NCOuq!R+PZQYU{puhdp!-K2k z)Byn7#pESk1LY%sVW?n$G#J1i_YHagZUZx#1p_Qev~C*`iYy=l5oi{Jj1l%eR6AWx znE_ZPAX2_%NGKQ}r8+>sqap?)vp~rLfel|4UZZiP(oX}Oa8L~Y=yPvZQUidS z2_Vgl3Xr*5xX=I@6oUMsPe}`D1CNTg!Dq>*(X(&G+BovmS2#i=6WK2<+_~M!2!~k#$ zLh3zhO<4dcG(egFP-l6J!>9$i?WqVa5khJ%V)!;Np*763jXcQ0Zrz@hCEZrOF(Cja z(F2uled)~TeFuA{V*>y(0nENk+A}BtLbHuLz+e+*8h7Z5YPPqc&s`drOb?9T`{j3L zfAGZS<#-_gvwH`rSpY7wfOe#T4vt+G=I6BwMb-d#;PK6MN0$XC2vlD$EL{<(T@|zh z1^n@-Z`}D#ITiqz)qPojS{On_7LY|9AaIr=i{)bP0OyY<0YF1lrePtWux#r97EK~* zI3A@eP>BnGC8ahH8WMsGcG9}r$l82#iU2gGfiXa#*m&#^5JXYBkWg4k8o(kA4AKK? z0>)V&RtN|}sTvXrODP0IIGo^H#BrO641fn|CJ>ym6j?y(X<(d`PdEaspRz!Ichr9n z1p$u1Vui(K0R1A56Fu(hY`j$b#GRc629;nEi=c@>RxOI0IaiyXLh~? zt<0l&orR{ti({eIBb|@g18AW8N$Py#?aT7U0IzlOER2(?nL2s{TfULB6-?)RE!}ql z0CLx+rh%HY5dJvdAU)u*oYnVanX1J+zd)}) z_WgrBnbt-+s%eXXVTgetRmJb5?92ppfMtmD-#ged+m7F~BfIt}5XuY$gGs><7PEbh zPFU;-0g+qG`R<{fwuQcqZ`%~W0DrT+8rAu6X1O&0?5_=UKQei!r|kmxoa)=9V5l%K z4B3Do?b59ip>>;`hy9jgEI{ zfC7f9ARa5BvpEUvho4`d*B|-z;r7%0c?$s1enr7R9XdoEI}BTCh-mwFtv12H9&O6PlTg3E z`$+!iz5qZ1`^E0n3UzdiI(LWyplVY0Uq6yxy4TtN1sDKkxKgcM$Zqri0000x literal 0 HcmV?d00001 diff --git a/13.3.0/output-formats-filters/index.html b/13.3.0/output-formats-filters/index.html new file mode 100644 index 0000000000..f377271419 --- /dev/null +++ b/13.3.0/output-formats-filters/index.html @@ -0,0 +1,5469 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Output Formats, Fields & Filters - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

Output Formats, Fields and Filters

+

Drush utilizes a powerful formatting and filtering system that provides the user with a lot of control over how output from various commands is rendered.

+
    +
  • Output formats may be used to select the data type used to print the output. For example, many commands allow the user to select between a human-readable table, or various machine-parsable formats such as yaml and json.
  • +
  • Output fields may be used to select and order the data columns.
  • +
  • Output filters may be used to limit which data rows are printed based on logical expressions.
  • +
+

Output Formats

+

The --format option may be used to select the data format used to print the output of a command. Most commands that produce informative output about some object or system can transform their data into different formats. For example, the version command may be printed in a human-readable table (the default), or in a json array: +

$ drush version
+ Drush version : 10.3.1
+$ drush version --format=json
+{
+    "drush-version": "10.3.1"
+}
+
+The available output formats are shown in the help for each command: +
$ drush help version
+Show drush version.
+
+Options:
+ --format=<json>    Select output format. Available: json, string, var_export, yaml. Default is key-value.
+

+

Output Fields

+

If you wish to limit the number of columns produced by a command, use the --fields option. List the field names in the order they should be displayed: +

$ drush views:list --fields=machine-name,status
++-------------------+----------+
+| Machine name      | Status   |
++-------------------+----------+
+| block_content     | Enabled  |
+| comment           | Enabled  |
+| comments_recent   | Enabled  |
+| content           | Enabled  |
+| content_recent    | Enabled  |
+| files             | Enabled  |
+| frontpage         | Enabled  |
+| taxonomy_term     | Enabled  |
+| user_admin_people | Enabled  |
+| watchdog          | Enabled  |
+| who_s_new         | Enabled  |
+| who_s_online      | Enabled  |
+| archive           | Disabled |
+| glossary          | Disabled |
++-------------------+----------+
+
+The available field names are shown in the help text: +
$ drush help views:list
+Get a list of all views in the system.
+
+Options:
+  --fields=FIELDS   Available fields: Machine name (machine-name),     
+                    Name (label), Description (description), Status    
+                    (status), Tag (tag) [default:                      
+                    "machine-name,label,description,status"]           
+
+Fields may be named either using their human-readable name, or via their machine name.

+

Note also that some commands do not display all of their available data columns by default. To show all available fields, use --fields=*

+

There is also a singular form --field available. If this form is used, it will also force the output format to string. +

$ drush views:list --field=machine-name 
+block_content
+comment
+comments_recent
+content
+content_recent
+files
+frontpage
+taxonomy_term
+user_admin_people
+watchdog
+who_s_new
+who_s_online
+archive
+glossary
+

+

Output Filters

+

A number of Drush commands that output tabular data support a --filter option that allows rows from the output to be selected with simple logic expressions.

+

In its simplest form, the --filter option takes a string that indicates the value to filter by in the command's default filter field. For example, the role:list command specifies perms as its default filter; the output of the role:list command may be limited to only those roles that have a specified permission: +

$ drush role:list --filter='post comments'
+authenticated:
+  label: 'Authenticated user'
+  perms:
+    - 'access comments'
+    - 'access content'
+    - 'access shortcuts'
+    - 'access site-wide contact form'
+    - 'access user contact forms'
+    - 'post comments'
+    - 'search content'
+    - 'skip comment approval'
+    - 'use text format basic_html'
+
+Note that not all commands have a default filter field.

+

Other fields in the output may be searched by using a simple expression in the --filter term. For example, to list only the enabled extensions with the pm:list command, you could run: +

$ drush pm:list --filter='status=enabled'
+
+To search for fields that contain a string using the operator *=, or match a regular expression with the ~= operator. For example, to find all views whose machine name contains the word content: +
drush views:list --filter='machine-name*=content'
+
+To use a regular expression to find any core requirement notice whose title contains either php or gd +
drush core:requirements --filter='title~=#(php|gd)#i'
+
+Finally, filter expressions may also use logical-and (&&) or logical-or (||) operations to separate multiple terms. Parenthesis are not supported. For example, to search both the title and severity fields in the core:requirements command: +
drush core:requirements --filter='title~=#(php|gd)#i&&severity=warning'
+

+

The = and *= operators always use case-insensitive comparisons. The ~= operator is case-sensitive, unless the i PCRE modifier is used, as shown in the previous example.

+

Comparison of Filters with Grep

+

Using the --filter feature is similar to using grep. The main difference is that the filter feature does a semantic search, which is to say that it explicitly compares against the data in specific fields. In comparison, the grep command does a line-based search.

+

Show only results where the severity is warning:

+

drush core:requirements --filter='severity=warning'

+

Show only lines that contain the string warning (either in the severity field, or somewhere else on the line):

+

drush core:requirements | grep -i warning

+

The table below compares and contrasts the two ways of searching.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Feature--filtergrep
Regular expressionsYes, with ~=Yes
Word-wrapped field dataSearched correctlyMight cause false negative
Search just one fieldYesMight get false positives
Search multiple fieldsYes, with ||/&&Yes (line-based searching)
Searching hides headerNoYes (unless it matches)
+ +
+
+ + + Last update: + February 6, 2021 + + + +
+ + + + + + + + +
+ + Authors: Greg Anderson, Moshe Weitzman + +
+ + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/overrides/main.html b/13.3.0/overrides/main.html new file mode 100644 index 0000000000..40bad40486 --- /dev/null +++ b/13.3.0/overrides/main.html @@ -0,0 +1,57 @@ +{% extends "base.html" %} + +{% block extrahead %} + + + {% set title = config.site_name %} + {% if page and page.meta and page.meta.title %} + {% set title = config.site_name ~ " - " ~ page.meta.title %} + {% elif page and page.title and not page.is_homepage %} + {% set title = config.site_name ~ " - " ~ page.title | striptags %} + {% endif %} + + + + + + + + + + {% set title = config.site_name %} + {% if page and page.meta and page.meta.title %} + {% set title = config.site_name ~ " - " ~ page.meta.title %} + {% elif page and page.title and not page.is_homepage %} + {% set title = config.site_name ~ " - " ~ page.title | striptags %} + {% endif %} + + + + + + +{% endblock %} + + +{% block content %} + {{ super() }} + + {% if git_page_authors %} +
+ + Authors: {{ git_page_authors | default('enable mkdocs-git-authors-plugin') }} + +
+ {% endif %} +{% endblock %} + +{% block disqus %} + +
+ +{% endblock %} diff --git a/13.3.0/overrides/partials/tabs.html b/13.3.0/overrides/partials/tabs.html new file mode 100644 index 0000000000..ed236c6f1b --- /dev/null +++ b/13.3.0/overrides/partials/tabs.html @@ -0,0 +1,47 @@ + + + +{% set class = "" %} + + + diff --git a/13.3.0/repl/index.html b/13.3.0/repl/index.html new file mode 100644 index 0000000000..06011cceed --- /dev/null +++ b/13.3.0/repl/index.html @@ -0,0 +1,5267 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + REPL (a custom shell for Drupal) - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

REPL (a custom shell for Drupal)

+ +

The php:cli command is interactive PHP REPL with your bootstrapped site (remote or local). It’s a Drupal code playground. You can do quick code experimentation, grab some data, or run Drush commands. This can also help with debugging certain issues. See this blog post for an introduction. Run help for a list of commands.

+

Any global PsySH configuration is loaded by Drush. If you prefer a config file that is specific to the project (and can be checked in with other source code), set the environment variable PSYSH_CONFIG=</path/to/config-file>. This file then takes precedence over any global file.

+

Entity classes are available without their namespace. For example, Node::load() works instead of Drupal\Node\entity\Noad::load().

+ +
+
+ + + Last update: + August 22, 2023 + + + +
+ + + + + + + + +
+ + Authors: Moshe Weitzman, chx + +
+ + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/search/search_index.json b/13.3.0/search/search_index.json new file mode 100644 index 0000000000..2e648909f6 --- /dev/null +++ b/13.3.0/search/search_index.json @@ -0,0 +1 @@ +{"config":{"lang":["en"],"separator":"[\\s\\-]+","pipeline":["stopWordFilter"]},"docs":[{"location":"","title":"Home","text":"

Drush is a command line shell and Unix scripting interface for Drupal. Drush core ships with lots of useful commands and generators. Similarly, it runs update.php, executes SQL queries, runs content migrations, and misc utilities like cron or cache rebuild. Drush can be extended by 3rd party commandfiles.

"},{"location":"#resources","title":"Resources","text":"
  • Installing and Upgrading
  • Commands and Generators
  • API Documentation
  • Drush packages available via Composer
  • A list of modules that include Drush integration
  • Drush expects all participants to abide by the Drupal Code of Conduct.
  • Drush 8 is no longer recommended, but here are its docs.
"},{"location":"#support","title":"Support","text":"
  • Post support requests to Drupal Answers. Tag question with drush.
  • Report bugs and request features in the GitHub Drush Issue Queue.
  • Use pull requests (PRs) to contribute to Drush. Guidelines.
"},{"location":"#faq","title":"FAQ","text":""},{"location":"#what-does-drush-stand-for","title":"What does Drush stand for?","text":"

A: The Drupal Shell.

"},{"location":"#how-do-i-pronounce-drush","title":"How do I pronounce Drush?","text":"

Some people pronounce the dru with a long 'u' like Drupal. Fidelity points go to them, but they are in the minority. Most pronounce Drush so that it rhymes with hush, rush, flush, etc. This is the preferred pronunciation.

"},{"location":"#credits","title":"Credits","text":"
  • Maintained by Moshe Weitzman with much help from the folks listed at https://github.com/orgs/drush-ops/people.
  • Originally developed by Arto Bendiken for Drupal 4.7.
  • Redesigned by Franz Heinzmann in May 2007 for Drupal 5.
  • Thanks to JetBrains for supporting this project and open source software.
"},{"location":"bootstrap/","title":"The Drush Bootstrap Process","text":"

When preparing to run a command, Drush works by bootstrapping the Drupal environment in very much the same way that is done during a normal page request from the web server, so most Drush commands run in the context of a fully-initialized website.

For efficiency and convenience, some Drush commands can work without first bootstrapping a Drupal site, or by only partially bootstrapping a site. This is faster than a full bootstrap. It is also a matter of convenience, because some commands are useful even when you don't have a working Drupal site.

Commands may specify their bootstrap level with via an attribute or an annotation. Commands supplied by Drupal modules are always full.

PHP8 AttributeAnnotation
use Drush\\Attributes as CLI;\n\n#[CLI\\Bootstrap(level: DrupalBootLevels::NONE)]\npublic function fetch($search = null, $options = ['image-viewer' => 'open', 'google-custom-search-api-key' => 'AIza']) {\n    $this->doFetch($search, $options);\n}\n
/**\n * @bootstrap none\n*/\npublic function fetch($search = null, $options = ['image-viewer' => 'open', 'google-custom-search-api-key' => 'AIza']) {\n    $this->doFetch($search, $options);\n}\n

Prior to bootstrapping, Drush goes through the preflight process, where the following things occur:

Preflight

  1. Commandline arguments are parsed.
  2. Configuration files are read.
  3. The site-alias included on the commandline is loaded if present.
  4. The local selected site is determined, if any.
  5. Dependency injection is done.
  6. Global commandfiles are loaded. Commandfiles that ship with modules are loaded later, during bootstrap @full.
  7. The command is dispatched via the Symfony Console component.

Bootstrapping is done from a Symfony Console command hook. The different bootstrap levels are described below.

"},{"location":"bootstrap/#none","title":"none","text":"

Only run Drush preflight, without considering Drupal at all. Any code that operates on the Drush installation, and not specifically any Drupal directory, should bootstrap to this phase. This Attribute and value may also be used on a command class when it wants to load before Drupal bootstrap is started. Commands that ship inside Drupal modules always bootstrap to full, regardless of none value.

"},{"location":"bootstrap/#root","title":"root","text":"

Set up and test for a valid Drupal root. The root is usually discovered via the Composer Runtime API, looking for the path of the__drupal/core__ package. Any code that interacts with an entire Drupal installation, and not a specific site on the Drupal installation should use this bootstrap phase.

"},{"location":"bootstrap/#site","title":"site","text":"

Set up a Drupal site directory and the correct environment variables to allow Drupal to find the configuration file. If no site is specified with the --uri options, Drush will assume the site is 'default', which mimics Drupal's behaviour. Note that it is necessary to specify a full URI, e.g. --uri=http://example.com, in order for certain Drush commands and Drupal modules to behave correctly. See the Drush configuration for more information. Any code that needs to modify or interact with a specific Drupal site's settings.php file should bootstrap to this phase.

"},{"location":"bootstrap/#configuration","title":"configuration","text":"

Load the settings from the Drupal sites directory. This phase is analogous to the DRUPAL_BOOTSTRAP_CONFIGURATION bootstrap phase in Drupal itself, and this is also the first step where Drupal specific code is included. This phase is commonly used for code that interacts with the Drupal install API, as both install.php and update.php start at this phase.

"},{"location":"bootstrap/#database","title":"database","text":"

Connect to the Drupal database using the database credentials loaded during the previous bootstrap phase. This phase is analogous to the DRUPAL_BOOTSTRAP_DATABASE bootstrap phase in Drupal. Any code that needs to interact with the Drupal database API needs to be bootstrapped to at least this phase.

"},{"location":"bootstrap/#full","title":"full","text":"

Fully initialize Drupal. This is analogous to the DRUPAL_BOOTSTRAP_FULL bootstrap phase in Drupal. Any code that interacts with the general Drupal API should be bootstrapped to this phase.

"},{"location":"bootstrap/#max","title":"max","text":"

This is not an actual bootstrap phase. Commands that use the \"max\" bootstrap level will cause Drush to bootstrap as far as possible, and then run the command regardless of the bootstrap phase that was reached. This is useful for Drush commands that work without a bootstrapped site, but that provide additional information or capabilities in the presence of a bootstrapped site. For example, drush status will show progressively more information the farther the site bootstraps.

"},{"location":"commands/","title":"Creating Custom Commands","text":"

Tip

  1. Drush 13 expects commandfiles to use the AutowireTrait to inject Drupal and Drush dependencies. Prior versions used a drush.services.yml file which is now deprecated and will be removed in Drush 14.
  2. Drush 12 expects all commandfiles in the <module-name>/src/Drush/<Commands|Generators> directory. The Drush subdirectory is a new requirement.

Creating a new Drush command is easy. Follow the steps below.

  1. Run drush generate drush:command-file.
  2. Drush will prompt for the machine name of the module that should own the file. The module selected must already exist and be enabled. Use drush generate module to create a new module.
  3. Drush will then report that it created a commandfile. Edit as needed.
  4. Use the classes for the core Drush commands at /src/Commands as inspiration and documentation.
  5. You may inject dependencies into a command instance.
  6. Write PHPUnit tests based on Drush Test Traits.
"},{"location":"commands/#attributes-or-annotations","title":"Attributes or Annotations","text":"

The following are both valid ways to declare a command:

PHP8 AttributesAnnotations
use Drush\\Attributes as CLI;\n\n/**\n * Retrieve and display xkcd cartoons (attribute variant).\n */\n#[CLI\\Command(name: 'xkcd:fetch-attributes', aliases: ['xkcd-attributes'])]\n#[CLI\\Argument(name: 'search', description: 'Optional argument to retrieve the cartoons matching an index, keyword, or \"random\".')]\n#[CLI\\Option(name: 'image-viewer', description: 'Command to use to view images (e.g. xv, firefox).', suggestedValues: ['open', 'xv', 'firefox'])]\n#[CLI\\Option(name: 'google-custom-search-api-key', description: 'Google Custom Search API Key')]\n#[CLI\\Usage(name: 'drush xkcd', description: 'Retrieve and display the latest cartoon')]\n#[CLI\\Usage(name: 'drush xkcd sandwich', description: 'Retrieve and display cartoons about sandwiches.')]\npublic function fetch($search = null, $options = ['image-viewer' => 'open', 'google-custom-search-api-key' => 'AIza']) {\n    $this->doFetch($search, $options);\n}\n
/**\n * @command xkcd:fetch\n * @param $search Optional argument to retrieve the cartoons matching an index number, keyword, or \"random\".\n * @option image-viewer Command to use to view images (e.g. xv, firefox).\n * @option google-custom-search-api-key Google Custom Search API Key.\n * @usage drush xkcd\n *   Retrieve and display the latest cartoon.\n * @usage drush xkcd sandwich\n *   Retrieve and display cartoons about sandwiches.\n * @aliases xkcd\n*/\npublic function fetch($search = null, $options = ['image-viewer' => 'open', 'google-custom-search-api-key' => 'AIza']) {\n    $this->doFetch($search, $options);\n}\n
  • A commandfile that will only be used on PHP8+ should use PHP Attributes instead of Annotations.
  • See Attributes provided by Drush core. Custom code can supply additional Attribute classes, which may then be added to any command. For example see InteractConfigName which is used by ConfigCommands.
"},{"location":"commands/#altering-command-info","title":"Altering Command Info","text":"

Drush command info (annotations/attributes) can be altered from other modules. This is done by creating and registering command info alterers. Alterers are classes that are able to intercept and manipulate an existing command annotation.

In the module that wants to alter a command info, add a class that:

  1. The class namespace, relative to base namespace, should be Drupal\\<module-name>\\Drush\\CommandInfoAlterers and the class file should be located under the src/Drush/CommandInfoAlterers directory.
  2. The filename must have a name like FooCommandInfoAlterer.php. The prefix Foo can be whatever string you want. The file must end in CommandInfoAlterer.php.
  3. The class must implement the \\Consolidation\\AnnotatedCommand\\CommandInfoAltererInterface.
  4. Implement the alteration logic in the alterCommandInfo() method.
  5. Along with the alter code, it's strongly recommended to log a debug message explaining what exactly was altered. This makes things easier on others who may need to debug the interaction of the alter code with other modules. Also it's a good practice to inject the the logger in the class constructor.

For an example, see WootCommandInfoAlterer provided by the testing 'woot' module.

"},{"location":"commands/#symfony-console-commands","title":"Symfony Console Commands","text":"

Drush lists and runs Symfony Console commands, in addition to more typical annotated commands. See GreetCommands as an example. Note that these commands must conform to the usual class name and class namespace requirements. You might need to extend the Console class if you can't rename and move it.

"},{"location":"commands/#auto-discovered-commands-psr4","title":"Auto-discovered commands (PSR4)","text":"

Such commands are auto-discovered by their class PSR4 namespace and class/file name suffix. Drush will auto-discover commands if:

  • The commands class is PSR4 auto-loadable.
  • The commands class namespace, relative to base namespace, is Drush\\Commands. For instance, if a Drush command provider third party library maps this PSR4 autoload entry:
    \"autoload\": {\n\"psr-4\": {\n\"My\\\\Custom\\\\Library\\\\\": \"src\"\n}\n}\n
    then the Drush global commands class namespace should be My\\Custom\\Library\\Drush\\Commands and the class file should be located under the src/Drush/Commands directory.
  • The class and file name ends with *DrushCommands, e.g. FooDrushCommands.

Auto-discovered commandfiles should declare their Drush version compatibility via a conflict directive. For example, a Composer-managed site-wide command that works with both Drush 11 and Drush 12 might contain something similar to the following in its composer.json file:

    \"conflict\": {\n\"drush/drush\": \"<11.0\",\n}\n
Using require in place of conflict is not recommended.

Symlinked packages

While it is good practice to make your custom commands into a Composer package, please beware that symlinked packages (by using the composer repository type Path) will not be discovered by Drush. When in development, it is recommended to specify your package's path in your drush.yml to have quick access to your commands.

"},{"location":"commands/#site-wide-commands","title":"Site-wide Commands","text":"

Commandfiles that are installed in a Drupal site and are not bundled inside a Drupal module are called site-wide commandfiles. Site-wide commands may either be added directly to the Drupal site's repository (e.g. for site-specific policy files), or via composer require. See the examples/Commands folder for examples. In general, it's preferable to use modules to carry your Drush commands.

Here are some examples of valid commandfile names and namespaces:

  1. Simple
    • Filename: $PROJECT_ROOT/drush/Commands/ExampleCommands.php
    • Namespace: Drush\\Commands
  2. Nested in a subdirectory committed to the site's repository
    • Filename: $PROJECT_ROOT/drush/Commands/example/ExampleCommands.php
    • Namespace: Drush\\Commands\\example
  3. Nested in a subdirectory installed via a Composer package
    • Filename: $PROJECT_ROOT/drush/Commands/contrib/dev_modules/ExampleCommands.php
    • Namespace: Drush\\Commands\\dev_modules

Note: Make sure you do not include src in the path to your command. Your command may not be discovered and have additional problems.

If a commandfile is added via a Composer package, then it may declare any dependencies that it may need in its composer.json file. Site-wide commandfiles that are committed directly to a site's repository only have access to the dependencies already available in the site.

A site-wide commandfile should have tests that run with each (major) version of Drush that is supported. You may model your test suite after the example drush extension project.

"},{"location":"commands/#global-commands-discovered-by-configuration","title":"Global commands discovered by configuration","text":"

Deprecation

Configuration discovery has been deprecated and will be removed in a future version of Drush. It is recommended that you avoid global Drush commands, and favor site-wide or PSR4 discovered commandfiles instead. If you really need commands that are not part of any Drupal site, consider making a stand-alone script or custom .phar instead. See ahoy, Robo and g1a/starter as potential starting points.

Global commandfiles discoverable by configuration are not supported by default; in order to enable them, you must configure your drush.yml configuration file to add an include search location.

For example:

drush:\npaths:\ninclude:\n- '${env.home}/.drush/commands'\n
With this configuration in place, global commands may be placed as described in the Site-Wide Drush Commands section above. Global commandfiles may not declare any dependencies of their own; they may only use those dependencies already available via the autoloader.

Tip

  1. The filename must be have a name like Commands/ExampleCommands.php
  2. The prefix Example can be whatever string you want.
  3. The file must end in Commands.php
    1. The directory above Commands must be one of:
      1. A Folder listed in the 'include' option. Include may be provided via config or via CLI.
      2. ../drush, /drush or /sites/all/drush. These paths are relative to Drupal root.
"},{"location":"commands/#xdebug","title":"Xdebug","text":"

Drush disables Xdebug by default. This improves performance substantially, because developers are often debugging something other than Drush and they still need to clear caches, import config, etc. There are two equivalent ways to override Drush's disabling of Xdebug:

  • Pass the --xdebug global option.
  • Set an environment variable: DRUSH_ALLOW_XDEBUG=1 drush [command]
"},{"location":"config-exporting/","title":"Exporting and Importing Configuration","text":"

Drush provides commands to export, pull, and import Drupal configuration files.

"},{"location":"config-exporting/#simple-value-changes","title":"Simple - value changes","text":"

It is not necessary to alter configuration values to make simple value changes to configuration variables, as this may be done by the configuration override system.

The configuration override system allows you to change configuration values for a given instance of a site (e.g. the development server) by setting configuration variables in the site's settings.php file. For example, to change the name of a local development site:

$config['system.site']['name'] = 'Local Install of Awesome Widgets, Inc.';\n
Note that the configuration override system is a Drupal feature, not a Drush feature. It should be the preferred method for changing configuration values on a per-environment basis; however, it does not work for some things, such as enabling and disabling modules.

"},{"location":"config-exporting/#advanced-variation-by-environment","title":"Advanced - variation by environment","text":"
  • Drupal supports excluding development modules from enabling on higher environments.
  • See Config Split module for more advanced needs.
"},{"location":"cron/","title":"Running Drupal cron tasks from Drush","text":"

Drupal cron tasks are often set up to be run via a wget/curl call to cron.php; this same task can also be accomplished via the cron command, which circumvents the need to provide a web server interface to cron.

"},{"location":"cron/#quick-start","title":"Quick start","text":"

If you just want to get started quickly, here is a crontab entry that will run cron once every hour at ten minutes after the hour:

10 * * * * cd [DOCROOT] && /usr/bin/env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COLUMNS=72 ../vendor/bin/drush --uri=your.drupalsite.org --quiet maint:status && /usr/bin/env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COLUMNS=72 ../vendor/bin/drush --uri=your.drupalsite.org --quiet cron\n

You should set up crontab to run your cron tasks as the same user that runs the web server; for example, if you run your web server as the user www-data:

sudo crontab -u www-data -e\n

You might need to edit the crontab entry shown above slightly for your particular setup; for example, if you have installed Drush to some directory other than /usr/local/drush, then you will need to adjust the path to drush appropriately. We'll break down the meaning of each section of the crontab entry in the documentation that continues below.

"},{"location":"cron/#setting-the-schedule","title":"Setting the schedule","text":"

See man 5 crontab for information on how to format the information in a crontab entry. In the example above, the schedule for the crontab is set by the string 10 * * * *. These fields are the minute, hour, day of month, month and day of week; * means essentially 'all values', so 10 * * * * will run any time the minute == 10 (once every hour).

"},{"location":"cron/#setting-the-path","title":"Setting the PATH","text":"

We use /usr/bin/env to run Drush so that we can set up some necessary environment variables that Drush needs to execute. By default, cron will run each command with an empty PATH, which would not work well with Drush. To find out what your PATH needs to be, just type:

echo $PATH\n

Take the value that is output and place it into your crontab entry in the place of the one shown above. You can remove any entry that is known to not be of interest to Drush (e.g. /usr/games), or is only useful in a graphic environment (e.g. /usr/X11/bin).

"},{"location":"cron/#setting-columns","title":"Setting COLUMNS","text":"

When running Drush in a terminal, the number of columns will be automatically determined by Drush by way of the tput command, which queries the active terminal to determine what the width of the screen is. When running Drush from cron, there will not be any terminal set, and the call to tput will produce an error message. Spurious error messages are undesirable, as cron is often configured to send email whenever any output is produced, so it is important to make an effort to insure that successful runs of cron complete with no output.

In some cases, Drush is smart enough to recognize that there is no terminal -- if the terminal value is empty or \"dumb\", for example. However, there are some \"non-terminal\" values that Drush does not recognize, such as \"unknown.\" If you manually set COLUMNS, then Drush will respect your setting and will not attempt to call tput.

"},{"location":"cron/#using-quiet","title":"Using --quiet","text":"

By default, Drush will print a success message when the run of cron is completed. The --quiet flag will suppress these and other progress messages, again avoiding an unnecessary email message.

"},{"location":"cron/#specifying-the-drupal-site-to-run","title":"Specifying the Drupal site to run","text":"

The Drupal root is derived from which drush you call. The Drupal docroot is usually discovered via the Composer Runtime API, looking for the path of the__drupal/core__ package. Use the --uri to control which multisite to target within the docroot (if applicable).

"},{"location":"cron/#avoiding-maintenance-mode","title":"Avoiding Maintenance mode","text":"

The call to maint:status checks to see if the site is in maintenance mode. If yes, cron will not run and the command returns a failure. It is not safe to run cron while the site is in maintenance. See https://drupal.slack.com/archives/C45SW3FLM/p1675287662331809.

"},{"location":"dependency-injection/","title":"Dependency Injection","text":"

Drush command files obtain references to the resources they need through a technique called dependency injection. When using this programing paradigm, a class by convention will never use the new operator to instantiate dependencies. Instead, it will store the other objects it needs in class variables, and provide a way for other code to assign an object to that variable.

Tip

Drush 11 and prior required dependency injection via a drush.services.yml file. This approach is deprecated in Drush 12+ and removed in Drush 13.

"},{"location":"dependency-injection/#autowire","title":"Autowire","text":"

12.5+

Command files may inject Drush and Drupal services by adding the AutowireTrait to the class (example: PmCommands). This enables your Constructor parameter type hints determine the the injected service. When a type hint is insufficient, an #[Autowire] Attribute on the constructor property (with service: named argument) directs AutoWireTrait to the right service (example: FieldDefinitionCommands).

If your command is not found by Drush, add the -vvv option for debug info about any service instantiation errors. If Autowire is still insufficient, a commandfile may implement its own create() method (see below).

"},{"location":"dependency-injection/#create-method","title":"create() method","text":"

11.6+

Command files not using Autowire may inject services by adding a create() method to the commandfile. The passed in Container is a League container with a delegate to the Drupal container. Note that the type hint should be to Psr\\Container\\ContainerInterface not Symfony\\Component\\DependencyInjection\\ContainerInterface. A create() method and constructor will look something like this:

class WootStaticFactoryCommands extends DrushCommands\n{\n    protected $configFactory;\n\n    protected function __construct($configFactory)\n    {\n        $this->configFactory = $configFactory;\n    }\n\n    public static function create(Psr\\Container\\ContainerInterface $container): self\n    {\n        return new static($container->get('config.factory'));\n    }\n
See the Drupal Documentation for details on how to inject Drupal services into your command file. This approach mimics Drupal's blocks, forms, and controllers.

"},{"location":"dependency-injection/#createearly-method","title":"createEarly() method","text":"

12.0+

Drush 12 supported a createEarly() method. This is deprecated and instead put a #[CLI\\Bootstrap(DrupalBootLevels::NONE)] Attribute on the command class and inject dependencies via the usual __construct() and AutowireTrait.

Note also that Drush commands packaged with Drupal modules are not discovered until after Drupal bootstraps, and therefore cannot use createEarly(). This mechanism is only usable by PSR-4 discovered commands packaged with Composer projects that are not Drupal modules.

"},{"location":"dependency-injection/#inflection","title":"Inflection","text":"

A command class may implement the following interfaces. When doing so, implement the corresponding trait to satisfy the interface.

  • CustomEventAwareInterface: Allows command files to define and fire custom events that other command files can hook. Example: CacheCommands
  • StdinAwareInterface: Read from standard input. This class contains facilities to redirect stdin to instead read from a file, e.g. in response to an option or argument value. Example: CacheCommands
"},{"location":"deploycommand/","title":"Deploy","text":"

10.3+

The deploy command standardizes how Drupal deployments work. The intent is your deployment script updates the codebase for the target site and then this command performs the following:

drush updatedb\ndrush config:import\ndrush cache:rebuild\ndrush deploy:hook\n
"},{"location":"deploycommand/#authoring-update-functions","title":"Authoring update functions","text":"

Below are the 3 types of update functions run by this command, in order. Choose the most appropriate for your need.

Function Drupal API Purpose HOOK_update_n() Not allowed Low level changes. HOOK_post_update_NAME() Allowed Runs before config is imported. HOOK_deploy_NAME() Allowed Runs after config is imported."},{"location":"deploycommand/#configuration","title":"Configuration","text":"

If you need to customize this command, you should use Drush configuration for the subcommands listed above (e.g. updatedb, config:import, etc.).

"},{"location":"generators/","title":"Overview","text":"

Tip

Drush 11 and prior required generators to define a drush.services.yml file. This is no longer used with Drush 12+ generators. See docs for injecting dependencies.

Generators jump start your coding by building all the boring boilerplate code for you. After running the generate command, you have a guide for where to insert your custom logic.

Drush's generators reuse classes provided by the excellent Drupal Code Generator project. See its Commands directory for inspiration.

"},{"location":"generators/#writing-custom-generators","title":"Writing Custom Generators","text":"

Drupal modules may supply their own Generators, just like they can supply Commands.

Creating a new Drush generator is easy. Follow the steps below.

  1. Run drush generate drush:generator.
  2. Drush will prompt for the machine name of the module that should own the files. The module selected must already exist and be enabled. Use drush generate module to create a new module.
  3. Drush will then report that it created a generator (PHP class and twig file). Edit as needed.
  4. Similar to ExampleGenerator, implement your custom logic in the generate() method.
  5. You may inject dependencies from Drupal or Drush.
"},{"location":"generators/#auto-discovered-generators-psr4","title":"Auto-discovered Generators (PSR4)","text":"

Generators that don't ship inside Drupal modules are called global generators. For example see CustomDrushGenerator. In general, it is better to use modules to carry your generators. If you still prefer using a global generator, please note:

  1. The generator class should be PSR4 auto-loadable.
  2. The generator class namespace, relative to base namespace, should be Drush\\Generators. For instance, if a Drush generator provider third party library maps this PSR4 autoload entry:
    \"autoload\": {\n\"psr-4\": {\n\"My\\\\Custom\\\\Library\\\\\": \"src\"\n}\n}\n
    then the Drush global generator class namespace should be My\\Custom\\Library\\Drush\\Generators and the class file should be located under the src/Drush/Generators directory.
  3. The filename must have a name like FooGenerator.php. The prefix Foo can be whatever string you want. The file must end in Generator.php.
"},{"location":"generators/#site-wide-generators","title":"Site-wide Generators","text":"

Sitewide generators (as opposed to auto-discovered PSR4) have a namespace that starts with \\Drush\\Generators, the directory above Generators must be one of: 1. A Folder listed in the --include option. include may be provided via config or via CLI. 1. ../drush, /drush or /sites/all/drush. These paths are relative to Drupal root.

"},{"location":"hooks/","title":"Hooks","text":""},{"location":"hooks/#core-hooks","title":"Core Hooks","text":"

All commandfiles may implement methods that are called by Drush at various times in the request cycle. To implement one, add a #[CLI\\Hook(type: HookManager::ARGUMENT_VALIDATOR, target: 'pm:install')] (for example) to the top of your method. The class constants for hooks are located in HookManager.

  • Documentation about available hooks.
  • To see how core commands implement a hook, you can search the Drush source code.
"},{"location":"hooks/#custom-hooks","title":"Custom Hooks","text":"

Drush commands can define custom events that other command files can hook. You can find examples in CacheCommands and SanitizeCommands

First, the command must implement CustomEventAwareInterface and use CustomEventAwareTrait, as described in the dependency injection documentation.

Then, the command may ask the provided hook manager to return a list of handlers with a certain attribute. In the example below, the my-event label is used:

    /**\n     * This command uses a custom event 'my-event' to collect data.  Note that\n     * the event handlers will not be found unless the hook manager is\n     * injected into this command handler object via `setHookManager()`\n     * (defined in CustomEventAwareTrait).\n     */\n    #[CLI\\Command(name: 'example:command')]  \n    public function exampleCommand()\n    {\n        $myEventHandlers = $this->getCustomEventHandlers('my-event');\n        $result = [];\n        foreach ($myEventHandlers as $handler) {\n            $result[] = $handler();\n        }\n        sort($result);\n        return implode(',', $result);\n    }\n

Other commandfiles may provide implementations via a PHP8 Attribute or an Annotation.

PHP8 AttributesAnnotations
/**\n * #[CLI\\Hook(type: HookManager::ON_EVENT, target: 'my-event')]\n */\npublic function hookOne()\n{\n    return 'one';\n}\n
/**\n * @hook on-event my-event\n */\npublic function hookOne()\n{\n    return 'one';\n}\n
"},{"location":"install/","title":"Install","text":"

Tip

Drush only supports one install method. It requires that your Drupal site be built with Composer and Drush be listed as a dependency.

See the Drush 8 or Drush 9 docs for installing prior versions of Drush.

  1. Composer. It is required that Drupal sites be built using Composer, with Drush listed as a dependency. See recommended-project (Drush must be added). If your Composer project doesn't yet depend on Drush, run composer require drush/drush to add it.
  2. Execution. Change to the project root, and call Drush via vendor/bin/drush. To simplify things, add ./vendor/bin to your $PATH, allowing you to call Drush via drush from the project root. If you have only one Drupal codebase on your system, you may put /path/to/vendor/bin in your $PATH; now you can call Drush from everywhere, without having to change to project root.
  3. Completion. Optional. Append to .bashrc or equivalent for ZSH or Fish shell. Run drush completion --help for more details.
  4. Multiple Codebases. Optional. If using the bash shell, consider installing the fd project, a small set of scripts that make it easier to switch between different project directories quickly, with type completion.

Note

  • See Usage for details on using Drush.
  • To use a non-default PHP, edit ~/.bashrc so that the desired PHP is in front of your $PATH. If that is not desirable, you can change your PATH for just one request: PATH=/path/to/php:$PATH drush status ...`
  • To use a custom php.ini for Drush requests, see this comment.
  • See our guide on porting commandfiles from Drush 8 to later versions. Also note that alias and config files use a new .yml format in Drush 10+.
"},{"location":"install/#drupal-compatibility","title":"Drupal Compatibility","text":"Drush Version PHP Version End Of Life Drupal versions 7 8 9 10 11 Drush 13 8.3+ TBD \u2713 10.2+ \u2705 Drush 12 8.1+ TBD \u2705 Drush 11 7.4+ Nov 2023 \u2713 \u2713 Drush 10 7.1+ (not 8) Jan 2022 \u2713 \u2713 Drush 9 5.6+ May 2020 \u2713 Drush 8 5.4.5+ Jan 2025 \u2705 \u2713\ufe0f Drush 7 5.3.0+ Jul 2017 \u2713 Drush 6 5.3.0+ Dec 2015 \u2713 Drush 5 5.2.0+ May 2015 \u2713 Legend \u2705 Supported and recommended \u2713 Compatible but no longer supported"},{"location":"io/","title":"Input / Output","text":"
  • The Input object holds information about the request such option and argument values. You may need to this information when coding a hook implementation. You don't need this object in your command callback method since these values are passed as parameters.
  • The Output object is rarely needed. Instead, return an object that gets formatted via the Output Formatter system. If you want to send additional output, use the io system (see below).
"},{"location":"io/#the-io-system","title":"The io() system","text":"
  • If you need to ask the user a question, or print non-object content, use the io() system.
  • A command callback gets access via $this->io().
  • The main methods for gathering user input are $this->io()->select() and $this->io()->confirm(). See Laravel Prompts for other methods.
  • You may use any of the methods described in the Symfony Style docs.
"},{"location":"migrate/","title":"Defining and running migrations","text":"

10.4+

The Migrate API delivers services for migrating data from a source system to Drupal. This API is provided by the core migrate module. In order to migrate data to Drupal, you'll need to create migrations for each type of destination data.

These commands are an alternative to https://www.drupal.org/project/migrate_tools. Don't use that module if you use these commands.

"},{"location":"migrate/#defining-migrations","title":"Defining migrations","text":"

Learn how to create migrations from the Drupal official documentation:

  • Migrate API overview: https://www.drupal.org/docs/8/api/migrate-api/migrate-api-overview
  • Drupal API: https://api.drupal.org/api/drupal/core%21modules%21migrate%21migrate.api.php/group/migration
"},{"location":"migrate/#running-migrations","title":"Running migrations","text":"

Drush provides a set of commands that allows to run migration operations such as importing, checking the current status of migrations, rolling-back migrations, stopping an ongoing migration, etc. Such commands are available only when the migrate module is enabled. In order the get a full list of migrate commands, type:

drush --filter=migrate\n

To get help on each command run drush with the command name as parameter and the --help option. For example next command will show details about the migrate:import Drush command:

drush migrate:import --help\n
"},{"location":"output-formats-filters/","title":"Output Formats, Fields and Filters","text":"

Drush utilizes a powerful formatting and filtering system that provides the user with a lot of control over how output from various commands is rendered.

  • Output formats may be used to select the data type used to print the output. For example, many commands allow the user to select between a human-readable table, or various machine-parsable formats such as yaml and json.
  • Output fields may be used to select and order the data columns.
  • Output filters may be used to limit which data rows are printed based on logical expressions.
"},{"location":"output-formats-filters/#output-formats","title":"Output Formats","text":"

The --format option may be used to select the data format used to print the output of a command. Most commands that produce informative output about some object or system can transform their data into different formats. For example, the version command may be printed in a human-readable table (the default), or in a json array:

$ drush version\n Drush version : 10.3.1\n$ drush version --format=json\n{\n\"drush-version\": \"10.3.1\"\n}\n
The available output formats are shown in the help for each command:
$ drush help version\nShow drush version.\n\nOptions:\n --format=<json>    Select output format. Available: json, string, var_export, yaml. Default is key-value.\n

"},{"location":"output-formats-filters/#output-fields","title":"Output Fields","text":"

If you wish to limit the number of columns produced by a command, use the --fields option. List the field names in the order they should be displayed:

$ drush views:list --fields=machine-name,status\n+-------------------+----------+\n| Machine name      | Status   |\n+-------------------+----------+\n| block_content     | Enabled  |\n| comment           | Enabled  |\n| comments_recent   | Enabled  |\n| content           | Enabled  |\n| content_recent    | Enabled  |\n| files             | Enabled  |\n| frontpage         | Enabled  |\n| taxonomy_term     | Enabled  |\n| user_admin_people | Enabled  |\n| watchdog          | Enabled  |\n| who_s_new         | Enabled  |\n| who_s_online      | Enabled  |\n| archive           | Disabled |\n| glossary          | Disabled |\n+-------------------+----------+\n
The available field names are shown in the help text:
$ drush help views:list\nGet a list of all views in the system.\n\nOptions:\n  --fields=FIELDS   Available fields: Machine name (machine-name),     Name (label), Description (description), Status    (status), Tag (tag) [default:                      \"machine-name,label,description,status\"]           
Fields may be named either using their human-readable name, or via their machine name.

Note also that some commands do not display all of their available data columns by default. To show all available fields, use --fields=*

There is also a singular form --field available. If this form is used, it will also force the output format to string.

$ drush views:list --field=machine-name \nblock_content\ncomment\ncomments_recent\ncontent\ncontent_recent\nfiles\nfrontpage\ntaxonomy_term\nuser_admin_people\nwatchdog\nwho_s_new\nwho_s_online\narchive\nglossary\n

"},{"location":"output-formats-filters/#output-filters","title":"Output Filters","text":"

A number of Drush commands that output tabular data support a --filter option that allows rows from the output to be selected with simple logic expressions.

In its simplest form, the --filter option takes a string that indicates the value to filter by in the command's default filter field. For example, the role:list command specifies perms as its default filter; the output of the role:list command may be limited to only those roles that have a specified permission:

$ drush role:list --filter='post comments'\nauthenticated:\n  label: 'Authenticated user'\nperms:\n    - 'access comments'\n- 'access content'\n- 'access shortcuts'\n- 'access site-wide contact form'\n- 'access user contact forms'\n- 'post comments'\n- 'search content'\n- 'skip comment approval'\n- 'use text format basic_html'\n
Note that not all commands have a default filter field.

Other fields in the output may be searched by using a simple expression in the --filter term. For example, to list only the enabled extensions with the pm:list command, you could run:

$ drush pm:list --filter='status=enabled'\n
To search for fields that contain a string using the operator *=, or match a regular expression with the ~= operator. For example, to find all views whose machine name contains the word content:
drush views:list --filter='machine-name*=content'\n
To use a regular expression to find any core requirement notice whose title contains either php or gd
drush core:requirements --filter='title~=#(php|gd)#i'\n
Finally, filter expressions may also use logical-and (&&) or logical-or (||) operations to separate multiple terms. Parenthesis are not supported. For example, to search both the title and severity fields in the core:requirements command:
drush core:requirements --filter='title~=#(php|gd)#i&&severity=warning'\n

The = and *= operators always use case-insensitive comparisons. The ~= operator is case-sensitive, unless the i PCRE modifier is used, as shown in the previous example.

"},{"location":"output-formats-filters/#comparison-of-filters-with-grep","title":"Comparison of Filters with Grep","text":"

Using the --filter feature is similar to using grep. The main difference is that the filter feature does a semantic search, which is to say that it explicitly compares against the data in specific fields. In comparison, the grep command does a line-based search.

Show only results where the severity is warning:

drush core:requirements --filter='severity=warning'

Show only lines that contain the string warning (either in the severity field, or somewhere else on the line):

drush core:requirements | grep -i warning

The table below compares and contrasts the two ways of searching.

Feature --filter grep Regular expressions Yes, with ~= Yes Word-wrapped field data Searched correctly Might cause false negative Search just one field Yes Might get false positives Search multiple fields Yes, with ||/&& Yes (line-based searching) Searching hides header No Yes (unless it matches)"},{"location":"repl/","title":"REPL (a custom shell for Drupal)","text":"

The php:cli command is interactive PHP REPL with your bootstrapped site (remote or local). It\u2019s a Drupal code playground. You can do quick code experimentation, grab some data, or run Drush commands. This can also help with debugging certain issues. See this blog post for an introduction. Run help for a list of commands.

Any global PsySH configuration is loaded by Drush. If you prefer a config file that is specific to the project (and can be checked in with other source code), set the environment variable PSYSH_CONFIG=</path/to/config-file>. This file then takes precedence over any global file.

Entity classes are available without their namespace. For example, Node::load() works instead of Drupal\\Node\\entity\\Noad::load().

"},{"location":"site-alias-manager/","title":"Site Alias Manager","text":"

The Site Alias Manager (SAM) service is used to retrieve information about one or all of the site aliases for the current installation.

  • An informative example is the browse command
  • A commandfile gets usually access to the SAM via autowire. The type hint to use is SiteAliasManagerInterface
  • If an alias was used for the current request, it is available via $this->siteAliasManager->getself().
  • The SAM generally deals in SiteAlias objects. That is how any given site alias is represented. See its methods for determining things like whether the alias points to a local host or remote host.
  • Site alias docs.
  • Dynamically alter site aliases.
  • The SAM is also available for as a standalone Composer project. More information available in the README there.
"},{"location":"site-aliases/","title":"Site aliases","text":""},{"location":"site-aliases/#basic-usage","title":"Basic usage","text":"

In its most basic form, the Drush site alias feature provides a way for teams to share short names that refer to the live and staging sites (usually remote) for a given Drupal site.

Add an alias file called $PROJECT/drush/sites/self.site.yml, where $PROJECT is the project root (location of composer.json file). The site alias file should be named self.site.yml because this name is special, and is used to define the different environments (usually remote) of the current Drupal site.

The contents of the alias file should look something like the example below:

# File: self.site.yml\nlive:\n  host: server.domain.com\n  user: www-admin\n  root: /other/path/to/live/drupal\n  uri: http://example.com\nstage:\n  host: server.domain.com\n  user: www-admin\n  root: /other/path/to/stage/drupal\n  uri: http://stage.example.com\n

The top-level element names (live and stage in the example above) are used to identify the different environments available for this site. These may be used on the command line to select a different target environment to operate on by prepending an @ character, e.g. @live or @stage.

Following these steps, a cache:rebuild on the live environment would be:

  $ drush @live cache:rebuild\n

All of the available aliases for a site's environments may be listed via:

  $ drush site:alias @self\n

The elements of a site alias are:

  • host: The fully-qualified domain name of the remote system hosting the Drupal instance. The host option must be omitted for local sites, as this option controls various operations, such as whether or not rsync parameters are for local or remote machines, and so on.
  • user: The username to log in as when using ssh or docker. If each user has to use own username, you can create an environment variable which holds the value, and reference via ${env.PROJECT_SSH_USER} (for example). Or you may omit the user item and specify a user in the ~/.ssh/config file.
  • root: The Drupal root; must not be specified as a relative path.
  • uri: The value of --uri should always be the same as when the site is being accessed from a web browser (e.g. http://example.com)

Drush typically uses ssh to run commands on remote systems; all team members should install ssh keys on the target servers (e.g. via ssh-add).

"},{"location":"site-aliases/#advanced-usage","title":"Advanced usage","text":"

It is also possible to create site alias files that reference other sites on the same local system. Site alias files for other local sites are usually stored in the directory ~/.drush/sites; however, Drush does not search this location for alias files by default. To use this location, you must add the path in your Drush configuration file. For example, to re-add both of the default user alias path from Drush 8, put the following in your ~/.drush/drush.yml configuration file:

drush:\n  paths:\n    alias-path:\n      - '${env.HOME}/.drush/sites'\n      - /etc/drush/sites\n

A canonical alias named example that points to a local Drupal site named at http://example.com like this:

# File: example.site.yml\ndev:\n  root: /path/to/drupal\n  uri: http://example.com\n

Note that the first part of the filename (in this case example defines the name of the site alias, and the top-level key dev defines the name of the environment.

With these definitions in place, it is possible to run commands targeting the dev environment of the target site via:

  $ drush @example.dev status\n
This command is equivalent to the longer form:
  $ drush --root=/path/to/drupal --uri=http://example.com status\n
See Additional Site Alias Options for more information.

"},{"location":"site-aliases/#altering-aliases","title":"Altering aliases:","text":"

See examples/Commands/SiteAliasAlterCommands.php for an example.

"},{"location":"site-aliases/#site-specifications","title":"Site specifications:","text":"

When a site alias name is provided on the command line, a site specification may be used instead. A site specification is a site alias that is not saved on the filesystem but instead is provided directly e.g. drush user@server/path/to/drupal#uri core:status. See example site specifications.

"},{"location":"site-aliases/#environment-variables","title":"Environment variables","text":"

Site aliases may reference environment variables, just like any Drush config file. For example, ${env.PROJECT_SSH_USER} will be replaced by the value of the PROJECT_SSH_USER environment value.

SSH site aliases may set environment variables via the env-vars key. See below.

"},{"location":"site-aliases/#additional-site-alias-options","title":"Additional Site Alias Options","text":"

Aliases are commonly used to define short names for local or remote Drupal installations; however, an alias is really nothing more than a collection of options.

  • docker: When specified, Drush executes via docker-compose exec rather than ssh.
    • service: the name of the container to run on.
    • exec:
      • options: Options for the exec subcommand.
  • kubectl When specified, Drush executes via kubectl exec rather than ssh.
    • namespace The namespace to execute the command in.
    • resource The k8s object to execute the command on.
    • container The container in the resource to execute the command on.
  • os: The operating system of the remote server. Valid values are Windows and Linux. Set this value for all remote aliases where the remote's OS differs from the local. This is especially relevant for the sql:sync command.
  • ssh: Contains settings used to control how ssh commands are generated when running remote commands.
    • options: Contains additional commandline options for the ssh command itself, e.g. -p 100
    • tty: Usually, Drush will decide whether or not to create a tty (via the ssh --t option) based on whether the local Drush command is running interactively or not. To force Drush to always or never create a tty, set the ssh.tty option to true or false, respectively.
  • paths: An array of aliases for common rsync targets. Relative aliases are always taken from the Drupal root.
    • files: Path to files directory. This will be looked up if not specified.
    • drush-script: Path to the remote Drush command.
  • command: These options will only be set if the alias is used with the specified command. In the advanced example below, the option --no-dump will be selected whenever the @stage alias is used in any of the following ways:
    • drush @stage sql-sync @self @live
    • drush sql-sync @stage @live
    • drush sql-sync @live @stage
  • env-vars: An array of key / value pairs that will be set as environment variables.

Complex example:

# File: remote.site.yml\nlive:\n  host: server.domain.com\n  user: www-admin\n  root: /other/path/to/drupal\n  uri: http://example.com\n  ssh:\n    options: '-p 100'\n  paths:\n    drush-script: '/path/to/drush'\n  env-vars:\n    PATH: /bin:/usr/bin:/home/www-admin/.composer/vendor/bin\n    DRUPAL_ENV: live\n  command:\n    site:\n      install:\n        options:\n          admin-password: 'secret-secret'\n
"},{"location":"site-aliases/#site-alias-files-for-service-providers","title":"Site Alias Files for Service Providers","text":"

There are a number of service providers that manage Drupal sites as a service. Drush allows service providers to create collections of site alias files to reference all of the sites available to a single user. In order to do this, a new location must be defined in your Drush configuration file:

drush:\n  paths:\n    alias-path:\n      - '${env.HOME}/.drush/sites/provider-name'\n

Site aliases stored in this directory may then be referenced by its full alias name, including its location, e.g.:

  $ drush @provider-name.example.dev\n
Such alias files may still be referenced by their shorter name, e.g. @example.dev. Note that it is necessary to individually list every location where site alias files may be stored; Drush never does recursive (deep) directory searches for alias files.

The site:alias command may also be used to list all of the sites and environments in a given location, e.g.:

  $ drush site:alias @provider-name\n
Add the option --format=list to show only the names of each site and environment without also showing the values in each alias record.

"},{"location":"site-aliases/#wildcard-aliases-for-service-providers","title":"Wildcard Aliases for Service Providers","text":"

Some service providers that manage Drupal sites allow customers to create multiple \"environments\" for a site. It is common for these providers to also have a feature to automatically create Drush aliases for all of a user's sites. Rather than write one record for every environment in that site, it is also possible to write a single wildcard alias that represents all possible environments. This is possible if the contents of each environment alias are identical save for the name of the environment in one or more values. The variable ${env-name} will be substituted with the environment name wherever it appears.

Example wildcard record:

# File: remote-example.site.yml\n'*':\n  host: ${env-name}.server.domain.com\n  user: www-admin\n  root: /path/to/${env-name}\n  uri: http://${env-name}.remote-example.com\n

With a wildcard record, any environment name may be used, and will always match. This is not desirable in instances where the specified environment does not exist (e.g. if the user made a typo). An alias alter hook in a policy file may be used to catch these mistakes and report an error. See SiteAliasAlterCommands for an example on how to do this.

"},{"location":"site-aliases/#docker-compose","title":"Docker Compose","text":"

The example below shows drush calling into a Docker hosted site. See the https://github.com/consolidation/site-alias and https://github.com/consolidation/site-process projects for more developer information about transports.

An example appears below. Edit to suit:

# File: mysite.site.yml\nlocal:\nThis environment is an example of the DockerCompose transport.\n  docker:\n    service: drupal\n    exec:\n      options: --user USER\nstage:\n  uri: http://stage.example.com\n  root: /path/to/remote/drupal/root\n  host: mystagingserver.myisp.com\n  user: publisher\n  os: Linux\n  paths:\n   - files: sites/mydrupalsite.com/files\n   - custom: /my/custom/path\n  command:\n    sql:\n      sync:\n        options:\n          no-dump: true\ndev:\n  root: /path/to/docroot\n  uri: https://dev.example.com\n
"},{"location":"site-aliases/#kubernetes","title":"Kubernetes","text":"

Drush provides transport for running drush commands on your Kubernetes cluster via kubectl. See an example and options below.

prod: \n  kubectl:\n    namespace: 'my-drupal-namespace'\n    resource: 'pods/my-drupal-pod' \n    container: 'drupal'\n
"},{"location":"site-aliases/#key-options","title":"Key options","text":"
  • namespace: The namespace where your Drupal deployment resides.
  • resource: Kubernetes resource type (usually 'pods').
  • container: The specific container within the pod where Drupal runs.
  • kubeconfig: The kubeconfig file to use for authentication.
  • entrypoint: The command to use as the container entrypoint.
"},{"location":"site-aliases/#example-of-rsync-with-exclude-paths","title":"Example of rsync with exclude-paths","text":"

Note that most options typically passed to rsync via drush rsync are \"passthrough options\", which is to say they appear after the -- separator on the command line. Passthrough options are actually arguments, and it is not possible to set default arguments in an alias record. The drush rsync command does support two options, --mode and --exclude-paths, which are interpreted directly by Drush. Default values for these options may be specified in an alias record, as shown below.

dev:\n  root: /path/to/docroot\n  uri: https://dev.example.com\n  command:\n    core:\n      rsync:\n        options:\n          mode: rlptz\n          exclude-paths: 'css:imagecache:ctools:js:tmp:php:styles'\n
"},{"location":"usage/","title":"Usage","text":"

Drush can be run in your shell by typing drush from within your project root directory or anywhere within Drupal.

$ drush [options] <command> [argument1] [argument2]\n

Use the help command to get a list of available options and commands:

$ drush help pm:list\n

For even more documentation, use the topic command:

$ drush topic\n
"},{"location":"usage/#using-the-uri-option","title":"Using the --uri option.","text":"

For multi-site installations, use a site alias or the --uri option to target a particular site.

$ drush --uri=http://example.com pm:install\n
"},{"location":"usage/#site-aliases","title":"Site Aliases","text":"

Drush lets you run commands on a remote server. Once defined, aliases can be referenced with the @ nomenclature, i.e.

# Run pending updates on staging site.\n$ drush @staging updatedb\n# Synchronize staging files to production\n$ drush rsync @staging:%files/ @live:%files\n# Synchronize database from production to local, excluding the cache table\n$ drush sql:sync --structure-tables-key=custom @live @self\n

See Site aliases for more information.

"},{"location":"using-drush-configuration/","title":"Drush Configuration","text":"

Drush configuration is useful to cut down on typing out lengthy and repetitive command line options, and to avoid mistakes.

"},{"location":"using-drush-configuration/#directories-and-discovery","title":"Directories and Discovery","text":"

drush.yml files are discovered as below, in order of precedence:

  1. Drupal site folder (e.g. sites/{example.com}/drush.yml).
  2. sites/all/drush, WEBROOT/drush, or PROJECTROOT/drush.
  3. In any location, as specified by the --config option.
  4. User's .drush folder (i.e. ~/.drush/drush.yml).
  5. System-wide configuration folder (e.g. /etc/drush/drush.yml or C:\\ProgramData\\Drush\\drush.yml).

If a configuration file is found in any of the above locations, it will be loaded and merged with other configuration files in the search list. Run drush status --fields=drush-conf to see all discovered config files.

"},{"location":"using-drush-configuration/#environment-variables","title":"Environment variables","text":"

Your Drush config file may reference environment variables using a syntax like ${env.HOME}. For example see the drush.paths examples below.

An alternative way to populate Drush configuration is to define environment variables that correspond to config keys. For example, to populate the options.uri config item, create an environment variable DRUSH_OPTIONS_URI=http://example.com. As you can see, variable names should be uppercased, prefixed with DRUSH_, and periods replaced with underscores.

"},{"location":"using-drush-configuration/#config-examples","title":"Config examples","text":""},{"location":"using-drush-configuration/#specify-config-files-to-load","title":"Specify config files to load","text":"
drush:\n  paths:\n    config:\n      # Load any personal config files. Is silently skipped if not found. Filename must be drush.yml\n      - ${env.HOME}/.drush/config/drush.yml\n
  • The value may be path to a file, or to a directory containing drush.yml file(s).
  • View discovered config paths: drush status --fields=drush-conf --format=yaml
"},{"location":"using-drush-configuration/#specify-folders-to-search-for-drush-command-files","title":"Specify folders to search for Drush command files.","text":"

These locations are always merged with include paths defined on the command line or in other configuration files. On the command line, paths may be separated by a colon : on Unix-based systems or a semi-colon ; on Windows, or multiple --include options may be provided. Drush 8 and earlier did a deep search in ~/.drush and /usr/share/drush/commands when loading command files, so we mimic that here as an example.

drush:\n  include:\n    - '${env.HOME}/.drush/commands'\n    - /usr/share/drush/commands\n
  • View all loaded commands: drush list
"},{"location":"using-drush-configuration/#specify-the-folders-to-search-for-drush-alias-files-siteyml","title":"Specify the folders to search for Drush alias files (*.site.yml).","text":"

These locations are always merged with alias paths defined on the command line or in other configuration files. On the command line, paths may be separated by a colon : on Unix-based systems or a semi-colon ; on Windows, or multiple --alias-path options may be provided. Note that Drush 8 and earlier did a deep search in ~/.drush and /etc/drush when loading alias files.

drush:\n  paths:\n    alias-path:\n      - '${env.HOME}/.drush/sites'\n      - /etc/drush/sites\n
- View all loaded site aliases: drush site:alias

"},{"location":"using-drush-configuration/#backup-directory","title":"Backup directory","text":"

Specify a folder where Drush should store backup files, including temporary sql dump files created during sql:sync. If unspecified, defaults to $HOME/drush-backups.

drush:\n  paths:\n    backup-dir: /tmp/drush-backups\n

"},{"location":"using-drush-configuration/#global-options","title":"Global options","text":"
options:\n  # Specify the base_url that should be used when generating links.\n  uri: 'http://example.com/subdir'\n\n  # Specify your Drupal core base directory (useful if you use symlinks).\n  root: '/home/USER/workspace/drupal'\n\n  # Enable verbose mode.\n  verbose: true\n
"},{"location":"using-drush-configuration/#command-specific-options","title":"Command-specific options","text":"
command:\n  sql:\n    cli:\n      options:\n        # Enable auto-complete in MySQL.\n        extra: \"--auto-rehash\"\n    dump:\n      options:\n        # Omit cache and similar tables (including during a sql:sync).\n        structure-tables-key: common\n  php:\n    script:\n      options:\n        # Additional folders to search for scripts.\n        script-path: 'sites/all/scripts:profiles/myprofile/scripts'\n  core:\n    rsync:\n      options:\n        # Ensure all rsync commands use verbose output.\n        verbose: true\n\n  site:\n    install:\n      options:\n        # Set a predetermined username and password when using site:install.\n        account-name: 'alice'\n        account-pass: 'secret'\n
"},{"location":"using-drush-configuration/#non-options","title":"Non-options","text":"
sql:\n  # An explicit list of tables which should be included in sql-dump and sql-sync.\n  tables:\n    common:\n      - user\n      - permissions\n      - role_permissions\n      - role\n  # List of tables whose *data* is skipped by the 'sql-dump' and 'sql-sync'\n  # commands when the \"--structure-tables-key=common\" option is provided.\n  # You may add specific tables to the existing array or add a new element.\n  structure-tables:\n    common:\n      - cache\n      - 'cache_*'\n      - history\n      - 'search_*'\n      - 'sessions'\n      - 'watchdog'\n  # List of tables to be omitted entirely from SQL dumps made by the 'sql-dump'\n  # and 'sql-sync' commands when the \"--skip-tables-key=common\" option is\n  # provided on the command line.  This is useful if your database contains\n  # non-Drupal tables used by some other application or during a migration for\n  # example.  You may add new tables to the existing array or add a new element.\n  skip-tables:\n    common:\n      - 'migration_*'\n\nssh:\n  # Specify options to pass to ssh.  The default is to prohibit\n  # password authentication, and is included here, so you may add additional\n  # parameters without losing the default configuration.\n  options: '-o PasswordAuthentication=no'\n  # This string is valid for Bash shell. Override in case you need something different. See https://github.com/drush-ops/drush/issues/3816.\n  pipefail: 'set -o pipefail; '\n\nnotify:\n  # Notify when command takes more than 30 seconds.\n  duration: 30\n  # Specify a command to run. Defaults to Notification Center (OSX) or libnotify (Linux)\n  cmd: /path/to/program\n  # See https://github.com/drush-ops/drush/blob/13.x/src/Commands/core/NotifyCommands.php for more settings.\n\nxh:\n  # Start profiling via xhprof/tideways and show a link to the run report.\n  link: http://xhprof.local\n  # See https://github.com/drush-ops/drush/blob/13.x/src/Commands/core/XhprofCommands.php for more settings.\n  profile-builtins: true\n  profile-cpu: false\n  profile-memory: false\n
"},{"location":"using-drush-configuration/#misc","title":"Misc","text":"
  • If you are authoring a commandfile and wish to access the user's configuration, see Command Authoring.
  • Setting boolean options broke with Symfony 3. This will be fixed in a future release.
  • Version-specific configuration. Limit the version of Drush that will load a configuration file by placing the Drush major version number in the filename, e.g. drush10.yml.
  • The Drush configuration system has been factored out of Drush and shared with the world at https://github.com/consolidation/config. Feel free to use it for your projects. Lots more usage information is there.
"},{"location":"commands/all/","title":"All commands","text":"

Tip

Press the / key to Search for a command. Or use your browser's Find in Page feature.

  • archive:dump
  • browse
  • completion
  • drupal:directory
  • generate
  • help
  • jn:get
  • list
  • mk:docs
  • recipe
  • runserver
  • version
  • cache:clear
  • cache:get
  • cache:rebuild
  • cache:set
  • cache:tags
  • config:delete
  • config:edit
  • config:export
  • config:get
  • config:import
  • config:pull
  • config:set
  • config:status
  • core:cron
  • core:edit
  • core:requirements
  • core:route
  • core:rsync
  • core:status
  • core:topic
  • deploy
  • deploy:hook
  • deploy:hook-status
  • deploy:mark-complete
  • entity:create
  • entity:delete
  • entity:save
  • field:base-info
  • field:base-override-create
  • field:create
  • field:delete
  • field:formatters
  • field:info
  • field:types
  • field:widgets
  • image:derive
  • image:flush
  • locale:check
  • locale:clear-status
  • locale:export
  • locale:import
  • locale:import-all
  • locale:update
  • maint:get
  • maint:set
  • maint:status
  • migrate:fields-source
  • migrate:import
  • migrate:messages
  • migrate:reset-status
  • migrate:rollback
  • migrate:status
  • migrate:stop
  • php:cli
  • php:eval
  • php:script
  • pm:install
  • pm:list
  • pm:uninstall
  • queue:delete
  • queue:list
  • queue:run
  • role:create
  • role:delete
  • role:list
  • role:perm:add
  • role:perm:remove
  • site:alias
  • site:install
  • site:set
  • site:ssh
  • sql:cli
  • sql:connect
  • sql:create
  • sql:drop
  • sql:dump
  • sql:query
  • sql:sanitize
  • sql:sync
  • state:delete
  • state:get
  • state:set
  • theme:install
  • theme:uninstall
  • twig:compile
  • twig:debug
  • twig:unused
  • updatedb
  • updatedb:status
  • user:block
  • user:cancel
  • user:create
  • user:information
  • user:login
  • user:password
  • user:role:add
  • user:role:remove
  • user:unblock
  • views:dev
  • views:disable
  • views:enable
  • views:execute
  • views:list
  • watchdog:delete
  • watchdog:list
  • watchdog:show
  • watchdog:show-one
  • watchdog:tail
  • yaml:get:value
  • yaml:lint
  • yaml:unset:key
  • yaml:update:key
  • yaml:update:value
"},{"location":"commands/archive_dump/","title":"archive:dump","text":"

Backup your code, files, and database into a single file.

The following paths would be excluded from a code archive:

  • .git
  • vendor
  • [docroot]/sites/@/settings.@.php
  • Drupal files directory
  • Composer packages installed paths (composer info --path --format=json)

The following directories would be excluded from a file archive:

  • css
  • js
  • styles
  • php
"},{"location":"commands/archive_dump/#examples","title":"Examples","text":"
  • drush archive:dump. Create a site archive file in a temporary directory containing code, database and Drupal files.
  • drush archive:dump --destination=/path/to/archive.tar.gz. Create /path/to/archive.tar.gz file containing code, database and Drupal files.
  • drush archive:dump --destination=/path/to/archive.tar.gz --overwrite. Create (or overwrite if exists) /path/to/archive.tar.gz file containing code, database and Drupal files.
  • drush archive:dump --code --destination=/path/to/archive.tar.gz. Create /path/to/archive.tar.gz file containing the code only.
  • drush archive:dump --exclude-code-paths=foo_bar.txt,web/sites/.+/settings.php --destination=/path/to/archive.tar.gz. Create /path/to/archive.tar.gz file containing code, database and Drupal files but excluding foo_bar.txt file and settings.php files if found in web/sites/* subdirectories.
  • drush archive:dump --extra-dump=--no-data --destination=/path/to/archive.tar.gz. Create /path/to/archive.tar.gz file and pass extra option to mysqldump command.
  • drush archive:dump --files --destination=/path/to/archive.tar.gz. Create /path/to/archive.tar.gz file containing the Drupal files only.
  • drush archive:dump --database --destination=/path/to/archive.tar.gz. Create /path/to/archive.tar.gz archive file containing the database dump only.
"},{"location":"commands/archive_dump/#options","title":"Options","text":"
  • --code. Archive codebase.
  • --files. Archive Drupal files.
  • --db. Archive database SQL dump.
  • --destination=DESTINATION. The full path and filename in which the archive should be stored. Any relative path will be calculated from Drupal root (usually web for drupal/recommended-project projects). If omitted, it will be saved to the configured temp directory.
  • --overwrite. Overwrite destination file if exists.
  • --description=DESCRIPTION. Describe the archive contents.
  • --tags=TAGS. Add tags to the archive manifest. Delimit several by commas.
  • --generator=GENERATOR. The generator name to store in the MANIFEST.yml file. The default is \"Drush archive-dump\".
  • --generatorversion=GENERATORVERSION. The generator version number to store in the MANIFEST file. The default is Drush version.
  • --exclude-code-paths=EXCLUDE-CODE-PATHS. Comma-separated list of paths (or regular expressions matching paths) to exclude from the code archive.
  • --extra-dump=EXTRA-DUMP. Add custom arguments/options to the dumping of the database (e.g. mysqldump command).
  • --convert-symlinks. Replace all symlinks with copies of the files/directories that they point to. Default is to only convert symlinks that point outside the project root.
  • --skip-tables-key=SKIP-TABLES-KEY. A key in the $skip_tables array. @see Site aliases
  • --structure-tables-key=STRUCTURE-TABLES-KEY. A key in the $structure_tables array. @see Site aliases
  • --tables-key=TABLES-KEY. A key in the $tables array.
  • --skip-tables-list=SKIP-TABLES-LIST. A comma-separated list of tables to exclude completely.
  • --structure-tables-list=STRUCTURE-TABLES-LIST. A comma-separated list of tables to include for structure, but not data.
  • --tables-list=TABLES-LIST. A comma-separated list of tables to transfer.
  • --database[=DATABASE]. The DB connection key if using multiple connections in settings.php. [default: default]
  • --db-url=DB-URL. A Drupal 6 style database URL. For example mysql://root:pass@localhost:port/dbname
  • --target[=TARGET]. The name of a target within the specified database connection. [default: default]
  • --show-passwords. Show password on the CLI. Useful for debugging.
"},{"location":"commands/archive_dump/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/archive_dump/#aliases","title":"Aliases","text":"
  • ard

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/browse/","title":"browse","text":"

Display a link to a given path or open link in a browser.

"},{"location":"commands/browse/#examples","title":"Examples","text":"
  • drush browse. Open default web browser (if configured or detected) to the site front page.
  • drush browse node/1. Open web browser to the path node/1.
  • drush @example.prod browse. Open a browser to the web site specified in a site alias.
"},{"location":"commands/browse/#arguments","title":"Arguments","text":"
  • [path]. Path to open. If omitted, the site front page will be opened.
"},{"location":"commands/browse/#options","title":"Options","text":"
  • --browser[=BROWSER]. Open the URL in the default browser. Use --no-browser to avoid opening a browser. [default: 1]
  • --redirect-port=REDIRECT-PORT. The port that the web server is redirected to (e.g. when running within a Vagrant environment).
  • --no-browser. Negate --browser option.
"},{"location":"commands/browse/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/cache_clear/","title":"cache:clear","text":"

Clear a specific cache, or all Drupal caches.

"},{"location":"commands/cache_clear/#examples","title":"Examples","text":"
  • drush cc bin. Choose a bin to clear.
  • drush cc bin entity,bootstrap. Clear the entity and bootstrap cache bins.
"},{"location":"commands/cache_clear/#arguments","title":"Arguments","text":"
  • type. The particular cache to clear. Omit this argument to choose from available types.
  • [args].... Additional arguments as might be expected (e.g. bin name).
"},{"location":"commands/cache_clear/#options","title":"Options","text":"
  • --cache-clear[=CACHE-CLEAR]. Set to 0 to suppress normal cache clearing; the caller should then clear if needed. [default: 1]
  • --no-cache-clear. Negate --cache-clear option.
"},{"location":"commands/cache_clear/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/cache_clear/#aliases","title":"Aliases","text":"
  • cc
  • cache-clear

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/cache_get/","title":"cache:get","text":"

Fetch a cached object and display it.

"},{"location":"commands/cache_get/#examples","title":"Examples","text":"
  • drush cache:get hook_info bootstrap. Display the data for the cache id \"hook_info\" from the \"bootstrap\" bin.
  • drush cache:get update_available_releases update. Display the data for the cache id \"update_available_releases\" from the \"update\" bin.
"},{"location":"commands/cache_get/#arguments","title":"Arguments","text":"
  • cid. The id of the object to fetch.
  • [bin]. The cache bin to fetch from.
"},{"location":"commands/cache_get/#options","title":"Options","text":"
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,string,table,tsv,var_dump,var_export,xml,yaml [default: json]
  • --fields=FIELDS. Available fields: Cache ID (cid), Data (data), Created (created), Expire (expire), Tags (tags), Checksum (checksum), Valid (valid)
  • --field=FIELD. Select just one field, and force format to string.
"},{"location":"commands/cache_get/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/cache_get/#topics","title":"Topics","text":"
  • Output formatters and filters: control the command output (docs:output-formats-filters)
"},{"location":"commands/cache_get/#aliases","title":"Aliases","text":"
  • cg
  • cache-get

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/cache_rebuild/","title":"cache:rebuild","text":"

Rebuild all caches.

This is a copy of core/rebuild.php.

"},{"location":"commands/cache_rebuild/#options","title":"Options","text":"
  • --cache-clear[=CACHE-CLEAR]. Set to 0 to suppress normal cache clearing; the caller should then clear if needed. [default: 1]
  • --no-cache-clear. Negate --cache-clear option.
"},{"location":"commands/cache_rebuild/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/cache_rebuild/#aliases","title":"Aliases","text":"
  • cr
  • rebuild
  • cache-rebuild

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/cache_set/","title":"cache:set","text":"

Cache an object expressed in JSON or var_export() format.

"},{"location":"commands/cache_set/#arguments","title":"Arguments","text":"
  • cid. id of the object to set.
  • data. The object to set in the cache. Use - to read the object from STDIN.
  • [bin]. The cache bin to store the object in.
  • [expire]. 'CACHE_PERMANENT', or a Unix timestamp.
  • [tags]. A comma delimited list of cache tags.
"},{"location":"commands/cache_set/#options","title":"Options","text":"
  • --input-format[=INPUT-FORMAT]. The format of value. Use json for complex values. [default: string]
  • --cache-get. If the object is the result a previous fetch from the cache, only store the value in the 'data' property of the object in the cache.
"},{"location":"commands/cache_set/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/cache_set/#aliases","title":"Aliases","text":"
  • cs
  • cache-set

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/cache_tags/","title":"cache:tags","text":"

Invalidate by cache tags.

"},{"location":"commands/cache_tags/#examples","title":"Examples","text":"
  • drush cache:tag node:12,user:4. Purge content associated with two cache tags.
"},{"location":"commands/cache_tags/#arguments","title":"Arguments","text":"
  • tags. A comma delimited list of cache tags to clear.
"},{"location":"commands/cache_tags/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/cache_tags/#aliases","title":"Aliases","text":"
  • ct

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/completion/","title":"completion","text":"

Dump the shell completion script

The *%command.name% command dumps the shell completion script required to use shell autocompletion (currently, bash, fish, zsh completion are supported).

"},{"location":"commands/completion/#static-installation","title":"Static installation

Dump the script to a global completion file and restart your shell:

*%command.full_name%  | sudo tee /etc/bash_completion.d/drush.php\n

Or dump the script to a local file and source it:

*%command.full_name%  > completion.sh\n\n<comment># source the file whenever you use the project\n*source completion.sh\n\n<comment># or add this line at the end of your \"~/.bashrc\" file:\n*source /path/to/completion.sh\n
","text":""},{"location":"commands/completion/#dynamic-installation","title":"Dynamic installation

Add this to the end of your shell configuration file (e.g. *\"~/.bashrc\"):

*eval \"$(/home/runner/work/drush/drush/drush.php completion )\"\n
","text":""},{"location":"commands/completion/#arguments","title":"Arguments","text":"
  • [shell]. The shell type (e.g. \"bash\"), the value of the \"$SHELL\" env var will be used if this is not given
"},{"location":"commands/completion/#options","title":"Options","text":"
  • --debug. Tail the completion debug log
"},{"location":"commands/completion/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/config_delete/","title":"config:delete","text":"

Delete a configuration key, or a whole object(s).

"},{"location":"commands/config_delete/#examples","title":"Examples","text":"
  • drush config:delete system.site,system.rss. Delete the system.site and system.rss config objects.
  • drush config:delete system.site page.front. Delete the 'page.front' key from the system.site object.
"},{"location":"commands/config_delete/#arguments","title":"Arguments","text":"
  • config_name. The config object name(s). Delimit multiple with commas.
  • [key]. A config key to clear, May not be used with multiple config names.
"},{"location":"commands/config_delete/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/config_delete/#aliases","title":"Aliases","text":"
  • cdel
  • config-delete

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/config_edit/","title":"config:edit","text":"

Open a config file in a text editor. Edits are imported after closing editor.

"},{"location":"commands/config_edit/#examples","title":"Examples","text":"
  • drush config:edit image.style.large. Edit the image style configurations.
  • drush config:edit. Choose a config file to edit.
  • drush --bg config-edit image.style.large. Return to shell prompt as soon as the editor window opens.
"},{"location":"commands/config_edit/#arguments","title":"Arguments","text":"
  • config_name. The config object name, for example system.site.
"},{"location":"commands/config_edit/#options","title":"Options","text":"
  • --editor=EDITOR. A string of bash which launches user's preferred text editor. Defaults to ${VISUAL-${EDITOR-vi}}.
  • --bg. Launch editor in background process.
"},{"location":"commands/config_edit/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/config_edit/#aliases","title":"Aliases","text":"
  • cedit
  • config-edit

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/config_export/","title":"config:export","text":"

Export Drupal configuration to a directory.

"},{"location":"commands/config_export/#examples","title":"Examples","text":"
  • drush config:export. Export configuration files to the site's config directory.
  • drush config:export --destination. Export configuration; Save files in a backup directory named config-export.
"},{"location":"commands/config_export/#options","title":"Options","text":"
  • --add. Run git add -p after exporting. This lets you choose which config changes to sync for commit.
  • --commit. Run git add -A and git commit after exporting. This commits everything that was exported without prompting.
  • --message=MESSAGE. Commit comment for the exported configuration. Optional; may only be used with --commit.
  • --destination[=DESTINATION]. An arbitrary directory that should receive the exported files. A backup directory is used when no value is provided.
  • --diff. Show preview as a diff, instead of a change list.
  • --format[=FORMAT].
"},{"location":"commands/config_export/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/config_export/#aliases","title":"Aliases","text":"
  • cex
  • config-export

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/config_get/","title":"config:get","text":"

Display a config value, or a whole configuration object.

"},{"location":"commands/config_get/#examples","title":"Examples","text":"
  • drush config:get system.site. Displays the system.site config.
  • drush config:get system.site page.front. Gets system.site:page.front value.
"},{"location":"commands/config_get/#arguments","title":"Arguments","text":"
  • config_name. The config object name, for example system.site.
  • [key]. The config key, for example page.front. Optional.
"},{"location":"commands/config_get/#options","title":"Options","text":"
  • --format[=FORMAT]. [default: yaml]
  • --source[=SOURCE]. The config storage source to read. [default: active]
  • --include-overridden. Apply module and settings.php overrides to values.
"},{"location":"commands/config_get/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/config_get/#aliases","title":"Aliases","text":"
  • cget
  • config-get

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/config_import/","title":"config:import","text":"

Import config from the config directory.

"},{"location":"commands/config_import/#examples","title":"Examples","text":"
  • drush config:import. Update Drupal's configuration so it matches the contents of the config directory.
  • drush config:import --partial --source=/app/config. Import from the /app/config directory which typically contains one or a few yaml files.
  • cat tmp.yml | drush config:set --input-format=yaml user.mail ? -. Update the user.mail config object in its entirety.
"},{"location":"commands/config_import/#options","title":"Options","text":"
  • --source=SOURCE. An arbitrary directory that holds the configuration files.
  • --partial. Allows for partial config imports from the source directory. Only updates and new configs will be processed with this flag (missing configs will not be deleted). No config transformation happens.
  • --diff. Show preview as a diff.
"},{"location":"commands/config_import/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/config_import/#topics","title":"Topics","text":"
  • Deploy command for Drupal. (docs:deploy)
"},{"location":"commands/config_import/#aliases","title":"Aliases","text":"
  • cim
  • config-import

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/config_pull/","title":"config:pull","text":"

Export and transfer config from one environment to another.

"},{"location":"commands/config_pull/#examples","title":"Examples","text":"
  • drush config:pull @prod @stage. Export config from @prod and transfer to @stage.
  • drush config:pull @prod @self:../config/sync. Export config and transfer to a custom directory. Relative paths are calculated from Drupal root.
"},{"location":"commands/config_pull/#arguments","title":"Arguments","text":"
  • source. A site-alias or the name of a subdirectory within /sites whose config you want to copy from.
  • destination. A site-alias or the name of a subdirectory within /sites whose config you want to replace.
"},{"location":"commands/config_pull/#options","title":"Options","text":"
  • --safe. Validate that there are no git uncommitted changes before proceeding
  • --runner[=RUNNER]. Where to run the rsync command; defaults to the local site. Can also be source or destination.
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,string,table,tsv,var_dump,var_export,xml,yaml [default: null]
  • --fields=FIELDS. Available fields: Path (path)
  • --field=FIELD. Select just one field, and force format to string.
"},{"location":"commands/config_pull/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/config_pull/#topics","title":"Topics","text":"
  • Creating site aliases for running Drush on remote sites. (docs:aliases)
  • Drupal config export instructions, including customizing config by environment. (docs:config:exporting)
  • Output formatters and filters: control the command output (docs:output-formats-filters)
"},{"location":"commands/config_pull/#aliases","title":"Aliases","text":"
  • cpull
  • config-pull

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/config_set/","title":"config:set","text":"

Save a config value directly. Does not perform a config import.

"},{"location":"commands/config_set/#examples","title":"Examples","text":"
  • drush config:set system.site name MySite. Sets a value for the key name of system.site config object.
  • drush config:set system.site page.front /path/to/page. Sets the given URL path as value for the config item with key page.front of system.site config object.
  • drush config:set system.site '[]'. Sets the given key to an empty array.
  • drush config:set system.site 'NULL'. Sets the given key to NULL.
  • drush config:set --input-format=yaml user.role.authenticated permissions [foo,bar]. Use a sequence as value for the key permissions of user.role.authenticated config object.
  • drush config:set --input-format=yaml system.site page {403: '403', front: home}. Use a mapping as value for the key page of system.site config object.
  • drush config:set --input-format=yaml user.role.authenticated ? \"{label: 'Auth user', weight: 5}\". Update two top level keys (label, weight) in the system.site config object.
  • cat tmp.yml | drush config:set --input-format=yaml user.mail ? -. Update the user.mail config object in its entirety.
"},{"location":"commands/config_set/#arguments","title":"Arguments","text":"
  • config_name. The config object name, for example system.site.
  • key. The config key, for example page.front. Use ? if you are updating multiple top-level keys.
  • value. The value to assign to the config key. Use - to read from Stdin.
"},{"location":"commands/config_set/#options","title":"Options","text":"
  • --input-format[=INPUT-FORMAT]. Format to parse the object. Recognized values: string, yaml. Since JSON is a subset of YAML, $value may be in JSON format. [default: string]
"},{"location":"commands/config_set/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/config_set/#aliases","title":"Aliases","text":"
  • cset
  • config-set

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/config_status/","title":"config:status","text":"

Display status of configuration (differences between the filesystem and database).

"},{"location":"commands/config_status/#examples","title":"Examples","text":"
  • drush config:status. Display configuration items that need to be synchronized.
  • drush config:status --state=Identical. Display configuration items that are in default state.
  • drush config:status --state='Only in sync dir' --prefix=node.type.. Display all content types that would be created in active storage on configuration import.
  • drush config:status --state=Any --format=list. List all config names.
  • drush config:status 2>&1 | grep \"No differences\". Check there are no differences between database and exported config. Useful for CI.
"},{"location":"commands/config_status/#options","title":"Options","text":"
  • --state[=STATE]. A comma-separated list of states to filter results. [default: Only in DB,Only in sync dir,Different]
  • --prefix=PREFIX. The config prefix. For example, system. No prefix will return all names in the system.
  • --format=FORMAT. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • --fields=FIELDS. Available fields: Name (name), State (state)
  • --field=FIELD. Select just one field, and force format to string.
  • --filter[=FILTER]. Filter output based on provided expression
"},{"location":"commands/config_status/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/config_status/#topics","title":"Topics","text":"
  • Output formatters and filters: control the command output (docs:output-formats-filters)
"},{"location":"commands/config_status/#aliases","title":"Aliases","text":"
  • cst
  • config-status

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/core_cron/","title":"core:cron","text":"

Run all cron hooks in all active modules for specified site.

Consider using drush maint:status && drush core:cron to avoid cache poisoning during maintenance mode.

"},{"location":"commands/core_cron/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/core_cron/#topics","title":"Topics","text":"
  • Crontab instructions for running your Drupal cron tasks via drush cron. (docs:cron)
"},{"location":"commands/core_cron/#aliases","title":"Aliases","text":"
  • cron
  • core-cron

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/core_edit/","title":"core:edit","text":"

Edit drush.yml, site alias, and Drupal settings.php files.

"},{"location":"commands/core_edit/#examples","title":"Examples","text":"
  • drush core:edit. Pick from a list of config/alias/settings files. Open selected in editor.
  • drush --bg core-config. Return to shell prompt as soon as the editor window opens.
  • drush core:edit etc. Edit the global configuration file.
  • drush core:edit demo.alia. Edit a particular alias file.
  • drush core:edit sett. Edit settings.php for the current Drupal site.
  • drush core:edit --choice=2. Edit the second file in the choice list.
"},{"location":"commands/core_edit/#arguments","title":"Arguments","text":"
  • [filter]. A substring for filtering the list of files. Omit this argument to choose from loaded files.
"},{"location":"commands/core_edit/#options","title":"Options","text":"
  • --editor=EDITOR. A string of bash which launches user's preferred text editor. Defaults to ${VISUAL-${EDITOR-vi}}.
  • --bg. Launch editor in background process.
"},{"location":"commands/core_edit/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/core_edit/#aliases","title":"Aliases","text":"
  • conf
  • config
  • core-edit

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/core_requirements/","title":"core:requirements","text":"

Information about things that may be wrong in your Drupal installation.

"},{"location":"commands/core_requirements/#examples","title":"Examples","text":"
  • drush core:requirements. Show all status lines from the Status Report admin page.
  • drush core:requirements --severity=2. Show only the red lines from the Status Report admin page.
"},{"location":"commands/core_requirements/#options","title":"Options","text":"
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • --severity[=SEVERITY]. Only show status report messages with a severity greater than or equal to the specified value. [default: -1]
  • --ignore[=IGNORE]. Comma-separated list of requirements to remove from output. Run with --format=yaml to see key values to use.
  • --fields=FIELDS. Available fields: Title (title), Severity (severity), SID (sid), Description (description), Summary (value)
  • --field=FIELD. Select just one field, and force format to string.
  • --filter[=FILTER]. Filter output based on provided expression
"},{"location":"commands/core_requirements/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/core_requirements/#topics","title":"Topics","text":"
  • Output formatters and filters: control the command output (docs:output-formats-filters)
"},{"location":"commands/core_requirements/#aliases","title":"Aliases","text":"
  • status-report
  • rq
  • core-requirements

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/core_route/","title":"core:route","text":"

10.5+

View information about all routes or one route.

"},{"location":"commands/core_route/#examples","title":"Examples","text":"
  • drush route. View all routes.
  • drush route --name=update.status. View details about the update.status route.
  • drush route --path=/user/1. View details about the entity.user.canonical route.
  • drush route --url=https://example.com/node/1. View details about the entity.node.canonical route.
"},{"location":"commands/core_route/#options","title":"Options","text":"
  • --name=NAME. A route name.
  • --path=PATH. An internal path or URL.
  • --format[=FORMAT]. [default: yaml]
"},{"location":"commands/core_route/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/core_route/#aliases","title":"Aliases","text":"
  • route

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/core_rsync/","title":"core:rsync","text":"

Rsync Drupal code or files to/from another server using ssh.

"},{"location":"commands/core_rsync/#examples","title":"Examples","text":"
  • drush rsync @dev @stage. Rsync Drupal root from Drush alias dev to the alias stage.
  • drush rsync ./ @stage:%files/img. Rsync all files in the current directory to the imgdirectory in the file storage folder on the Drush alias stage.
  • drush rsync @live:%private @stage:%private. Rsync private files from live to stage.
  • drush rsync @dev @stage -- --exclude=*.sql --delete. Rsync Drupal root from the Drush alias dev to the alias stage, excluding all .sql files and delete all files on the destination that are no longer on the source.
  • drush rsync @dev @stage --ssh-options=\"-o StrictHostKeyChecking=no\" -- --delete. Customize how rsync connects with remote host via SSH. rsync options like --delete are placed after a --.
"},{"location":"commands/core_rsync/#arguments","title":"Arguments","text":"
  • source. A site alias and optional path. See rsync documentation and Site aliases.
  • target. A site alias and optional path. See rsync documentation and Site aliases.
  • [extra].... Additional parameters after the ssh statement.
"},{"location":"commands/core_rsync/#options","title":"Options","text":"
  • --exclude-paths=EXCLUDE-PATHS. List of paths to exclude, seperated by : (Unix-based systems) or ; (Windows).
  • --include-paths=INCLUDE-PATHS. List of paths to include, seperated by : (Unix-based systems) or ; (Windows).
  • --mode[=MODE]. The unary flags to pass to rsync; --mode=rultz implies rsync -rultz. Default is -akz. [default: akz]
  • --ssh-options=SSH-OPTIONS. A string appended to ssh command during rsync, sql-sync, etc.
"},{"location":"commands/core_rsync/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/core_rsync/#topics","title":"Topics","text":"
  • Creating site aliases for running Drush on remote sites. (docs:aliases)
"},{"location":"commands/core_rsync/#aliases","title":"Aliases","text":"
  • rsync
  • core-rsync

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/core_status/","title":"core:status","text":"

An overview of the environment - Drush and Drupal.

"},{"location":"commands/core_status/#examples","title":"Examples","text":"
  • drush core-status --field=files. Emit just one field, not all the default fields.
  • drush core-status --fields=*. Emit all fields, not just the default ones.
"},{"location":"commands/core_status/#options","title":"Options","text":"
  • --project=PROJECT. A comma delimited list of projects. Their paths will be added to path-aliases section.
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • --fields=FIELDS. Available fields: Drupal version (drupal-version), Site URI (uri), DB driver (db-driver), DB hostname (db-hostname), DB port (db-port), DB username (db-username), DB password (db-password), DB name (db-name), Database (db-status), Drupal bootstrap (bootstrap), Default theme (theme), Admin theme (admin-theme), PHP binary (php-bin), PHP config (php-conf), PHP OS (php-os), PHP version (php-version), Drush script (drush-script), Drush version (drush-version), Drush temp (drush-temp), Drush configs (drush-conf), Drush aliases (drush-alias-files), Alias search paths (alias-searchpaths), Install profile (install-profile), Drupal root (root), Drupal Settings (drupal-settings-file), Site path (site-path), Site path (site), Themes path (themes), Modules path (modules), Files, Public (files), Files, Private (private), Files, Temp (temp), Drupal config (config-sync), Files, Public (files-path), Files, Temp (temp-path), Other paths (%paths)
  • --field=FIELD. Select just one field, and force format to string.
"},{"location":"commands/core_status/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/core_status/#topics","title":"Topics","text":"
  • README.md (docs:readme)
  • Output formatters and filters: control the command output (docs:output-formats-filters)
"},{"location":"commands/core_status/#aliases","title":"Aliases","text":"
  • status
  • st
  • core-status

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/core_topic/","title":"core:topic","text":"

Read detailed documentation on a given topic.

"},{"location":"commands/core_topic/#examples","title":"Examples","text":"
  • drush topic. Pick from all available topics.
  • drush topic docs-repl. Show documentation for the Drush interactive shell
  • drush docs:r. Filter topics for those starting with 'docs-r'.
"},{"location":"commands/core_topic/#arguments","title":"Arguments","text":"
  • topic_name. The name of the topic you wish to view. If omitted, list all topic descriptions (and names in parenthesis).
"},{"location":"commands/core_topic/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/core_topic/#topics","title":"Topics","text":"
  • README.md (docs:readme)
"},{"location":"commands/core_topic/#aliases","title":"Aliases","text":"
  • topic
  • core-topic

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/deploy/","title":"deploy","text":"

10.3+

Run several commands after performing a code deployment.

"},{"location":"commands/deploy/#examples","title":"Examples","text":"
  • drush deploy -v -y. Run updates with verbose logging and accept all prompts.
"},{"location":"commands/deploy/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/deploy/#topics","title":"Topics","text":"
  • Deploy command for Drupal. (docs:deploy)

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/deploy_hook-status/","title":"deploy:hook-status","text":"

Prints information about pending deploy update hooks.

"},{"location":"commands/deploy_hook-status/#examples","title":"Examples","text":"
  • drush deploy:hook-status. Prints information about pending deploy hooks.
"},{"location":"commands/deploy_hook-status/#options","title":"Options","text":"
  • --format=FORMAT. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • --fields=FIELDS. Available fields: Module (module), Hook (hook), Description (description)
  • --field=FIELD. Select just one field, and force format to string.
  • --filter[=FILTER]. Filter output based on provided expression
"},{"location":"commands/deploy_hook-status/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/deploy_hook-status/#topics","title":"Topics","text":"
  • Deploy command for Drupal. (docs:deploy)
  • Output formatters and filters: control the command output (docs:output-formats-filters)

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/deploy_hook/","title":"deploy:hook","text":"

10.3+

Run pending deploy update hooks.

"},{"location":"commands/deploy_hook/#examples","title":"Examples","text":"
  • drush deploy:hook. Run pending deploy hooks.
"},{"location":"commands/deploy_hook/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/deploy_hook/#topics","title":"Topics","text":"
  • Deploy command for Drupal. (docs:deploy)

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/deploy_mark-complete/","title":"deploy:mark-complete","text":"

10.6.1+

Mark all deploy hooks as having run.

"},{"location":"commands/deploy_mark-complete/#examples","title":"Examples","text":"
  • drush deploy:mark-complete. Skip all pending deploy hooks and mark them as complete.
"},{"location":"commands/deploy_mark-complete/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/deploy_mark-complete/#topics","title":"Topics","text":"
  • Deploy command for Drupal. (docs:deploy)

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/drupal_directory/","title":"drupal:directory","text":"

Return the filesystem path for modules/themes and other key folders.

"},{"location":"commands/drupal_directory/#examples","title":"Examples","text":"
  • cd $(drush dd devel). Navigate into the devel module directory
  • cd $(drush dd). Navigate to the root of your Drupal site
  • cd $(drush dd files). Navigate to the files directory.
  • drush dd @alias:%files. Print the path to the files directory on the site @alias.
  • edit $(drush dd devel)/devel.module. Open devel module in your editor
"},{"location":"commands/drupal_directory/#arguments","title":"Arguments","text":"
  • [target]. A module/theme name, or special names like root, files, private, or an alias:path string such as @alias:%files.
"},{"location":"commands/drupal_directory/#options","title":"Options","text":"
  • --local-only. Reject any target that specifies a remote site.
"},{"location":"commands/drupal_directory/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/drupal_directory/#aliases","title":"Aliases","text":"
  • dd
  • drupal-directory

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/entity_create/","title":"entity:create","text":"

12.5+

Create a content entity after prompting for field values.

When entering field values, one may submit an incomplete document and any entity violations will be helpfully reported at the top of the document. enter skip as a value in order to skip validation for that field. Timestamp values may be expressed via any string recognized by strtotime()

"},{"location":"commands/entity_create/#examples","title":"Examples","text":"
  • drush entity:create node article --validate=0. Create an article entity and skip validation entirely.
  • drush entity:create node article --skip-fields=field_media_image,field_tags. Create an article omitting two fields.
  • drush entity:create user user --editor=nano. Create a user using the Nano text editor.
"},{"location":"commands/entity_create/#arguments","title":"Arguments","text":"
  • entity_type. An entity type name.
  • bundle. A bundle name
"},{"location":"commands/entity_create/#options","title":"Options","text":"
  • --validate[=VALIDATE]. Validate the entity before saving. [default: 1]
  • --uid=UID. The entity author ID. Also used by permission checks (e.g. content moderation)
  • --skip-fields=SKIP-FIELDS. A list of field names that skip both data entry and validation. Delimit fields by comma
  • --editor=EDITOR. A string of bash which launches user's preferred text editor. Defaults to ${VISUAL-${EDITOR-vi}}.
  • --bg. Launch editor in background process.
  • --no-validate. Negate --validate option.
"},{"location":"commands/entity_create/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/entity_create/#aliases","title":"Aliases","text":"
  • econ
  • entity-create

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/entity_delete/","title":"entity:delete","text":"

Delete content entities.

To delete configuration entities, see config:delete command.

"},{"location":"commands/entity_delete/#examples","title":"Examples","text":"
  • drush entity:delete node --bundle=article. Delete all article entities.
  • drush entity:delete shortcut. Delete all shortcut entities.
  • drush entity:delete node 22,24. Delete nodes 22 and 24.
  • drush entity:delete user. Delete all users except uid=1.
  • drush entity:delete node --exclude=9,14,81. Delete all nodes except node 9, 14 and 81.
  • drush entity:delete node --chunks=5. Delete all node entities in groups of 5.
  • drush entity:delete node --limit=500. Delete 500 node entities.
"},{"location":"commands/entity_delete/#arguments","title":"Arguments","text":"
  • entity_type. An entity machine name.
  • [ids]. A comma delimited list of Ids.
"},{"location":"commands/entity_delete/#options","title":"Options","text":"
  • --bundle=BUNDLE. Restrict deletion to the specified bundle. Ignored when ids is specified.
  • --exclude=EXCLUDE. Exclude certain entities from deletion. Ignored when ids is specified.
  • --chunks[=CHUNKS]. Specify how many entities will be deleted in the same step. [default: 50]
  • --limit[=LIMIT]. Limit on the number of entities to delete.
"},{"location":"commands/entity_delete/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/entity_delete/#aliases","title":"Aliases","text":"
  • edel
  • entity-delete

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/entity_save/","title":"entity:save","text":"

11.0+

Re-save entities, and publish/unpublish is specified.

If passing in a file with an ID in each line, append a comma to each row.

"},{"location":"commands/entity_save/#examples","title":"Examples","text":"
  • drush entity:save node --bundle=article. Re-save all article entities.
  • drush entity:save shortcut --unpublish --state=draft. Unpublish and transition all shortcut entities.
  • drush entity:save node 22,24. Re-save nodes 22 and 24.
  • cat /path/to/ids.csv | drush entity:save node -. Re-save the nodes whose Ids are listed in ids.csv.
  • drush entity:save node --exclude=9,14,81. Re-save all nodes except node 9, 14 and 81.
  • drush entity:save user. Re-save all users.
  • drush entity:save node --chunks=5. Re-save all node entities in steps of 5.
"},{"location":"commands/entity_save/#arguments","title":"Arguments","text":"
  • entity_type. An entity machine name.
  • [ids]. A comma delimited list of Ids. The list is read from Stdin if a value of - is provided for this option.
"},{"location":"commands/entity_save/#options","title":"Options","text":"
  • --bundle=BUNDLE. Restrict to the specified bundle. Ignored when ids is specified.
  • --exclude=EXCLUDE. Exclude certain entities. Ignored when ids is specified.
  • --chunks[=CHUNKS]. Define how many entities will be loaded in the same step. [default: 50]
  • --publish. Publish entities as they are saved.
  • --unpublish. Unpublish entities as they are saved.
  • --state=STATE. Transition entities to the specified Content Moderation state. Do not pass --publish or --unpublish since the transition state determines handles publishing.
"},{"location":"commands/entity_save/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/entity_save/#aliases","title":"Aliases","text":"
  • esav
  • entity-save

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/field_base-info/","title":"field:base-info","text":"

11.0+

List all base fields of an entity type

"},{"location":"commands/field_base-info/#examples","title":"Examples","text":"
  • field:base-info taxonomy_term. List all base fields.
  • field:base-info. List all base fields and fill in the remaining information through prompts.
"},{"location":"commands/field_base-info/#arguments","title":"Arguments","text":"
  • [entityType]. The machine name of the entity type.
"},{"location":"commands/field_base-info/#options","title":"Options","text":"
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • --show-machine-names. Show machine names instead of labels in option lists.
  • --fields=FIELDS. Available fields: Label (label), Description (description), Field name (field_name), Field type (field_type), Required (required), Translatable (translatable), Cardinality (cardinality), Default value (default_value), Default value callback (default_value_callback), Allowed values (allowed_values), Allowed values function (allowed_values_function), Selection handler (handler), Target bundles (target_bundles)
  • --field=FIELD. Select just one field, and force format to string.
  • --filter[=FILTER]. Filter output based on provided expression
"},{"location":"commands/field_base-info/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/field_base-info/#topics","title":"Topics","text":"
  • Output formatters and filters: control the command output (docs:output-formats-filters)
"},{"location":"commands/field_base-info/#aliases","title":"Aliases","text":"
  • field-base-info
  • fbi

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/field_base-override-create/","title":"field:base-override-create","text":"

11.0+

Create a new base field override

"},{"location":"commands/field_base-override-create/#examples","title":"Examples","text":"
  • field:base-override-create. Create a base field override by answering the prompts.
  • field:base-override-create taxonomy_term tag. Create a base field override and fill in the remaining information through prompts.
  • field:base-override-create taxonomy_term tag --field-name=name --field-label=Label --is-required=1. Create a base field override in a completely non-interactive way.
"},{"location":"commands/field_base-override-create/#arguments","title":"Arguments","text":"
  • [entityType]. The machine name of the entity type.
  • [bundle]. The machine name of the bundle.
"},{"location":"commands/field_base-override-create/#options","title":"Options","text":"
  • --field-name=FIELD-NAME. A unique machine-readable name containing letters, numbers, and underscores.
  • --field-label=FIELD-LABEL. The field label
  • --field-description=FIELD-DESCRIPTION. The field description
  • --is-required=IS-REQUIRED. Whether the field is required
  • --show-machine-names[=SHOW-MACHINE-NAMES]. Show machine names instead of labels in option lists.
"},{"location":"commands/field_base-override-create/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/field_base-override-create/#aliases","title":"Aliases","text":"
  • bfoc

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/field_create/","title":"field:create","text":"

11.0+

Create a new field

"},{"location":"commands/field_create/#examples","title":"Examples","text":"
  • field:create. Create a field by answering the prompts.
  • field:create taxonomy_term tag. Create a field and fill in the remaining information through prompts.
  • field:create taxonomy_term tag --field-name=field_tag_label --field-label=Label --field-type=string --field-widget=string_textfield --is-required=1 --cardinality=2. Create a field in a completely non-interactive way.
"},{"location":"commands/field_create/#arguments","title":"Arguments","text":"
  • [entityType]. The machine name of the entity type
  • [bundle]. The machine name of the bundle
"},{"location":"commands/field_create/#options","title":"Options","text":"
  • --field-name=FIELD-NAME. A unique machine-readable name containing letters, numbers, and underscores.
  • --field-label=FIELD-LABEL. The field label
  • --field-description[=FIELD-DESCRIPTION]. Instructions to present to the user below this field on the editing form.
  • --field-type=FIELD-TYPE. The field type
  • --field-widget=FIELD-WIDGET. The field widget
  • --is-required[=IS-REQUIRED]. Whether the field is required
  • --is-translatable[=IS-TRANSLATABLE]. Whether the field is translatable
  • --cardinality=CARDINALITY. The allowed number of values
  • --target-type[=TARGET-TYPE]. The target entity type. Only necessary for entity reference fields.
  • --target-bundle[=TARGET-BUNDLE]. The target bundle(s). Only necessary for entity reference fields.
  • --show-machine-names[=SHOW-MACHINE-NAMES]. Show machine names instead of labels in option lists.
  • --existing-field-name[=EXISTING-FIELD-NAME]. The name of an existing field you want to re-use. Only used in non-interactive context.
  • --existing. Re-use an existing field.
"},{"location":"commands/field_create/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/field_create/#aliases","title":"Aliases","text":"
  • field-create
  • fc

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/field_delete/","title":"field:delete","text":"

11.0+

Delete a field

"},{"location":"commands/field_delete/#examples","title":"Examples","text":"
  • field:delete. Delete a field by answering the prompts.
  • field-delete taxonomy_term tag. Delete a field and fill in the remaining information through prompts.
  • field-delete taxonomy_term tag --field-name=field_tag_label. Delete a field in a non-interactive way.
  • field-delete taxonomy_term --field-name=field_tag_label --all-bundles. Delete a field from all bundles.
"},{"location":"commands/field_delete/#arguments","title":"Arguments","text":"
  • [entityType]. The machine name of the entity type.
  • [bundle]. The machine name of the bundle.
"},{"location":"commands/field_delete/#options","title":"Options","text":"
  • --field-name=FIELD-NAME. The machine name of the field.
  • --show-machine-names[=SHOW-MACHINE-NAMES]. Show machine names instead of labels in option lists.
  • --all-bundles[=ALL-BUNDLES]. Whether to delete the field from all bundles.
"},{"location":"commands/field_delete/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/field_delete/#aliases","title":"Aliases","text":"
  • field-delete
  • fd

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/field_formatters/","title":"field:formatters","text":"

Lists field formatters.

"},{"location":"commands/field_formatters/#examples","title":"Examples","text":"
  • drush field:formatters --field-type=entity_reference. Lists field formatters applicable for entity reference fields.
"},{"location":"commands/field_formatters/#options","title":"Options","text":"
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,tsv,var_dump,var_export,xml,yaml [default: yaml]
  • --field-type=FIELD-TYPE. Applicable field type.
  • --fields=FIELDS. Available fields: ID (id), Label (label), Default Settings (default_settings), Field types (field_types), Settings (settings), Class (class), Provider (provider) [default: id label default_settings field_types]
  • --field=FIELD. Select just one field, and force format to string.
  • --filter[=FILTER]. Filter output based on provided expression
"},{"location":"commands/field_formatters/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/field_formatters/#topics","title":"Topics","text":"
  • Output formatters and filters: control the command output (docs:output-formats-filters)

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/field_info/","title":"field:info","text":"

11.0+

List all configurable fields of an entity bundle

"},{"location":"commands/field_info/#examples","title":"Examples","text":"
  • field:info taxonomy_term tag. List all fields.
  • field:info. List all fields and fill in the remaining information through prompts.
"},{"location":"commands/field_info/#arguments","title":"Arguments","text":"
  • [entityType]. The machine name of the entity type.
  • [bundle]. The machine name of the bundle.
"},{"location":"commands/field_info/#options","title":"Options","text":"
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • --show-machine-names. Show machine names instead of labels in option lists.
  • --fields=FIELDS. Available fields: Label (label), Description (description), Field name (field_name), Field type (field_type), Required (required), Translatable (translatable), Cardinality (cardinality), Default value (default_value), Default value callback (default_value_callback), Allowed values (allowed_values), Allowed values function (allowed_values_function), Selection handler (handler), Target bundles (target_bundles)
  • --field=FIELD. Select just one field, and force format to string.
  • --filter[=FILTER]. Filter output based on provided expression
"},{"location":"commands/field_info/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/field_info/#topics","title":"Topics","text":"
  • Output formatters and filters: control the command output (docs:output-formats-filters)
"},{"location":"commands/field_info/#aliases","title":"Aliases","text":"
  • field-info
  • fi

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/field_types/","title":"field:types","text":"

Lists field types.

"},{"location":"commands/field_types/#examples","title":"Examples","text":"
  • drush field:types. List all registered field types.
"},{"location":"commands/field_types/#options","title":"Options","text":"
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,tsv,var_dump,var_export,xml,yaml [default: yaml]
  • --fields=FIELDS. Available fields: ID (id), Label (label), Default Widget (default_widget), Default Formatter (default_formatter), Settings (settings)
  • --field=FIELD. Select just one field, and force format to string.
  • --filter[=FILTER]. Filter output based on provided expression
"},{"location":"commands/field_types/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/field_types/#topics","title":"Topics","text":"
  • Output formatters and filters: control the command output (docs:output-formats-filters)

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/field_widgets/","title":"field:widgets","text":"

Lists field widgets.

"},{"location":"commands/field_widgets/#examples","title":"Examples","text":"
  • drush field:widgets --field-type=entity_reference. Lists field widgets applicable for entity reference fields.
"},{"location":"commands/field_widgets/#options","title":"Options","text":"
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,tsv,var_dump,var_export,xml,yaml [default: yaml]
  • --field-type=FIELD-TYPE. Applicable field type.
  • --fields=FIELDS. Available fields: ID (id), Label (label), Default Settings (default_settings), Field types (field_types), Settings (settings), Class (class), Provider (provider) [default: id label default_settings field_types]
  • --field=FIELD. Select just one field, and force format to string.
  • --filter[=FILTER]. Filter output based on provided expression
"},{"location":"commands/field_widgets/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/field_widgets/#topics","title":"Topics","text":"
  • Output formatters and filters: control the command output (docs:output-formats-filters)

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/generate/","title":"generate","text":"

Generate boilerplate code for modules/plugins/services etc.

Drush asks questions so that the generated code is as polished as possible. After generating, Drush lists the files that were created.

See https://github.com/Chi-teck/drupal-code-generator for a README and bug reports.

"},{"location":"commands/generate/#examples","title":"Examples","text":"
  • drush generate. Pick from available generators and then run it.
  • drush generate drush-command-file. Generate a Drush commandfile for your module.
  • drush generate controller --answer=Example --answer=example. Generate a controller class and pre-fill the first two questions in the wizard.
  • drush generate controller -vvv --dry-run. Learn all the potential answers so you can re-run with several --answer options.
"},{"location":"commands/generate/#arguments","title":"Arguments","text":"
  • [generator]. A generator name. Omit to pick from available Generators.
"},{"location":"commands/generate/#options","title":"Options","text":"
  • --replace.
  • --working-dir=WORKING-DIR. Absolute path to working directory.
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"commands/generate/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/generate/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"commands/generate/#aliases","title":"Aliases","text":"
  • gen

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/help/","title":"help","text":"

Display usage details for a command.

"},{"location":"commands/help/#examples","title":"Examples","text":"
  • drush help pm:uninstall. Show help for a command.
  • drush help pmu. Show help for a command using an alias.
  • drush help --format=xml. Show all available commands in XML format.
  • drush help --format=json. All available commands, in JSON format.
"},{"location":"commands/help/#arguments","title":"Arguments","text":"
  • [command_name]. A command name
"},{"location":"commands/help/#options","title":"Options","text":"
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,string,tsv,var_dump,var_export,xml,yaml [default: helpcli]
  • --include-field-labels.
  • --table-style[=TABLE-STYLE]. [default: compact]
"},{"location":"commands/help/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/help/#topics","title":"Topics","text":"
  • README.md (docs:readme)

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/image_derive/","title":"image:derive","text":"

Create an image derivative.

"},{"location":"commands/image_derive/#examples","title":"Examples","text":"
  • drush image:derive thumbnail core/themes/bartik/screenshot.png. Save thumbnail sized derivative of logo image.
"},{"location":"commands/image_derive/#arguments","title":"Arguments","text":"
  • style_name. An image style machine name.
  • source. Path to a source image. Optionally prepend stream wrapper scheme. Relative paths calculated from Drupal root.
"},{"location":"commands/image_derive/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/image_derive/#aliases","title":"Aliases","text":"
  • id
  • image-derive

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/image_flush/","title":"image:flush","text":"

Flush all derived images for a given style.

"},{"location":"commands/image_flush/#examples","title":"Examples","text":"
  • drush image:flush. Pick an image style and then delete its derivatives.
  • drush image:flush thumbnail,large. Delete all thumbnail and large derivatives.
  • drush image:flush --all. Flush all derived images. They will be regenerated on demand.
"},{"location":"commands/image_flush/#arguments","title":"Arguments","text":"
  • style_names. A comma delimited list of image style machine names. If not provided, user may choose from a list of names.
"},{"location":"commands/image_flush/#options","title":"Options","text":"
  • --all. Flush all derived images
"},{"location":"commands/image_flush/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/image_flush/#aliases","title":"Aliases","text":"
  • if
  • image-flush

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/jn_get/","title":"jn:get","text":"

Execute a JSONAPI request.

"},{"location":"commands/jn_get/#examples","title":"Examples","text":"
  • drush jn:get jsonapi/node/article. Get a list of articles back as JSON.
  • drush jn:get jsonapi/node/article | jq. Pretty print JSON by piping to jq. See https://stedolan.github.io/jq/ for lots more jq features.
"},{"location":"commands/jn_get/#arguments","title":"Arguments","text":"
  • url. The JSONAPI URL to request.
"},{"location":"commands/jn_get/#options","title":"Options","text":"
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,tsv,var_dump,var_export,xml,yaml [default: json]
  • --fields=FIELDS. Limit output to only the listed elements. Name top-level elements by key, e.g. \"--fields=name,date\", or use dot notation to select a nested element, e.g. \"--fields=a.b.c as example\".
  • --field=FIELD. Select just one field, and force format to string.
"},{"location":"commands/jn_get/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/list/","title":"list","text":"

List available commands.

"},{"location":"commands/list/#examples","title":"Examples","text":"
  • drush list. List all commands.
  • drush list --filter=devel_generate. Show only commands starting with devel-
  • drush list --format=xml. List all commands in Symfony compatible xml format.
"},{"location":"commands/list/#options","title":"Options","text":"
  • --format[=FORMAT]. [default: listcli]
  • --raw. Show a simple table of command names and descriptions.
  • --filter=FILTER. Restrict command list to those commands defined in the specified file. Omit value to choose from a list of names.
"},{"location":"commands/list/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/locale_check/","title":"locale:check","text":"

Checks for available translation updates.

"},{"location":"commands/locale_check/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/locale_check/#aliases","title":"Aliases","text":"
  • locale-check

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/locale_clear-status/","title":"locale:clear-status","text":"

11.5+

Clears the translation status.

"},{"location":"commands/locale_clear-status/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/locale_clear-status/#aliases","title":"Aliases","text":"
  • locale-clear-status

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/locale_export/","title":"locale:export","text":"

Exports to a gettext translation file.

See Drupal Core: \\Drupal\\locale\\Form\\ExportForm::submitForm

"},{"location":"commands/locale_export/#examples","title":"Examples","text":"
  • drush locale:export nl > nl.po. Export the Dutch translations with all types.
  • drush locale:export nl --types=customized,not-customized > nl.po. Export the Dutch customized and not customized translations.
  • drush locale:export --template > drupal.pot. Export the source strings only as template file for translation.
"},{"location":"commands/locale_export/#arguments","title":"Arguments","text":"
  • [langcode]. The language code of the exported translations.
"},{"location":"commands/locale_export/#options","title":"Options","text":"
  • --template. POT file output of extracted source texts to be translated.
  • --types=TYPES. A comma separated list of string types to include, defaults to all types. Recognized values: not-customized, customized, not-translated
"},{"location":"commands/locale_export/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/locale_export/#aliases","title":"Aliases","text":"
  • locale-export

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/locale_import-all/","title":"locale:import-all","text":"

12.2+

Imports multiple translation files from the defined directory.

"},{"location":"commands/locale_import-all/#examples","title":"Examples","text":"
  • drush locale:import-all /var/www/translations. Import all translations from the defined directory (non-recursively). Supported filename patterns are: {project}-{version}.{langcode}.po, {prefix}.{langcode}.po or {langcode}.po.
  • drush locale:import-all /var/www/translations/custom --type=customized --override=all. Import all custom translations from the defined directory (non-recursively) and override any existing translation. Supported filename patterns are: {project}-{version}.{langcode}.po, {prefix}.{langcode}.po or {langcode}.po.
"},{"location":"commands/locale_import-all/#arguments","title":"Arguments","text":"
  • directory. The path to directory with translation files to import.
"},{"location":"commands/locale_import-all/#options","title":"Options","text":"
  • --type=TYPE. String types to include, defaults to not-customized. Recognized values: not-customized, customized
  • --override=OVERRIDE. Whether and how imported strings will override existing translations. Defaults to the Import behavior configured in the admin interface. Recognized values: none, customized, not-customized, all
"},{"location":"commands/locale_import-all/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/locale_import-all/#aliases","title":"Aliases","text":"
  • locale-import-all
  • locale:import:all

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/locale_import/","title":"locale:import","text":"

Imports to a gettext translation file.

"},{"location":"commands/locale_import/#examples","title":"Examples","text":"
  • drush locale-import nl drupal-8.4.2.nl.po. Import the Dutch drupal core translation.
  • drush locale-import --type=customized nl drupal-8.4.2.nl.po. Import the Dutch drupal core translation. Treat imported strings as custom translations.
  • drush locale-import --override=none nl drupal-8.4.2.nl.po. Import the Dutch drupal core translation. Don't overwrite existing translations. Only append new translations.
  • drush locale-import --override=not-customized nl drupal-8.4.2.nl.po. Import the Dutch drupal core translation. Only override non-customized translations, customized translations are kept.
  • drush locale-import nl custom-translations.po --type=customized --override=all. Import customized Dutch translations and override any existing translation.
"},{"location":"commands/locale_import/#arguments","title":"Arguments","text":"
  • langcode. The language code of the imported translations.
  • file. Path and file name of the gettext file. Relative paths calculated from Drupal root.
"},{"location":"commands/locale_import/#options","title":"Options","text":"
  • --type[=TYPE]. String types to include, defaults to all types. Recognized values: not-customized, customized, not-translated [default: not-customized]
  • --override=OVERRIDE. Whether and how imported strings will override existing translations. Defaults to the Import behavior configured in the admin interface. Recognized values: none, customized, not-customized, all
  • --autocreate-language. Create the language in addition to import.
"},{"location":"commands/locale_import/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/locale_import/#aliases","title":"Aliases","text":"
  • locale-import

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/locale_update/","title":"locale:update","text":"

Imports the available translation updates.

"},{"location":"commands/locale_update/#options","title":"Options","text":"
  • --langcodes=LANGCODES. A comma-separated list of language codes to update. If omitted, all translations will be updated.
"},{"location":"commands/locale_update/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/locale_update/#aliases","title":"Aliases","text":"
  • locale-update

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/maint_get/","title":"maint:get","text":"

11.5+

Get maintenance mode. Returns 1 if enabled, 0 if not.

Consider using maint:status instead when chaining commands.

"},{"location":"commands/maint_get/#examples","title":"Examples","text":"
  • drush maint:get. Print value of maintenance mode in Drupal
"},{"location":"commands/maint_get/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/maint_get/#aliases","title":"Aliases","text":"
  • mget

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/maint_set/","title":"maint:set","text":"

11.5+

Set maintenance mode.

"},{"location":"commands/maint_set/#examples","title":"Examples","text":"
  • drush maint:set 1. Put site into Maintenance mode.
  • drush maint:set 0. Remove site from Maintenance mode.
"},{"location":"commands/maint_set/#arguments","title":"Arguments","text":"
  • value. The value to assign to the state key
"},{"location":"commands/maint_set/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/maint_set/#aliases","title":"Aliases","text":"
  • mset

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/maint_status/","title":"maint:status","text":"

11.5+

Fail if maintenance mode is enabled.

This commands fails with exit code of 3 when maintenance mode is on. This special exit code distinguishes from a failure to complete.

"},{"location":"commands/maint_status/#examples","title":"Examples","text":"
  • drush maint:status && drush cron. Only run cron when Drupal is not in maintenance mode.
"},{"location":"commands/maint_status/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/maint_status/#aliases","title":"Aliases","text":"
  • mstatus

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/migrate_fields-source/","title":"migrate:fields-source","text":"

10.4+

List the fields available for mapping in a source.

"},{"location":"commands/migrate_fields-source/#examples","title":"Examples","text":"
  • migrate:fields-source article. List fields for the source in the article migration.
"},{"location":"commands/migrate_fields-source/#arguments","title":"Arguments","text":"
  • migrationId. The ID of the migration.
"},{"location":"commands/migrate_fields-source/#options","title":"Options","text":"
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • --fields=FIELDS. Available fields: Field name (machine_name), Description (description) [default: machine_name description]
  • --field=FIELD. Select just one field, and force format to string.
"},{"location":"commands/migrate_fields-source/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/migrate_fields-source/#topics","title":"Topics","text":"
  • Defining and running migrations. (docs:migrate)
  • Output formatters and filters: control the command output (docs:output-formats-filters)
"},{"location":"commands/migrate_fields-source/#aliases","title":"Aliases","text":"
  • mfs
  • migrate-fields-source

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/migrate_import/","title":"migrate:import","text":"

10.4+

Perform one or more migration processes.

"},{"location":"commands/migrate_import/#examples","title":"Examples","text":"
  • migrate:import --all. Perform all migrations
  • migrate:import --all --no-progress. Perform all migrations but avoid the progress bar
  • migrate:import --tag=user,main_content. Import all migrations tagged with user and main_content tags
  • migrate:import classification,article. Import new terms and nodes using migration classification and article
  • migrate:import user --limit=2. Import no more than 2 users using the user migration
  • migrate:import user --idlist=5. Import the user record with source ID 5
  • migrate:import node_revision --idlist=1:2,2:3,3:5. Import the node revision record with source IDs [1,2], [2,3], and [3,5]
  • migrate:import user --limit=50 --feedback=20. Import 50 users and show process message every 20th record
  • migrate:import --all --delete. Perform all migrations and delete the destination items that are missing from source
"},{"location":"commands/migrate_import/#arguments","title":"Arguments","text":"
  • [migrationIds]. Comma-separated list of migration IDs.
"},{"location":"commands/migrate_import/#options","title":"Options","text":"
  • --all. Process all migrations
  • --tag=TAG. A comma-separated list of migration tags to import
  • --limit=LIMIT. Limit on the number of items to process in each migration
  • --feedback=FEEDBACK. Frequency of progress messages, in items processed
  • --idlist=IDLIST. Comma-separated list of IDs to import. As an ID may have more than one column, concatenate the columns with the colon ':' separator
  • --update. In addition to processing unprocessed items from the source, update previously-imported items with the current data
  • --force. Force an operation to run, even if all dependencies are not satisfied
  • --execute-dependencies. Execute all dependent migrations first
  • --timestamp. Show progress ending timestamp in progress messages
  • --total. Show total processed item number in progress messages
  • --progress[=PROGRESS]. Show progress bar [default: 1]
  • --delete. Delete destination records missed from the source. Not compatible with --limit and --idlist options, and high_water_property source configuration key.
  • --no-progress. Negate --progress option.
"},{"location":"commands/migrate_import/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/migrate_import/#topics","title":"Topics","text":"
  • Defining and running migrations. (docs:migrate)
"},{"location":"commands/migrate_import/#aliases","title":"Aliases","text":"
  • mim
  • migrate-import

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/migrate_messages/","title":"migrate:messages","text":"

10.4+

View any messages associated with a migration.

"},{"location":"commands/migrate_messages/#examples","title":"Examples","text":"
  • migrate:messages article. Show all messages for the article migration
  • migrate:messages node_revision --idlist=1:2,2:3,3:5. Show messages related to node revision records with source IDs [1,2], [2,3], and [3,5].
  • migrate:messages custom_node_revision --idlist=1:\"r:1\",2:\"r:3\". Show messages related to node revision records with source IDs [1,\"r:1\"], and [2,\"r:3\"].
"},{"location":"commands/migrate_messages/#arguments","title":"Arguments","text":"
  • migrationId. The ID of the migration.
"},{"location":"commands/migrate_messages/#options","title":"Options","text":"
  • --idlist=IDLIST. Comma-separated list of IDs to import. As an ID may have more than one column, concatenate the columns with the colon ':' separator
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • --fields=FIELDS. Available fields: Level (level), Source ID(s) (source_ids), Destination ID(s) (destination_ids), Message (message), Source IDs hash (hash) [default: level source_ids destination_ids message hash]
  • --field=FIELD. Select just one field, and force format to string.
"},{"location":"commands/migrate_messages/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/migrate_messages/#topics","title":"Topics","text":"
  • Defining and running migrations. (docs:migrate)
  • Output formatters and filters: control the command output (docs:output-formats-filters)
"},{"location":"commands/migrate_messages/#aliases","title":"Aliases","text":"
  • mmsg
  • migrate-messages

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/migrate_reset-status/","title":"migrate:reset-status","text":"

10.4+

Reset an active migration's status to idle.

"},{"location":"commands/migrate_reset-status/#arguments","title":"Arguments","text":"
  • migrationId. The ID of migration to reset.
"},{"location":"commands/migrate_reset-status/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/migrate_reset-status/#topics","title":"Topics","text":"
  • Defining and running migrations. (docs:migrate)
"},{"location":"commands/migrate_reset-status/#aliases","title":"Aliases","text":"
  • mrs
  • migrate-reset-status

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/migrate_rollback/","title":"migrate:rollback","text":"

10.4+

Rollback one or more migrations.

"},{"location":"commands/migrate_rollback/#examples","title":"Examples","text":"
  • migrate:rollback --all. Rollback all migrations
  • migrate:rollback --all --no-progress. Rollback all migrations but avoid the progress bar
  • migrate:rollback --tag=user,main_content. Rollback all migrations tagged with user and main_content tags
  • migrate:rollback classification,article. Rollback terms and nodes imported by classification and article migrations
  • migrate:rollback user --idlist=5. Rollback imported user record with source ID 5
"},{"location":"commands/migrate_rollback/#arguments","title":"Arguments","text":"
  • [migrationIds]. Comma-separated list of migration IDs.
"},{"location":"commands/migrate_rollback/#options","title":"Options","text":"
  • --all. Process all migrations
  • --tag=TAG. A comma-separated list of migration tags to rollback
  • --feedback=FEEDBACK. Frequency of progress messages, in items processed
  • --idlist=IDLIST. Comma-separated list of IDs to rollback. As an ID may have more than one column, concatenate the columns with the colon ':' separator
  • --progress[=PROGRESS]. Show progress bar [default: 1]
  • --no-progress. Negate --progress option.
"},{"location":"commands/migrate_rollback/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/migrate_rollback/#topics","title":"Topics","text":"
  • Defining and running migrations. (docs:migrate)
"},{"location":"commands/migrate_rollback/#aliases","title":"Aliases","text":"
  • mr
  • migrate-rollback

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/migrate_status/","title":"migrate:status","text":"

10.4+

List all migrations with current status.

"},{"location":"commands/migrate_status/#examples","title":"Examples","text":"
  • migrate:status. Retrieve status for all migrations
  • migrate:status --tag. Retrieve status for all migrations, grouped by tag
  • migrate:status --tag=user,main_content. Retrieve status for all migrations tagged with user or main_content
  • migrate:status classification,article. Retrieve status for specific migrations
  • migrate:status --field=id. Retrieve a raw list of migration IDs.
  • ms --fields=id,status --format=json. Retrieve a Json serialized list of migrations, each item containing only the migration ID and its status.
"},{"location":"commands/migrate_status/#arguments","title":"Arguments","text":"
  • [migrationIds]. Restrict to a comma-separated list of migrations. Optional.
"},{"location":"commands/migrate_status/#options","title":"Options","text":"
  • --tag=TAG. A comma-separated list of migration tags to list. If only --tag is provided, all tagged migrations will be listed, grouped by tags.
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • --fields=FIELDS. Available fields: Migration ID (id), Status (status), Total (total), Imported (imported), Needing update (needing_update), Unprocessed (unprocessed), Last Imported (last_imported) [default: id status total imported unprocessed last_imported]
  • --field=FIELD. Select just one field, and force format to string.
  • --filter[=FILTER]. Filter output based on provided expression
"},{"location":"commands/migrate_status/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/migrate_status/#topics","title":"Topics","text":"
  • Defining and running migrations. (docs:migrate)
  • Output formatters and filters: control the command output (docs:output-formats-filters)
"},{"location":"commands/migrate_status/#aliases","title":"Aliases","text":"
  • ms
  • migrate-status

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/migrate_stop/","title":"migrate:stop","text":"

10.4+

Stop an active migration operation.

"},{"location":"commands/migrate_stop/#arguments","title":"Arguments","text":"
  • migrationId. The ID of migration to stop.
"},{"location":"commands/migrate_stop/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/migrate_stop/#topics","title":"Topics","text":"
  • Defining and running migrations. (docs:migrate)
"},{"location":"commands/migrate_stop/#aliases","title":"Aliases","text":"
  • mst
  • migrate-stop

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/mk_docs/","title":"mk:docs","text":"

Build a Markdown document for each available Drush command/generator.

This command is an early step when building the www.drush.org static site. Adapt it to build a similar site listing the commands that are available on your site. Also see Drush's Github Actions workflow.

"},{"location":"commands/mk_docs/#examples","title":"Examples","text":"
  • drush mk:docs. Build many .md files in the docs/commands and docs/generators directories.
"},{"location":"commands/mk_docs/#arguments","title":"Arguments","text":"
  • command. The command to execute
"},{"location":"commands/mk_docs/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/php_cli/","title":"php:cli","text":"

Open an interactive shell on a Drupal site.

"},{"location":"commands/php_cli/#examples","title":"Examples","text":"
  • $node = Node::load(1). Entity classes are available without their namespace. For example, Node::load(1) works instead of Drupal\\Node\\entity\\Node::load(1).
  • $paragraph = Paragraph::loadRevision(1). Also, a loadRevision static method is made available for easier load of revisions.
"},{"location":"commands/php_cli/#options","title":"Options","text":"
  • --version-history. Use command history based on Drupal version. Default is per site.
  • --cwd=CWD. A directory to change to before launching the shell. Default is the project root directory
"},{"location":"commands/php_cli/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/php_cli/#topics","title":"Topics","text":"
  • Drush's PHP Shell. (docs:repl)
"},{"location":"commands/php_cli/#aliases","title":"Aliases","text":"
  • php
  • core:cli
  • core-cli

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/php_eval/","title":"php:eval","text":"

Evaluate arbitrary php code after bootstrapping Drupal (if available).

"},{"location":"commands/php_eval/#examples","title":"Examples","text":"
  • drush php:eval '$node = \\Drupal ode\\Entity\\Node::load(1); print $node->getTitle();'. Loads node with nid 1 and then prints its title.
  • drush php:eval \"\\Drupal::service('file_system')->copy('$HOME/Pictures/image.jpg', 'public://image.jpg');\". Copies a file whose path is determined by an environment's variable. Use of double quotes so the variable $HOME gets replaced by its value.
  • drush php:eval \"node_access_rebuild();\". Rebuild node access permissions.
"},{"location":"commands/php_eval/#arguments","title":"Arguments","text":"
  • code. PHP code. If shell escaping gets too tedious, consider using the php:script command.
"},{"location":"commands/php_eval/#options","title":"Options","text":"
  • --format[=FORMAT]. [default: var_dump]
"},{"location":"commands/php_eval/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/php_eval/#aliases","title":"Aliases","text":"
  • eval
  • ev
  • php-eval

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/php_script/","title":"php:script","text":"

Run php a script after a full Drupal bootstrap.

A useful alternative to eval command when your php is lengthy or you can't be bothered to figure out bash quoting. If you plan to share a script with others, consider making a full Drush command instead, since that's more self-documenting. Drush provides commandline options to the script via a variable called $extra.

"},{"location":"commands/php_script/#examples","title":"Examples","text":"
  • drush php:script example --script-path=/path/to/scripts:/another/path. Run a script named example.php from specified paths
  • drush php:script -. Run PHP code from standard input.
  • drush php:script. List all available scripts.
  • drush php:script foo -- apple --cider. Run foo.php script with argument apple and option cider. Note the -- separator.
"},{"location":"commands/php_script/#arguments","title":"Arguments","text":"
  • [extra]....
"},{"location":"commands/php_script/#options","title":"Options","text":"
  • --format[=FORMAT]. [default: var_export]
  • --script-path=SCRIPT-PATH. Additional paths to search for scripts, separated by : (Unix-based systems) or ; (Windows).
"},{"location":"commands/php_script/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/php_script/#topics","title":"Topics","text":"
  • An example Drush script. (docs:script)
"},{"location":"commands/php_script/#aliases","title":"Aliases","text":"
  • scr
  • php-script

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/pm_install/","title":"pm:install","text":"

Enable one or more modules.

"},{"location":"commands/pm_install/#examples","title":"Examples","text":"
  • drush pm:install --simulate content_moderation. Display what modules would be installed but don't install them.
"},{"location":"commands/pm_install/#arguments","title":"Arguments","text":"
  • [modules].... A comma delimited list of modules.
"},{"location":"commands/pm_install/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/pm_install/#aliases","title":"Aliases","text":"
  • in
  • install
  • pm-install
  • en
  • pm-enable
  • pm:enable

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/pm_list/","title":"pm:list","text":"

Show a list of available extensions (modules and themes).

"},{"location":"commands/pm_list/#options","title":"Options","text":"
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • --type[=TYPE]. Only show extensions having a given type. Choices: module, theme. [default: module,theme]
  • --status[=STATUS]. Only show extensions having a given status. Choices: enabled or disabled. [default: enabled,disabled]
  • --package=PACKAGE. Only show extensions having a given project packages (e.g. Development).
  • --core. Only show extensions that are in Drupal core.
  • --no-core. Only show extensions that are not provided by Drupal core.
  • --fields=FIELDS. Available fields: Package (package), Project (project), Name (display_name), Name (name), Type (type), Path (path), Status (status), Version (version)
  • --field=FIELD. Select just one field, and force format to string.
  • --filter[=FILTER]. Filter output based on provided expression
"},{"location":"commands/pm_list/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/pm_list/#topics","title":"Topics","text":"
  • Output formatters and filters: control the command output (docs:output-formats-filters)
"},{"location":"commands/pm_list/#aliases","title":"Aliases","text":"
  • pml
  • pm-list

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/pm_uninstall/","title":"pm:uninstall","text":"

Uninstall one or more modules and their dependent modules.

"},{"location":"commands/pm_uninstall/#examples","title":"Examples","text":"
  • drush pm:uninstall --simulate field_ui. Display what modules would be uninstalled but don't uninstall them.
"},{"location":"commands/pm_uninstall/#arguments","title":"Arguments","text":"
  • [modules].... A comma delimited list of modules.
"},{"location":"commands/pm_uninstall/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/pm_uninstall/#aliases","title":"Aliases","text":"
  • un
  • pmu
  • pm-uninstall

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/queue_delete/","title":"queue:delete","text":"

Delete all items in a specific queue.

"},{"location":"commands/queue_delete/#arguments","title":"Arguments","text":"
  • name. The name of the queue to delete.
"},{"location":"commands/queue_delete/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/queue_delete/#aliases","title":"Aliases","text":"
  • queue-delete

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/queue_list/","title":"queue:list","text":"

Returns a list of all defined queues.

"},{"location":"commands/queue_list/#options","title":"Options","text":"
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • --fields=FIELDS. Available fields: Queue (queue), Items (items), Class (class)
  • --field=FIELD. Select just one field, and force format to string.
  • --filter[=FILTER]. Filter output based on provided expression
"},{"location":"commands/queue_list/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/queue_list/#topics","title":"Topics","text":"
  • Output formatters and filters: control the command output (docs:output-formats-filters)
"},{"location":"commands/queue_list/#aliases","title":"Aliases","text":"
  • queue-list

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/queue_run/","title":"queue:run","text":"

Run a specific queue by name.

"},{"location":"commands/queue_run/#arguments","title":"Arguments","text":"
  • name. The name of the queue to run.
"},{"location":"commands/queue_run/#options","title":"Options","text":"
  • --time-limit=TIME-LIMIT. The maximum number of seconds allowed to run the queue.
  • --items-limit=ITEMS-LIMIT. The maximum number of items allowed to run the queue.
  • --lease-time=LEASE-TIME. The maximum number of seconds that an item remains claimed.
"},{"location":"commands/queue_run/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/queue_run/#aliases","title":"Aliases","text":"
  • queue-run

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/recipe/","title":"recipe","text":"

Applies a recipe to a site.

See https://drupal.org/project/issues/drupal for bug reports and feature requests for this command.

"},{"location":"commands/recipe/#arguments","title":"Arguments","text":"
  • path. The path to the recipe's folder to apply
"},{"location":"commands/recipe/#options","title":"Options","text":"
  • -i, --input=INPUT. An input value to pass to the recipe or one of its dependencies, in the form --input=RECIPE_NAME.INPUT_NAME=VALUE.
"},{"location":"commands/recipe/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/role_create/","title":"role:create","text":"

Create a new role.

"},{"location":"commands/role_create/#examples","title":"Examples","text":"
  • drush role:create 'test_role' 'Test role'. Create a new role with a machine name of 'test_role', and a human-readable name of 'Test role'.
"},{"location":"commands/role_create/#arguments","title":"Arguments","text":"
  • machine_name. The symbolic machine name for the role.
  • [human_readable_name]. A descriptive name for the role.
"},{"location":"commands/role_create/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/role_create/#aliases","title":"Aliases","text":"
  • rcrt
  • role-create

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/role_delete/","title":"role:delete","text":"

Delete a role.

"},{"location":"commands/role_delete/#examples","title":"Examples","text":"
  • drush role:delete 'test_role'. Delete the role 'test_role'.
"},{"location":"commands/role_delete/#arguments","title":"Arguments","text":"
  • machine_name. The symbolic machine name for the role.
"},{"location":"commands/role_delete/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/role_delete/#aliases","title":"Aliases","text":"
  • rdel
  • role-delete

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/role_list/","title":"role:list","text":"

Display roles and their permissions.

"},{"location":"commands/role_list/#examples","title":"Examples","text":"
  • drush role:list --filter='administer nodes'. Display a list of roles that have the administer nodes permission assigned.
  • drush role:list --filter='rid=anonymous'. Display only the anonymous role.
"},{"location":"commands/role_list/#options","title":"Options","text":"
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: yaml]
  • --fields=FIELDS. Available fields: ID (rid), Role Label (label), Permissions (perms)
  • --field=FIELD. Select just one field, and force format to string.
  • --filter[=FILTER]. Filter output based on provided expression
"},{"location":"commands/role_list/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/role_list/#topics","title":"Topics","text":"
  • Output formatters and filters: control the command output (docs:output-formats-filters)
"},{"location":"commands/role_list/#aliases","title":"Aliases","text":"
  • rls
  • role-list

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/role_perm_add/","title":"role:perm:add","text":"

Grant specified permission(s) to a role.

"},{"location":"commands/role_perm_add/#examples","title":"Examples","text":"
  • drush role:perm:add anonymous 'post comments'. Allow anon users to post comments.
  • drush role:perm:add anonymous 'post comments,access content'. Allow anon users to post comments and access content.
"},{"location":"commands/role_perm_add/#arguments","title":"Arguments","text":"
  • machine_name. The role to modify.
  • permissions. The list of permission to grant, delimited by commas.
"},{"location":"commands/role_perm_add/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/role_perm_add/#aliases","title":"Aliases","text":"
  • rap
  • role-add-perm

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/role_perm_remove/","title":"role:perm:remove","text":"

Remove specified permission(s) from a role.

"},{"location":"commands/role_perm_remove/#examples","title":"Examples","text":"
  • drush role:remove-perm anonymous. Remove 2 permissions from anon users.
"},{"location":"commands/role_perm_remove/#arguments","title":"Arguments","text":"
  • machine_name. The role to modify.
  • permissions. The list of permission to grant, delimited by commas.
"},{"location":"commands/role_perm_remove/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/role_perm_remove/#aliases","title":"Aliases","text":"
  • rmp
  • role-remove-perm

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/runserver/","title":"runserver","text":"

Runs PHP's built-in http server for development.

  • Don't use this for production, it is neither scalable nor secure for this use.
  • If you run multiple servers simultaneously, you will need to assign each a unique port.
  • Use Ctrl-C or equivalent to stop the server when complete.
"},{"location":"commands/runserver/#examples","title":"Examples","text":"
  • drush rs 8080. Start a web server on 127.0.0.1, port 8080.
  • drush rs 10.0.0.28:80. Start runserver on 10.0.0.28, port 80.
  • drush rs [::1]:80. Start runserver on IPv6 localhost ::1, port 80.
  • drush rs --dns localhost:8888/user. Start runserver on localhost (using rDNS to determine binding IP), port 8888, and open /user in browser.
  • drush rs /. Start runserver on default IP/port (127.0.0.1, port 8888), and open / in browser.
  • drush rs :9000/admin. Start runserver on 127.0.0.1, port 9000, and open /admin in browser. Note that you need a colon when you specify port and path, but no IP.
  • drush --quiet rs. Silence logging the printing of web requests to the console.
"},{"location":"commands/runserver/#arguments","title":"Arguments","text":"
  • [uri]. IP address and port number to bind to and path to open in web browser. Format is addr:port/path. Only opens a browser if a path is specified.
"},{"location":"commands/runserver/#options","title":"Options","text":"
  • --default-server=DEFAULT-SERVER. A default addr:port/path to use for any values not specified as an argument.
  • --browser[=BROWSER]. Open the URL in the default browser. Use --no-browser to avoid opening a browser. [default: 1]
  • --dns. Resolve hostnames/IPs using DNS/rDNS (if possible) to determine binding IPs and/or human friendly hostnames for URLs and browser.
  • --no-browser. Negate --browser option.
"},{"location":"commands/runserver/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/runserver/#aliases","title":"Aliases","text":"
  • rs
  • serve

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/site_alias/","title":"site:alias","text":"

Show site alias details, or a list of available site aliases.

"},{"location":"commands/site_alias/#examples","title":"Examples","text":"
  • drush site:alias. List all alias records known to drush.
  • drush site:alias @dev. Print an alias record for the alias dev.
"},{"location":"commands/site_alias/#arguments","title":"Arguments","text":"
  • [site]. Site alias or site specification.
"},{"location":"commands/site_alias/#options","title":"Options","text":"
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,tsv,var_dump,var_export,xml,yaml [default: yaml]
  • --fields=FIELDS. Limit output to only the listed elements. Name top-level elements by key, e.g. \"--fields=name,date\", or use dot notation to select a nested element, e.g. \"--fields=a.b.c as example\".
  • --field=FIELD. Select just one field, and force format to string.
  • --filter[=FILTER]. Filter output based on provided expression
"},{"location":"commands/site_alias/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/site_alias/#topics","title":"Topics","text":"
  • Creating site aliases for running Drush on remote sites. (docs:aliases)
  • Output formatters and filters: control the command output (docs:output-formats-filters)
"},{"location":"commands/site_alias/#aliases","title":"Aliases","text":"
  • sa

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/site_install/","title":"site:install","text":"

Install Drupal along with modules/themes/configuration/profile.

"},{"location":"commands/site_install/#examples","title":"Examples","text":"
  • drush si demo_umami --locale=da. (Re)install using the Umami install profile. Set default language to Danish.
  • drush si --db-url=mysql://user:pass@localhost:port/dbname?module=mysql#tableprefix. Install on MySQL using the specified DB params.
  • drush si --db-url=sqlite://sites/example.com/files/.ht.sqlite?module=sqlite#tableprefix. Install on SQLite, using database file sites/example.com/files/.ht.sqlite
  • drush si --db-url=sqlite://:memory:?module=sqlite. Install using SQLite in-memory database, that is not persisted. Useful for testing.
  • drush si --account-pass=mom. Re-install with specified uid1 password.
  • drush si --existing-config. Install based on the yml files stored in the config export/import directory.
  • drush si standard install_configure_form.enable_update_status_emails=NULL. Disable email notification during install and later. If your server has no mail transfer agent, this gets rid of an error during install.
  • drush si core/recipes/standard. Install from the core Standard recipe.
"},{"location":"commands/site_install/#arguments","title":"Arguments","text":"
  • [recipeOrProfile].... An install profile name, or a path to a directory containing a recipe. Relative paths are searched relative to both the Drupal root and the cwd. Defaults to standard unless an install profile is marked as a distribution. Use minimal for a bare minimum installation. Additional info for the install profile may also be provided with additional arguments. Use the format [form name].[parameter name]
"},{"location":"commands/site_install/#options","title":"Options","text":"
  • --db-url=DB-URL. A Drupal 10 style database URL. Required for initial install, not re-install. If omitted and required, Drush prompts for this item.
  • --db-prefix=DB-PREFIX. An optional table prefix to use for initial install.
  • --db-su=DB-SU. Account to use when creating a new database. Must have Grant permission (mysql only). Optional.
  • --db-su-pw=DB-SU-PW. Password for the db-su account. Optional.
  • --account-name[=ACCOUNT-NAME]. uid1 name. [default: admin]
  • --account-mail[=ACCOUNT-MAIL]. uid1 email. [default: admin@example.com]
  • --site-mail[=SITE-MAIL]. From: for system mailings. [default: admin@example.com]
  • --account-pass=ACCOUNT-PASS. uid1 pass. Defaults to a randomly generated password. If desired, set a fixed password in drush.yml.
  • --locale[=LOCALE]. A short language code. Sets the default site language. Language files must already be present. [default: en]
  • --site-name[=SITE-NAME]. Site name [default: Drush Site-Install]
  • --site-pass=SITE-PASS.
  • --sites-subdir=SITES-SUBDIR. Name of directory under sites which should be created.
  • --config-dir=CONFIG-DIR.
  • --existing-config. Configuration from sync directory should be imported during installation.
"},{"location":"commands/site_install/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/site_install/#aliases","title":"Aliases","text":"
  • si
  • sin
  • site-install

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/site_set/","title":"site:set","text":"

Set a site alias that will persist for the current session.

Stores the site alias being used in the current session in a temporary file.

"},{"location":"commands/site_set/#examples","title":"Examples","text":"
  • drush site:set @dev. Set the current session to use the @dev alias.
  • drush site:set user@server/path/to/drupal#sitename. Set the current session to use a remote site via site specification.
  • drush site:set /path/to/drupal#sitename. Set the current session to use a local site via site specification.
  • drush site:set -. Go back to the previously-set site (like cd -).
  • drush site:set. Without an argument, any existing site becomes unset.
"},{"location":"commands/site_set/#arguments","title":"Arguments","text":"
  • [site]. Site specification to use, or - for previous site. Omit this argument to unset.
"},{"location":"commands/site_set/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/site_set/#topics","title":"Topics","text":"
  • Creating site aliases for running Drush on remote sites. (docs:aliases)
"},{"location":"commands/site_set/#aliases","title":"Aliases","text":"
  • use
  • site-set

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/site_ssh/","title":"site:ssh","text":"

Connect to a webserver via SSH, and optionally run a shell command.

"},{"location":"commands/site_ssh/#examples","title":"Examples","text":"
  • drush @mysite ssh. Open an interactive shell on @mysite's server.
  • drush @prod ssh \"ls /tmp\". Run ls /tmp on @prod site.
  • drush @prod ssh \"git pull\". Run git pull on the Drupal root directory on the @prod site.
  • drush ssh \"git pull\". Run git pull on the local Drupal root directory.
"},{"location":"commands/site_ssh/#arguments","title":"Arguments","text":"
  • [code].... Code which should run at remote host.
"},{"location":"commands/site_ssh/#options","title":"Options","text":"
  • --cd=CD. Directory to change to. Defaults to Drupal root.
  • --ssh-options=SSH-OPTIONS. A string of extra options that will be passed to the ssh command (e.g. -p 100)
  • --tty. Create a tty (e.g. to run an interactive program).
"},{"location":"commands/site_ssh/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/site_ssh/#topics","title":"Topics","text":"
  • Creating site aliases for running Drush on remote sites. (docs:aliases)
"},{"location":"commands/site_ssh/#aliases","title":"Aliases","text":"
  • ssh
  • site-ssh

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/sql_cli/","title":"sql:cli","text":"

Open a SQL command-line interface using Drupal's credentials.

"},{"location":"commands/sql_cli/#examples","title":"Examples","text":"
  • drush sql:cli. Open a SQL command-line interface using Drupal's credentials.
  • drush sql:cli --extra=--progress-reports. Open a SQL CLI and skip reading table information.
  • drush sql:cli < example.sql. Import sql statements from a file into the current database.
"},{"location":"commands/sql_cli/#options","title":"Options","text":"
  • --extra=EXTRA. Add custom options to the connect string (e.g. --extra=--skip-column-names)
  • --database[=DATABASE]. The DB connection key if using multiple connections in settings.php. [default: default]
  • --db-url=DB-URL. A Drupal 6 style database URL. For example mysql://root:pass@localhost:port/dbname
  • --target[=TARGET]. The name of a target within the specified database connection. [default: default]
  • --show-passwords. Show password on the CLI. Useful for debugging.
"},{"location":"commands/sql_cli/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/sql_cli/#topics","title":"Topics","text":"
  • Example policy file. (docs:policy)
"},{"location":"commands/sql_cli/#aliases","title":"Aliases","text":"
  • sqlc
  • sql-cli

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/sql_connect/","title":"sql:connect","text":"

A string for connecting to the DB.

"},{"location":"commands/sql_connect/#examples","title":"Examples","text":"
  • $(drush sql:connect) < example.sql. Bash: Import SQL statements from a file into the current database.
  • eval (drush sql:connect) < example.sql. Fish: Import SQL statements from a file into the current database.
"},{"location":"commands/sql_connect/#options","title":"Options","text":"
  • --extra=EXTRA. Add custom options to the connect string (e.g. --extra=--skip-column-names)
  • --database[=DATABASE]. The DB connection key if using multiple connections in settings.php. [default: default]
  • --db-url=DB-URL. A Drupal 6 style database URL. For example mysql://root:pass@localhost:port/dbname
  • --target[=TARGET]. The name of a target within the specified database connection. [default: default]
  • --show-passwords. Show password on the CLI. Useful for debugging.
"},{"location":"commands/sql_connect/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/sql_connect/#aliases","title":"Aliases","text":"
  • sql-connect

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/sql_create/","title":"sql:create","text":"

Create a database.

"},{"location":"commands/sql_create/#examples","title":"Examples","text":"
  • drush sql:create. Create the database for the current site.
  • drush @site.test sql:create. Create the database as specified for @site.test.
  • drush sql:create --db-su=root --db-su-pw=rootpassword --db-url=\"mysql://drupal_db_user:drupal_db_password@127.0.0.1/drupal_db\". Create the database as specified in the db-url option.
"},{"location":"commands/sql_create/#options","title":"Options","text":"
  • --db-su=DB-SU. Account to use when creating a new database.
  • --db-su-pw=DB-SU-PW. Password for the db-su account.
  • --database[=DATABASE]. The DB connection key if using multiple connections in settings.php. [default: default]
  • --db-url=DB-URL. A Drupal 6 style database URL. For example mysql://root:pass@localhost:port/dbname
  • --target[=TARGET]. The name of a target within the specified database connection. [default: default]
  • --show-passwords. Show password on the CLI. Useful for debugging.
"},{"location":"commands/sql_create/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/sql_create/#aliases","title":"Aliases","text":"
  • sql-create

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/sql_drop/","title":"sql:drop","text":"

Drop all tables in a given database.

"},{"location":"commands/sql_drop/#options","title":"Options","text":"
  • --database[=DATABASE]. The DB connection key if using multiple connections in settings.php. [default: default]
  • --db-url=DB-URL. A Drupal 6 style database URL. For example mysql://root:pass@localhost:port/dbname
  • --target[=TARGET]. The name of a target within the specified database connection. [default: default]
  • --show-passwords. Show password on the CLI. Useful for debugging.
"},{"location":"commands/sql_drop/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/sql_drop/#topics","title":"Topics","text":"
  • Example policy file. (docs:policy)
"},{"location":"commands/sql_drop/#aliases","title":"Aliases","text":"
  • sql-drop

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/sql_dump/","title":"sql:dump","text":"

Exports the Drupal DB as SQL using mysqldump or equivalent.

--create-db is used by sql-sync, since including the DROP TABLE statements interferes with the import when the database is created.

"},{"location":"commands/sql_dump/#examples","title":"Examples","text":"
  • drush sql:dump --result-file=../18.sql. Save SQL dump to the directory above Drupal root.
  • drush sql:dump --skip-tables-key=common. Skip standard tables. See Drush configuration
  • drush sql:dump --extra-dump=--no-data. Pass extra option to mysqldump command.
"},{"location":"commands/sql_dump/#options","title":"Options","text":"
  • --result-file=RESULT-FILE. Save to a file. The file should be relative to Drupal root. If --result-file is provided with the value 'auto', a date-based filename will be created under ~/drush-backups directory.
  • --create-db. Omit DROP TABLE statements. Used by Postgres and Oracle only.
  • --data-only. Dump data without statements to create any of the schema.
  • --ordered-dump. Order by primary key and add line breaks for efficient diffs. Slows down the dump. Mysql only.
  • --gzip. Compress the dump using the gzip program which must be in your $PATH.
  • --extra=EXTRA. Add custom arguments/options when connecting to database (used internally to list tables).
  • --extra-dump=EXTRA-DUMP. Add custom arguments/options to the dumping of the database (e.g. mysqldump command).
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,string,table,tsv,var_dump,var_export,xml,yaml [default: null]
  • --database[=DATABASE]. The DB connection key if using multiple connections in settings.php. [default: default]
  • --db-url=DB-URL. A Drupal 6 style database URL. For example mysql://root:pass@localhost:port/dbname
  • --target[=TARGET]. The name of a target within the specified database connection. [default: default]
  • --show-passwords. Show password on the CLI. Useful for debugging.
  • --skip-tables-key=SKIP-TABLES-KEY. A key in the $skip_tables array. @see Site aliases
  • --structure-tables-key=STRUCTURE-TABLES-KEY. A key in the $structure_tables array. @see Site aliases
  • --tables-key=TABLES-KEY. A key in the $tables array.
  • --skip-tables-list=SKIP-TABLES-LIST. A comma-separated list of tables to exclude completely.
  • --structure-tables-list=STRUCTURE-TABLES-LIST. A comma-separated list of tables to include for structure, but not data.
  • --tables-list=TABLES-LIST. A comma-separated list of tables to transfer.
  • --fields=FIELDS. Available fields: Path (path)
  • --field=FIELD. Select just one field, and force format to string.
"},{"location":"commands/sql_dump/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/sql_dump/#topics","title":"Topics","text":"
  • Output formatters and filters: control the command output (docs:output-formats-filters)
"},{"location":"commands/sql_dump/#aliases","title":"Aliases","text":"
  • sql-dump

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/sql_query/","title":"sql:query","text":"

Execute a query against a database.

"},{"location":"commands/sql_query/#examples","title":"Examples","text":"
  • drush sql:query \"SELECT * FROM users WHERE uid=1\". Browse user record. Table prefixes, if used, must be added to table names by hand.
  • drush sql:query --db-prefix \"SELECT * FROM {users}\". Browse user record. Table prefixes are honored. Caution: All curly-braces will be stripped.
  • $(drush sql:connect) < example.sql. Import sql statements from a file into the current database.
  • drush sql:query --file=example.sql. Alternate way to import sql statements from a file.
  • drush php:eval --format=json \"return \\Drupal::service('database')->query('SELECT * FROM users LIMIT 5')->fetchAll()\". Get data back in JSON format. See https://github.com/drush-ops/drush/issues/3071#issuecomment-347929777.
  • $(drush sql:connect) -e \"SELECT * FROM users LIMIT 5;\". Results are formatted in a pretty table with borders and column headers.
"},{"location":"commands/sql_query/#arguments","title":"Arguments","text":"
  • [query]. An SQL query. Ignored if --file is provided.
"},{"location":"commands/sql_query/#options","title":"Options","text":"
  • --result-file[=RESULT-FILE]. Save to a file. The file should be relative to Drupal root.
  • --file=FILE. Path to a file containing the SQL to be run. Gzip files are accepted.
  • --file-delete. Delete the --file after running it.
  • --extra=EXTRA. Add custom options to the connect string (e.g. --extra=--skip-column-names)
  • --db-prefix. Enable replacement of braces in your query.
  • --database[=DATABASE]. The DB connection key if using multiple connections in settings.php. [default: default]
  • --db-url=DB-URL. A Drupal 6 style database URL. For example mysql://root:pass@localhost:port/dbname
  • --target[=TARGET]. The name of a target within the specified database connection. [default: default]
  • --show-passwords. Show password on the CLI. Useful for debugging.
"},{"location":"commands/sql_query/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/sql_query/#aliases","title":"Aliases","text":"
  • sqlq
  • sql-query

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/sql_sanitize/","title":"sql:sanitize","text":"

Sanitize the database by removing or obfuscating user data.

Commandfiles may add custom operations by implementing:

- `#[CLI\\Hook(type: HookManager::ON_EVENT, target: SanitizeCommands::CONFIRMS)]`. Display summary to user before confirmation.\n- `#[CLI\\Hook(type: HookManager::POST_COMMAND_HOOK, target: SanitizeCommands::SANITIZE)]`. Run queries or call APIs to perform sanitizing\n

Several working commandfiles may be found at https://github.com/drush-ops/drush/tree/13.x/src/Commands/sql/sanitize

"},{"location":"commands/sql_sanitize/#examples","title":"Examples","text":"
  • drush sql:sanitize --sanitize-password=no. Sanitize database without modifying any passwords.
  • drush sql:sanitize --allowlist-fields=field_biography,field_phone_number. Sanitizes database but exempts two user fields from modification.
"},{"location":"commands/sql_sanitize/#options","title":"Options","text":"
  • --allowlist-fields[=ALLOWLIST-FIELDS]. A comma delimited list of fields exempt from sanitization.
  • --sanitize-email[=SANITIZE-EMAIL]. The pattern for test email addresses in the sanitization operation, or no to keep email addresses unchanged. May contain replacement patterns %uid, %mail or %name. [default: user+%uid@localhost.localdomain]
  • --sanitize-password[=SANITIZE-PASSWORD]. By default, passwords are randomized. Specify no to disable that. Specify any other value to set all passwords to that value.
  • --ignored-roles[=IGNORED-ROLES]. A comma delimited list of roles. Users with at least one of the roles will be exempt from sanitization.
"},{"location":"commands/sql_sanitize/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/sql_sanitize/#topics","title":"Topics","text":"
  • Drush hooks. (docs:hooks)
"},{"location":"commands/sql_sanitize/#aliases","title":"Aliases","text":"
  • sqlsan
  • sql-sanitize

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/sql_sync/","title":"sql:sync","text":"

Copy DB data from a source site to a target site. Transfers data via rsync.

"},{"location":"commands/sql_sync/#examples","title":"Examples","text":"
  • drush sql:sync @source @self. Copy the database from the site with the alias 'source' to the local site.
  • drush sql:sync @self @target. Copy the database from the local site to the site with the alias 'target'.
  • drush sql:sync #prod #dev. Copy the database from the site in /sites/prod to the site in /sites/dev (multisite installation).
"},{"location":"commands/sql_sync/#arguments","title":"Arguments","text":"
  • source. A site-alias or site specification whose database you want to copy from.
  • target. A site-alias or site specification whose database you want to replace.
"},{"location":"commands/sql_sync/#options","title":"Options","text":"
  • --no-dump. Do not dump the sql database; always use an existing dump file.
  • --no-sync. Do not rsync the database dump file from source to target.
  • --runner=RUNNER. Where to run the rsync command; defaults to the local site. Can also be source or target.
  • --create-db. Create a new database before importing the database dump on the target machine.
  • --db-su=DB-SU. Account to use when creating a new database (e.g. root).
  • --db-su-pw=DB-SU-PW. Password for the db-su account.
  • --target-dump=TARGET-DUMP. The path for storing the sql-dump on target machine.
  • --source-dump[=SOURCE-DUMP]. The path for retrieving the sql-dump on source machine.
  • --extra-dump=EXTRA-DUMP. Add custom arguments/options to the dumping of the database (e.g. mysqldump command).
  • --skip-tables-key=SKIP-TABLES-KEY. A key in the $skip_tables array. @see Site aliases
  • --structure-tables-key=STRUCTURE-TABLES-KEY. A key in the $structure_tables array. @see Site aliases
  • --tables-key=TABLES-KEY. A key in the $tables array.
  • --skip-tables-list=SKIP-TABLES-LIST. A comma-separated list of tables to exclude completely.
  • --structure-tables-list=STRUCTURE-TABLES-LIST. A comma-separated list of tables to include for structure, but not data.
  • --tables-list=TABLES-LIST. A comma-separated list of tables to transfer.
"},{"location":"commands/sql_sync/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/sql_sync/#topics","title":"Topics","text":"
  • Creating site aliases for running Drush on remote sites. (docs:aliases)
  • Example policy file. (docs:policy)
  • Drush configuration. (docs:configuration)
  • Extend sql-sync to allow transfer of the sql dump file via http. (docs:example-sync-via-http)
"},{"location":"commands/sql_sync/#aliases","title":"Aliases","text":"
  • sql-sync

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/state_delete/","title":"state:delete","text":"

Delete a state entry.

"},{"location":"commands/state_delete/#examples","title":"Examples","text":"
  • drush state:del system.cron_last. Delete state entry for system.cron_last.
"},{"location":"commands/state_delete/#arguments","title":"Arguments","text":"
  • key. The state key, for example system.cron_last.
"},{"location":"commands/state_delete/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/state_delete/#aliases","title":"Aliases","text":"
  • sdel
  • state-delete

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/state_get/","title":"state:get","text":"

Display a state value.

"},{"location":"commands/state_get/#examples","title":"Examples","text":"
  • drush state:get system.cron_last. Displays last cron run timestamp
  • drush state:get drupal_css_cache_files --format=yaml. Displays an array of css files in yaml format.
"},{"location":"commands/state_get/#arguments","title":"Arguments","text":"
  • key. The key name.
"},{"location":"commands/state_get/#options","title":"Options","text":"
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,string,table,tsv,var_dump,var_export,xml,yaml [default: string]
  • --fields=FIELDS. Limit output to only the listed elements. Name top-level elements by key, e.g. \"--fields=name,date\", or use dot notation to select a nested element, e.g. \"--fields=a.b.c as example\".
  • --field=FIELD. Select just one field, and force format to string.
"},{"location":"commands/state_get/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/state_get/#aliases","title":"Aliases","text":"
  • sget
  • state-get

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/state_set/","title":"state:set","text":"

Set a state value.

"},{"location":"commands/state_set/#examples","title":"Examples","text":"
  • drush sset system.maintenance_mode 1 --input-format=integer. Put site into Maintenance mode.
  • drush state:set system.cron_last 1406682882 --input-format=integer. Sets a timestamp for last cron run.
  • php -r \"print json_encode(array('drupal', 'simpletest'));\" | drush state-set --input-format=json foo.name -. Set a key to a complex value (e.g. array)
  • drush state:set twig_debug TRUE. Enable the Twig debug mode (since Drupal 10.1)
  • drush state:set twig_autoreload TRUE. Enable Twig auto reload (since Drupal 10.1)
  • drush state:set twig_cache_disable TRUE. Disable the Twig, page, render and dynamic page caches (since Drupal 10.1)
  • drush state:set disable_rendered_output_cache_bins TRUE. Disables render cache, dynamic page cache, and page cache. (since Drupal 10.1)
"},{"location":"commands/state_set/#arguments","title":"Arguments","text":"
  • key. The state key, for example: system.cron_last.
  • value. The value to assign to the state key. Use - to read from Stdin.
"},{"location":"commands/state_set/#options","title":"Options","text":"
  • --input-format[=INPUT-FORMAT]. Type for the value. Other recognized values: string, integer, float, boolean, json, yaml. [default: auto]
"},{"location":"commands/state_set/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/state_set/#aliases","title":"Aliases","text":"
  • sset
  • state-set

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/theme_install/","title":"theme:install","text":"

Install one or more themes.

"},{"location":"commands/theme_install/#arguments","title":"Arguments","text":"
  • [themes].... A comma delimited list of themes.
"},{"location":"commands/theme_install/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/theme_install/#aliases","title":"Aliases","text":"
  • thin
  • theme:enable
  • then
  • theme-enable

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/theme_uninstall/","title":"theme:uninstall","text":"

Uninstall themes.

"},{"location":"commands/theme_uninstall/#arguments","title":"Arguments","text":"
  • [themes].... A comma delimited list of themes.
"},{"location":"commands/theme_uninstall/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/theme_uninstall/#aliases","title":"Aliases","text":"
  • theme:un
  • thun
  • theme-uninstall

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/twig_compile/","title":"twig:compile","text":"

Compile all Twig template(s).

"},{"location":"commands/twig_compile/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/twig_compile/#aliases","title":"Aliases","text":"
  • twigc
  • twig-compile

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/twig_debug/","title":"twig:debug","text":"

12.1+

Enables Twig debug and disables caching Twig templates.

"},{"location":"commands/twig_debug/#arguments","title":"Arguments","text":"
  • mode. Debug mode. Recognized values: on, off.
"},{"location":"commands/twig_debug/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/twig_debug/#aliases","title":"Aliases","text":"
  • twig-debug

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/twig_unused/","title":"twig:unused","text":"

Find potentially unused Twig templates.

Immediately before running this command, web crawl your entire web site. Or use your Production PHPStorage dir for comparison.

"},{"location":"commands/twig_unused/#examples","title":"Examples","text":"
  • drush twig:unused --field=template /var/www/mass.local/docroot/modules/custom,/var/www/mass.local/docroot/themes/custom. Output a simple list of potentially unused templates.
"},{"location":"commands/twig_unused/#arguments","title":"Arguments","text":"
  • searchpaths. A comma delimited list of paths to recursively search
"},{"location":"commands/twig_unused/#options","title":"Options","text":"
  • --format=FORMAT. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • --fields=FIELDS. Available fields: Template (template), Compiled (compiled)
  • --field=FIELD. Select just one field, and force format to string.
"},{"location":"commands/twig_unused/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/twig_unused/#topics","title":"Topics","text":"
  • Output formatters and filters: control the command output (docs:output-formats-filters)

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/updatedb/","title":"updatedb","text":"

Apply any database updates required (as with running update.php).

"},{"location":"commands/updatedb/#options","title":"Options","text":"
  • --cache-clear[=CACHE-CLEAR]. Clear caches upon completion. [default: 1]
  • --no-cache-clear. Negate --cache-clear option.
"},{"location":"commands/updatedb/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/updatedb/#topics","title":"Topics","text":"
  • Deploy command for Drupal. (docs:deploy)
"},{"location":"commands/updatedb/#aliases","title":"Aliases","text":"
  • updb

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/updatedb_status/","title":"updatedb:status","text":"

List any pending database updates.

"},{"location":"commands/updatedb_status/#options","title":"Options","text":"
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • --fields=FIELDS. Available fields: Module (module), Update ID (update_id), Description (description), Type (type)
  • --field=FIELD. Select just one field, and force format to string.
  • --filter[=FILTER]. Filter output based on provided expression
"},{"location":"commands/updatedb_status/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/updatedb_status/#topics","title":"Topics","text":"
  • Output formatters and filters: control the command output (docs:output-formats-filters)
"},{"location":"commands/updatedb_status/#aliases","title":"Aliases","text":"
  • updbst
  • updatedb-status

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/user_block/","title":"user:block","text":"

Block the specified user(s).

"},{"location":"commands/user_block/#examples","title":"Examples","text":"
  • drush user:block user3. Block the user whose name is user3
  • drush user:cancel user3 --delete-content. Delete the user whose name is user3 and delete her content.
  • drush user:cancel user3 --reassign-content. Delete the user whose name is user3 and reassign her content to the anonymous user.
"},{"location":"commands/user_block/#arguments","title":"Arguments","text":"
  • [names]. A comma delimited list of user names.
"},{"location":"commands/user_block/#options","title":"Options","text":"
  • --uid=UID. A comma delimited list of user ids to lookup (an alternative to names).
  • --mail=MAIL. A comma delimited list of emails to lookup (an alternative to names).
"},{"location":"commands/user_block/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/user_block/#aliases","title":"Aliases","text":"
  • ublk
  • user-block

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/user_cancel/","title":"user:cancel","text":"

Block or delete user account(s) with the specified name(s).

  • Existing content may be deleted or reassigned to the Anonymous user. See options.
  • By default only nodes are deleted or reassigned. Custom entity types need own code to support cancellation. See https://www.drupal.org/project/drupal/issues/3043725 for updates.
"},{"location":"commands/user_cancel/#examples","title":"Examples","text":"
  • drush user:cancel username. Block the user account with the name username.
  • drush user:cancel --delete-content username. Delete the user account with the name username and delete all content created by that user.
  • drush user:cancel --reassign-content username. Delete the user account with the name username and assign all her content to the anonymous user.
"},{"location":"commands/user_cancel/#arguments","title":"Arguments","text":"
  • [names]. A comma delimited list of user names.
"},{"location":"commands/user_cancel/#options","title":"Options","text":"
  • --delete-content. Delete the user, and delete all content created by that user.
  • --reassign-content. Delete the user and make its content belong to the anonymous user.
  • --uid=UID. A comma delimited list of user ids to lookup (an alternative to names).
  • --mail=MAIL. A comma delimited list of emails to lookup (an alternative to names).
"},{"location":"commands/user_cancel/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/user_cancel/#aliases","title":"Aliases","text":"
  • ucan
  • user-cancel

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/user_create/","title":"user:create","text":"

Create a user account.

"},{"location":"commands/user_create/#examples","title":"Examples","text":"
  • drush user:create newuser --mail='person@example.com' --password='letmein'. Create a new user account with the name newuser, the email address person@example.com, and the password letmein
"},{"location":"commands/user_create/#arguments","title":"Arguments","text":"
  • name. The name of the account to add
"},{"location":"commands/user_create/#options","title":"Options","text":"
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • --password=PASSWORD. The password for the new account
  • --mail=MAIL. The email address for the new account
  • --fields=FIELDS. Available fields: User ID (uid), User name (name), Password (pass), User mail (mail), User theme (theme), Signature (signature), Signature format (signature_format), User created (user_created), Created (created), User last access (user_access), Last access (access), User last login (user_login), Last login (login), User status (user_status), Status (status), Time zone (timezone), User picture (picture), Initial user mail (init), User roles (roles), Group Audience (group_audience), Language code (langcode), Uuid (uuid)
  • --field=FIELD. Select just one field, and force format to string.
  • --filter[=FILTER]. Filter output based on provided expression
"},{"location":"commands/user_create/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/user_create/#topics","title":"Topics","text":"
  • Output formatters and filters: control the command output (docs:output-formats-filters)
"},{"location":"commands/user_create/#aliases","title":"Aliases","text":"
  • ucrt
  • user-create

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/user_information/","title":"user:information","text":"

Print information about the specified user(s).

"},{"location":"commands/user_information/#examples","title":"Examples","text":"
  • drush user:information someguy,somegal. Display information about the someguy and somegal user accounts.
  • drush user:information --mail=someguy@somegal.com. Display information for a given email account.
  • drush user:information --uid=5. Display information for a given user id.
  • drush uinf --uid=$(drush sqlq \"SELECT GROUP_CONCAT(entity_id) FROM user__roles WHERE roles_target_id = 'administrator'\"). Display information for all administrators.
"},{"location":"commands/user_information/#arguments","title":"Arguments","text":"
  • [names]. A comma delimited list of user names.
"},{"location":"commands/user_information/#options","title":"Options","text":"
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • --uid=UID. A comma delimited list of user ids to lookup (an alternative to names).
  • --mail=MAIL. A comma delimited list of emails to lookup (an alternative to names).
  • --fields=FIELDS. Available fields: User ID (uid), User name (name), Password (pass), User mail (mail), User theme (theme), Signature (signature), Signature format (signature_format), User created (user_created), Created (created), User last access (user_access), Last access (access), User last login (user_login), Last login (login), User status (user_status), Status (status), Time zone (timezone), User picture (picture), Initial user mail (init), User roles (roles), Group Audience (group_audience), Language code (langcode), Uuid (uuid)
  • --field=FIELD. Select just one field, and force format to string.
  • --filter[=FILTER]. Filter output based on provided expression
"},{"location":"commands/user_information/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/user_information/#topics","title":"Topics","text":"
  • Output formatters and filters: control the command output (docs:output-formats-filters)
"},{"location":"commands/user_information/#aliases","title":"Aliases","text":"
  • uinf
  • user-information

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/user_login/","title":"user:login","text":"

Display a one time login link for user ID 1, or another user.

"},{"location":"commands/user_login/#examples","title":"Examples","text":"
  • drush user:login. Open browser to homepage, logged in as uid=1.
  • drush user:login --name=ryan node/add/blog. Open browser (if configured or detected) for a one-time login link for username ryan that redirects to node/add/blog.
  • drush user:login --uid=123. Open browser and login as user with uid \"123\".
  • drush user:login --mail=foo@bar.com. Open browser and login as user with mail \"foo@bar.com\".
"},{"location":"commands/user_login/#arguments","title":"Arguments","text":"
  • [path]. Optional path to redirect to after logging in.
"},{"location":"commands/user_login/#options","title":"Options","text":"
  • --name[=NAME]. A user name to log in as.
  • --uid[=UID]. A user ID to log in as.
  • --mail[=MAIL]. A user email to log in as.
  • --browser[=BROWSER]. Open the URL in the default browser. Use --no-browser to avoid opening a browser. [default: 1]
  • --redirect-port=REDIRECT-PORT. A custom port for redirecting to (e.g., when running within a Vagrant environment)
  • --no-browser. Negate --browser option.
"},{"location":"commands/user_login/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/user_login/#aliases","title":"Aliases","text":"
  • uli
  • user-login

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/user_password/","title":"user:password","text":"

Set the password for the user account with the specified name.

"},{"location":"commands/user_password/#examples","title":"Examples","text":"
  • drush user:password someuser 'correct horse battery staple'. Set the password for the username someuser. See https://xkcd.com/936
"},{"location":"commands/user_password/#arguments","title":"Arguments","text":"
  • name. The name of the account to modify.
  • password. The new password for the account.
"},{"location":"commands/user_password/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/user_password/#aliases","title":"Aliases","text":"
  • upwd
  • user-password

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/user_role_add/","title":"user:role:add","text":"

Add a role to the specified user accounts.

"},{"location":"commands/user_role_add/#examples","title":"Examples","text":"
  • drush user:role:add 'editor' user3. Add the editor role to user3
"},{"location":"commands/user_role_add/#arguments","title":"Arguments","text":"
  • role. The machine name of the role to add.
  • [names]. A comma delimited list of user names.
"},{"location":"commands/user_role_add/#options","title":"Options","text":"
  • --uid=UID. A comma delimited list of user ids to lookup (an alternative to names).
  • --mail=MAIL. A comma delimited list of emails to lookup (an alternative to names).
"},{"location":"commands/user_role_add/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/user_role_add/#aliases","title":"Aliases","text":"
  • urol
  • user-add-role

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/user_role_remove/","title":"user:role:remove","text":"

Remove a role from the specified user accounts.

"},{"location":"commands/user_role_remove/#examples","title":"Examples","text":"
  • drush user:role:remove 'power_user' user3. Remove the power_user role from user3
"},{"location":"commands/user_role_remove/#arguments","title":"Arguments","text":"
  • role. The machine name of the role to add.
  • [names]. A comma delimited list of user names.
"},{"location":"commands/user_role_remove/#options","title":"Options","text":"
  • --uid=UID. A comma delimited list of user ids to lookup (an alternative to names).
  • --mail=MAIL. A comma delimited list of emails to lookup (an alternative to names).
"},{"location":"commands/user_role_remove/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/user_role_remove/#aliases","title":"Aliases","text":"
  • urrol
  • user-remove-role

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/user_unblock/","title":"user:unblock","text":"

Unblock the specified user(s).

"},{"location":"commands/user_unblock/#examples","title":"Examples","text":"
  • drush user:unblock user3. Unblock the user whose name is user3
"},{"location":"commands/user_unblock/#arguments","title":"Arguments","text":"
  • [names]. A comma delimited list of user names.
"},{"location":"commands/user_unblock/#options","title":"Options","text":"
  • --uid=UID. A comma delimited list of user ids to lookup (an alternative to names).
  • --mail=MAIL. A comma delimited list of emails to lookup (an alternative to names).
"},{"location":"commands/user_unblock/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/user_unblock/#aliases","title":"Aliases","text":"
  • uublk
  • user-unblock

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/version/","title":"version","text":"

Show Drush version.

"},{"location":"commands/version/#options","title":"Options","text":"
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • --fields=FIELDS. Available fields: Drush version (drush-version)
  • --field=FIELD. Select just one field, and force format to string.
"},{"location":"commands/version/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/version/#topics","title":"Topics","text":"
  • Output formatters and filters: control the command output (docs:output-formats-filters)

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/views_dev/","title":"views:dev","text":"

Set several Views settings to more developer-oriented values.

"},{"location":"commands/views_dev/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/views_dev/#aliases","title":"Aliases","text":"
  • vd
  • views-dev

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/views_disable/","title":"views:disable","text":"

Disable the specified views.

"},{"location":"commands/views_disable/#examples","title":"Examples","text":"
  • drush vdis frontpage taxonomy_term. Disable the frontpage and taxonomy_term views.
"},{"location":"commands/views_disable/#arguments","title":"Arguments","text":"
  • views. A comma delimited list of view names.
"},{"location":"commands/views_disable/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/views_disable/#aliases","title":"Aliases","text":"
  • vdis
  • views-disable

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/views_enable/","title":"views:enable","text":"

Enable the specified views.

"},{"location":"commands/views_enable/#examples","title":"Examples","text":"
  • drush ven frontpage,taxonomy_term. Enable the frontpage and taxonomy_term views.
"},{"location":"commands/views_enable/#arguments","title":"Arguments","text":"
  • views. A comma delimited list of view names.
"},{"location":"commands/views_enable/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/views_enable/#aliases","title":"Aliases","text":"
  • ven
  • views-enable

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/views_execute/","title":"views:execute","text":"

Execute a view and show a count of the results, or the rendered HTML.

"},{"location":"commands/views_execute/#examples","title":"Examples","text":"
  • drush views:execute my_view. Show the rendered HTML for the default display for the my_view View.
  • drush views:execute my_view page_1 3 --count. Show a count of my_view:page_1 where the first contextual filter value is 3.
  • drush views:execute my_view page_1 3,foo. Show the rendered HTML of my_view:page_1 where the first two contextual filter values are 3 and 'foo' respectively.
"},{"location":"commands/views_execute/#arguments","title":"Arguments","text":"
  • view_name. The name of the view to execute.
  • [display]. The display ID to execute. If none specified, the default display will be used.
  • [view_args]. A comma delimited list of values, corresponding to contextual filters.
"},{"location":"commands/views_execute/#options","title":"Options","text":"
  • --count[=COUNT]. Display a count of the results instead of each row.
  • --show-admin-links. Show contextual admin links in the rendered markup.
"},{"location":"commands/views_execute/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/views_execute/#aliases","title":"Aliases","text":"
  • vex
  • views-execute

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/views_list/","title":"views:list","text":"

Get a list of all views in the system.

"},{"location":"commands/views_list/#examples","title":"Examples","text":"
  • drush vl. Show a list of all available views.
  • drush vl --name=blog. Show a list of views which names contain 'blog'.
  • drush vl --tags=tag1,tag2. Show a list of views tagged with 'tag1' or 'tag2'.
  • drush vl --status=enabled. Show a list of enabled views.
"},{"location":"commands/views_list/#options","title":"Options","text":"
  • --name=NAME.
  • --tags=TAGS. A comma-separated list of views tags by which to filter the results.
  • --status=STATUS. Filter views by status. Choices: enabled, disabled.
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • --fields=FIELDS. Available fields: Machine name (machine-name), Name (label), Description (description), Status (status), Tag (tag)
  • --field=FIELD. Select just one field, and force format to string.
  • --filter[=FILTER]. Filter output based on provided expression
"},{"location":"commands/views_list/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/views_list/#topics","title":"Topics","text":"
  • Output formatters and filters: control the command output (docs:output-formats-filters)
"},{"location":"commands/views_list/#aliases","title":"Aliases","text":"
  • vl
  • views-list

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/watchdog_delete/","title":"watchdog:delete","text":"

Delete watchdog log records.

"},{"location":"commands/watchdog_delete/#examples","title":"Examples","text":"
  • drush watchdog:delete all. Delete all messages.
  • drush watchdog:delete 64. Delete messages with id 64.
  • drush watchdog:delete \"cron run succesful\". Delete messages containing the string \"cron run succesful\".
  • drush watchdog:delete --severity=Notice. Delete all messages with a severity of notice.
  • drush watchdog:delete --type=cron. Delete all messages of type cron.
"},{"location":"commands/watchdog_delete/#arguments","title":"Arguments","text":"
  • [substring]. Delete all log records with this text in the messages.
"},{"location":"commands/watchdog_delete/#options","title":"Options","text":"
  • --severity=SEVERITY. Delete messages of a given severity level.
  • --type=TYPE. Delete messages of a given type.
"},{"location":"commands/watchdog_delete/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/watchdog_delete/#aliases","title":"Aliases","text":"
  • wd-del
  • wd-delete
  • wd
  • watchdog-delete

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/watchdog_list/","title":"watchdog:list","text":"

Interactively filter the watchdog message listing.

"},{"location":"commands/watchdog_list/#examples","title":"Examples","text":"
  • drush watchdog:list. Prompt for message type or severity, then run watchdog:show.
"},{"location":"commands/watchdog_list/#arguments","title":"Arguments","text":"
  • [substring]. A substring to look search in error messages.
"},{"location":"commands/watchdog_list/#options","title":"Options","text":"
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • --count[=COUNT]. The number of messages to show. [default: 10]
  • --extended. Return extended information about each message.
  • --severity. Restrict to messages of a given severity level (numeric or string).
  • --type. Restrict to messages of a given type.
  • --fields=FIELDS. Available fields: ID (wid), Type (type), Message (message), Severity (severity), Location (location), Hostname (hostname), Date (date), Username (username)
  • --field=FIELD. Select just one field, and force format to string.
  • --filter[=FILTER]. Filter output based on provided expression
"},{"location":"commands/watchdog_list/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/watchdog_list/#topics","title":"Topics","text":"
  • Output formatters and filters: control the command output (docs:output-formats-filters)
"},{"location":"commands/watchdog_list/#aliases","title":"Aliases","text":"
  • wd-list,watchdog-list

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/watchdog_show-one/","title":"watchdog:show-one","text":"

Show one log record by ID.

"},{"location":"commands/watchdog_show-one/#arguments","title":"Arguments","text":"
  • id. Watchdog Id
"},{"location":"commands/watchdog_show-one/#options","title":"Options","text":"
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,string,table,tsv,var_dump,var_export,xml,yaml [default: yaml]
  • --fields=FIELDS. Limit output to only the listed elements. Name top-level elements by key, e.g. \"--fields=name,date\", or use dot notation to select a nested element, e.g. \"--fields=a.b.c as example\".
  • --field=FIELD. Select just one field, and force format to string.
"},{"location":"commands/watchdog_show-one/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/watchdog_show-one/#aliases","title":"Aliases","text":"
  • wd-one
  • watchdog-show-one

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/watchdog_show/","title":"watchdog:show","text":"

Show watchdog messages.

"},{"location":"commands/watchdog_show/#examples","title":"Examples","text":"
  • drush watchdog:show. Show a listing of most recent 10 messages.
  • drush watchdog:show \"cron run successful\". Show a listing of most recent 10 messages containing the string cron run successful.
  • drush watchdog:show --count=46. Show a listing of most recent 46 messages.
  • drush watchdog:show --severity=Notice. Show a listing of most recent 10 messages with a severity of notice.
  • drush watchdog:show --severity-min=Warning. Show a listing of most recent 10 messages with a severity of warning or higher.
  • drush watchdog:show --type=php. Show a listing of most recent 10 messages of type php
"},{"location":"commands/watchdog_show/#arguments","title":"Arguments","text":"
  • [substring]. A substring to look search in error messages.
"},{"location":"commands/watchdog_show/#options","title":"Options","text":"
  • --format[=FORMAT]. Format the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml [default: table]
  • --count[=COUNT]. The number of messages to show. [default: 10]
  • --severity=SEVERITY. Restrict to messages of a given severity level (numeric or string).
  • --severity-min=SEVERITY-MIN. Restrict to messages of a given severity level and higher.
  • --type=TYPE. Restrict to messages of a given type.
  • --extended. Return extended information about each message.
  • --fields=FIELDS. Available fields: ID (wid), Type (type), Message (message), Severity (severity), Location (location), Hostname (hostname), Date (date), Username (username), Uid (uid)
  • --field=FIELD. Select just one field, and force format to string.
  • --filter[=FILTER]. Filter output based on provided expression
"},{"location":"commands/watchdog_show/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/watchdog_show/#topics","title":"Topics","text":"
  • Output formatters and filters: control the command output (docs:output-formats-filters)
"},{"location":"commands/watchdog_show/#aliases","title":"Aliases","text":"
  • wd-show
  • ws
  • watchdog-show

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/watchdog_tail/","title":"watchdog:tail","text":"

10.6+

Tail watchdog messages.

"},{"location":"commands/watchdog_tail/#examples","title":"Examples","text":"
  • drush watchdog:tail. Continuously tail watchdog messages.
  • drush watchdog:tail \"cron run successful\". Continuously tail watchdog messages, filtering on the string cron run successful.
  • drush watchdog:tail --severity=Notice. Continuously tail watchdog messages, filtering severity of notice.
  • drush watchdog:tail --severity-min=Warning. Continuously tail watchdog messages, filtering for a severity of warning or higher.
  • drush watchdog:tail --type=php. Continuously tail watchdog messages, filtering on type equals php.
"},{"location":"commands/watchdog_tail/#arguments","title":"Arguments","text":"
  • [substring]. A substring to look search in error messages.
"},{"location":"commands/watchdog_tail/#options","title":"Options","text":"
  • --severity=SEVERITY. Restrict to messages of a given severity level (numeric or string).
  • --severity-min=SEVERITY-MIN. Restrict to messages of a given severity level and higher.
  • --type=TYPE. Restrict to messages of a given type.
  • --extended. Return extended information about each message.
"},{"location":"commands/watchdog_tail/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/watchdog_tail/#aliases","title":"Aliases","text":"
  • wd-tail
  • wt
  • watchdog-tail

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/yaml_get_value/","title":"yaml:get:value","text":"

12.0+

Get a value for a specific key in a YAML file.

See https://github.com/grasmash/yaml-cli for a README and bug reports.

"},{"location":"commands/yaml_get_value/#arguments","title":"Arguments","text":"
  • filename. The filename of the YAML file
  • key. The key for the value to get, in dot notation.
"},{"location":"commands/yaml_get_value/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/yaml_get_value/#aliases","title":"Aliases","text":"
  • y:get:value

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/yaml_lint/","title":"yaml:lint","text":"

12.0+

Validates that a given YAML file has valid syntax.

See https://github.com/grasmash/yaml-cli for a README and bug reports.

"},{"location":"commands/yaml_lint/#arguments","title":"Arguments","text":"
  • filename. The filename of the YAML file
"},{"location":"commands/yaml_lint/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/yaml_lint/#aliases","title":"Aliases","text":"
  • y:lint

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/yaml_unset_key/","title":"yaml:unset:key","text":"

12.0+

Unset a specific key in a YAML file.

See https://github.com/grasmash/yaml-cli for a README and bug reports.

"},{"location":"commands/yaml_unset_key/#arguments","title":"Arguments","text":"
  • filename. The filename of the YAML file
  • key. The key to unset, in dot notation
"},{"location":"commands/yaml_unset_key/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/yaml_unset_key/#aliases","title":"Aliases","text":"
  • y:unset:key

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/yaml_update_key/","title":"yaml:update:key","text":"

12.0+

Update a specific key in a YAML file.

See https://github.com/grasmash/yaml-cli for a README and bug reports.

"},{"location":"commands/yaml_update_key/#arguments","title":"Arguments","text":"
  • filename. The filename of the YAML file
  • key. The original key, in dot notation
  • new-key. The new key, in dot notation
"},{"location":"commands/yaml_update_key/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/yaml_update_key/#aliases","title":"Aliases","text":"
  • y:update:key

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"commands/yaml_update_value/","title":"yaml:update:value","text":"

12.0+

Update the value for a specific key in a YAML file.

See https://github.com/grasmash/yaml-cli for a README and bug reports.

"},{"location":"commands/yaml_update_value/#arguments","title":"Arguments","text":"
  • filename. The filename of the YAML file
  • key. The key for the value to set, in dot notation
  • value. The new value
"},{"location":"commands/yaml_update_value/#options","title":"Options","text":"
  • -t, --type=TYPE. Set the variable type for the value. Accepted types are int, integer, bool, boolean, str, and string.
"},{"location":"commands/yaml_update_value/#global-options","title":"Global Options","text":"
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.
"},{"location":"commands/yaml_update_value/#aliases","title":"Aliases","text":"
  • y:update:value

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.
"},{"location":"contribute/CONTRIBUTING/","title":"Guidelines","text":"

Drush is built by people like you! Please join us.

"},{"location":"contribute/CONTRIBUTING/#git-and-pull-requests","title":"Git and Pull requests","text":"
  • Contributions are submitted, reviewed, and accepted using GitHub pull requests.
  • The latest changes are in the 13.x branch. PR's should initially target this branch.
  • See the test-specific README.md for instructions on running the test suite. Test before you push. Get familiar with Unish, our test suite. Optionally run tests in the provided Docker containers.
  • We maintain branches named 13.x, 12.x, etc. These are release branches. From these branches, we make new tags for patch and minor versions.
"},{"location":"contribute/CONTRIBUTING/#development-environment","title":"Development Environment","text":"
  • You may choose to use the DDEV for a standardized development environment.
  • See composer run-script -l for a list of helper scripts.
"},{"location":"contribute/CONTRIBUTING/#coding-style","title":"Coding style","text":"
  • Do write comments. You don't have to comment every line, but if you come up with something that's a bit complex/weird, just leave a comment. Bear in mind that you will probably leave the project at some point and that other people will read your code. Undocumented huge amounts of code are nearly worthless!
  • We use PSR-12.
  • Keep it compatible. Do not introduce changes to the public API, or configurations too casually. Don't make incompatible changes without good reasons!
  • Run composer cs to check the project for coding style issues and run composer cbf to fix them automatically where possible. These scripts use PHP_CodeSniffer in background.
"},{"location":"contribute/CONTRIBUTING/#documentation","title":"Documentation","text":"
  • The docs are on our web site. You may also read these from within Drush, with the drush topic command.
  • Documentation should be kept up-to-date. This means, whenever you add a new API method, add a new hook or change the database model, pack the relevant changes to the docs in the same pull request.
"},{"location":"contribute/unish/","title":"Unish","text":"

Drush's test suite (aka Unish) is based on PHPUnit. In order to maintain high quality, our tests are run on every push. See CircleCi.

"},{"location":"contribute/unish/#usage","title":"Usage","text":"
  1. git clone https://github.com/drush-ops/drush.git
  2. cd drush
  3. composer install
  4. Review the configuration settings in tests/phpunit.xml.dist. If customization is needed, copy phpunit.xml.dist to phpunit.xml and edit away.
  5. Run all test suites: composer test
"},{"location":"contribute/unish/#ddev","title":"DDEV","text":"

11.0+

Drush's own tests may be run within provided Docker containers via DDEV

  • Start containers: ddev start
  • Run a test: ddev exec drupal composer functional -- --filter testUserRole
  • See the DDEV's XDebug docs for help on enabling Xdebug.
"},{"location":"contribute/unish/#advanced-usage","title":"Advanced usage","text":"
  • Run only one test suite
    • composer unit
    • composer integration
    • composer functional
  • Run only tests matching a regex: composer functional -- --filter testUserRole
  • Skip slow tests (usually those with network usage): composer functional -- --exclude-group slow
  • XML results: composer functional -- --log-junit results.xml
  • Ad-hoc testing with the SUT
    • composer sut:si. See composer.json for details.
    • UNISH_DIRTY=1 composer functional -- --filter testUserRole
    • ./drush @sut.dev status
"},{"location":"contribute/unish/#about-the-test-suites","title":"About the Test Suites","text":"
  • Unit tests operate on functions that take values and return results without creating side effects. No database connection is required to run these tests, and no Drupal site is set up.
  • Integration tests set up a test dependency injection container and operate by calling the Symfony Application APIs directly. A Drupal site called the System Under Test is set up and used for the tests. The SUT is set up and installed only once, and then is re-used for all tests. Integration tests therefore cannot make destructive changes to the SUT database. Also, Drupal is bootstrapped only once (always using the standard Drupal kernel, never the install or update kernel). This means that all commands run at @bootstrap full, and it is not possible to test loading different Drush configuration files and so on. It is not possible to test argument / option parsing. The shutdown and error handlers are not installed, so PHP deprecation warnings will be evidenced in the integration tests.
  • Functional tests operate by execing the Drush executable. All functional tests therefore run in their own separate processes. The Drupal System Under Test is set up every time it is needed by any functional test. It is therefore okay if a functional test changes the state of the SUT. The codebase is re-used, so no destructive changes should be made to the code.
"},{"location":"contribute/unish/#drush-test-traits","title":"Drush Test Traits","text":"

Drush provides test traits that may be used to test your own Drush extensions. Adding the traits varies slightly depending how you package your Drush extension.

  • An extension that ships inside a contributed module - DevelCommandsTest for an example. More examples are SchedulerDrushTest and Views Bulk Operations. Remember to add drush/drush to your module's composer.json (require-dev section).
  • A standalone Drush extension or one that ships outside of a module - example drush extension

Once you successfully have use Drush\\TestTraits\\DrushTestTrait in your test class, you are able to write simple tests that call your extension's commands and makes assertions against the output.

    public function testMyCommand()\n    {\n        $this->drush('my:command', ['param'], ['flag' => 'value']);\n        $this->assertOutputEquals('The parameter is \"param\" and the \"flag\" option is \"value\"');\n    }\n

"},{"location":"examples/ArtCommands.php/","title":"ArtCommands.php","text":"
<?php\n\nnamespace Drush\\Commands;\n\nuse Consolidation\\AnnotatedCommand\\AnnotationData;\nuse Consolidation\\AnnotatedCommand\\CommandData;\nuse Consolidation\\AnnotatedCommand\\Events\\CustomEventAwareInterface;\nuse Consolidation\\AnnotatedCommand\\Events\\CustomEventAwareTrait;\nuse Consolidation\\AnnotatedCommand\\Hooks\\HookManager;\nuse Consolidation\\OutputFormatters\\StructuredData\\RowsOfFields;\nuse Drush\\Attributes as CLI;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n/**\n * Run these commands using the --include option - e.g. `drush --include=/path/to/drush/examples art sandwich`\n *\n * See [Drush Test Traits](https://github.com/drush-ops/drush/blob/13.x/docs/contribute/unish.md#about-the-test-suites) for info on testing Drush commands.\n */\n\nclass ArtCommands extends DrushCommands implements CustomEventAwareInterface\n{\n    use CustomEventAwareTrait;\n\n    /** @var string[] */\n    protected ?array $arts;\n\n    /**\n     * Show a fabulous picture.\n     */\n    #[CLI\\Command(name: 'artwork:show', aliases: ['arts'])]\n    #[CLI\\Argument(name: 'art', description: 'The name of the art to display')]\n    #[CLI\\Usage(name: 'drush art sandwich', description: 'Show a marvelous picture of a sandwich with pickles.')]\n    public function art($art = '')\n    {\n        $data = $this->getArt();\n        $name = $data[$art]['name'];\n        $description = $data[$art]['description'];\n        $path = $data[$art]['path'];\n        $msg = dt(\n            'Okay. Here is {art}: {description}',\n            ['art' => $name, 'description' => $description]\n        );\n        $this->output()->writeln(\"\\n\" . $msg . \"\\n\");\n        $this->printFile($path);\n    }\n\n    /**\n     * Show a table of information about available art.\n     */\n    #[CLI\\Command(name: 'artwork:list', aliases: ['artls'])]\n    #[CLI\\FieldLabels(labels: ['name' => 'Name', 'description' => 'Description', 'path' => 'Path'])]\n    #[CLI\\DefaultTableFields(fields: ['name', 'description'])]\n    #[CLI\\FilterDefaultField(field: 'name')]\n    public function listArt($options = ['format' => 'table']): RowsOfFields\n    {\n        $data = $this->getArt();\n        return new RowsOfFields($data);\n    }\n\n    /**\n     * Commandfiles may also add topics.  These will appear in\n     * the list of topics when `drush topic` is executed.\n     * To view the topic below, run `drush --include=/full/path/to/examples topic`\n     */\n\n    /**\n     * Ruminations on the true meaning and philosophy of artwork.\n     */\n    #[CLI\\Command(name: 'artwork:explain')]\n    #[CLI\\Topics(isTopic: true, path: __DIR__ . '/art-topic.md')]\n    #[CLI\\Help(hidden: true)]\n    public function ruminate(): void\n    {\n        self::printFile($this->commandData);\n    }\n\n    /**\n     * Return the available built-in art. Any Drush commandfile may provide\n     * more art by implementing a 'drush-art' on-event hook. This on-event\n     * hook is defined in the 'findArt' method below.\n     */\n    #[CLI\\Hook(type: HookManager::ON_EVENT, target: 'drush-art')]\n    public function builtInArt()\n    {\n        return [\n            'drush' => [\n                'name' => 'Drush',\n                'description' => 'The Drush logo.',\n                'path' => __DIR__ . '/art/drush-nocolor.txt',\n            ],\n            'sandwich' => [\n                'name' => 'Sandwich',\n                'description' => 'A tasty meal with bread often consumed at lunchtime.',\n                'path' => __DIR__ . '/art/sandwich-nocolor.txt',\n            ],\n        ];\n    }\n\n    #[CLI\\Hook(type: HookManager::INTERACT, target: 'artwork:show')]\n    public function interact(InputInterface $input, OutputInterface $output, AnnotationData $annotationData)\n    {\n        // If the user did not specify any artwork, then prompt for one.\n        $art = $input->getArgument('art');\n        if (empty($art)) {\n            $data = $this->getArt();\n            $selections = $this->convertArtListToKeyValue($data);\n            $selection = $this->io()->select('Select art to display', $selections);\n            $input->setArgument('art', $selection);\n        }\n    }\n\n    #[CLI\\Hook(type: HookManager::ARGUMENT_VALIDATOR, target: 'artwork:show')]\n    public function artValidate(CommandData $commandData)\n    {\n        $art = $commandData->input()->getArgument('art');\n        $data = $this->getArt();\n        if (!isset($data[$art])) {\n            throw new \\Exception(dt('I do not have any art called \"{name}\".', ['name' => $art]));\n        }\n    }\n\n    /**\n     * Get a list of available artwork. Cache result for future fast access.\n     */\n    protected function getArt(): array\n    {\n        if (!isset($this->arts)) {\n            $this->arts = $this->findArt();\n        }\n        return $this->arts;\n    }\n\n    /**\n     * Use custom defined on-event hook 'drush-art' to find available artwork.\n     */\n    protected function findArt()\n    {\n        $arts = [];\n        $handlers = $this->getCustomEventHandlers('drush-art');\n        foreach ($handlers as $handler) {\n            $handlerResult = $handler();\n            $arts = array_merge($arts, $handlerResult);\n        }\n        return $arts;\n    }\n\n    /**\n     * Given a list of artwork, convert to a 'key' => 'Name: Description' array.\n     */\n    protected function convertArtListToKeyValue(array $data): array\n    {\n        $result = [];\n        foreach ($data as $key => $item) {\n            $result[$key] = $item['name'] . ': ' . $item['description'];\n        }\n        return $result;\n    }\n}\n
"},{"location":"examples/PolicyCommands.php/","title":"PolicyCommands.php","text":"
<?php\n\nnamespace Drush\\Commands;\n\nuse Consolidation\\AnnotatedCommand\\CommandData;\nuse Consolidation\\AnnotatedCommand\\Hooks\\HookManager;\nuse Drush\\Attributes as CLI;\nuse Drush\\Commands\\core\\RsyncCommands;\nuse Drush\\Commands\\core\\UpdateDBCommands;\nuse Drush\\Commands\\sql\\SqlSyncCommands;\n\n/**\n * Load this commandfile using the --include option - e.g. `drush --include=/path/to/drush/examples`\n *\n * See [Drush Test Traits](https://github.com/drush-ops/drush/blob/13.x/docs/contribute/unish.md#about-the-test-suites) for info on testing Drush commands.\n */\n\nclass PolicyCommands extends DrushCommands\n{\n    /**\n     * Prevent catastrophic braino. Note that this file has to be local to the\n     * machine that initiates the sql:sync command.\n     *\n     * @throws \\Exception\n     */\n    #[CLI\\Hook(type: HookManager::ARGUMENT_VALIDATOR, target: SqlSyncCommands::SYNC)]\n    public function sqlSyncValidate(CommandData $commandData)\n    {\n        if ($commandData->input()->getArgument('target') == '@prod') {\n            throw new \\Exception(dt('Per !file, you may never overwrite the production database.', ['!file' => __FILE__]));\n        }\n    }\n\n    /**\n     * Limit rsync operations to production site.\n     */\n    #[CLI\\Hook(type: HookManager::ARGUMENT_VALIDATOR, target: RsyncCommands::RSYNC)]\n    public function rsyncValidate(CommandData $commandData)\n    {\n        if (preg_match(\"/^@prod/\", $commandData->input()->getArgument('target'))) {\n            throw new \\Exception(dt('Per !file, you may never rsync to the production site.', ['!file' => __FILE__]));\n        }\n    }\n\n    /**\n     * Unauthorized may not execute updates.\n     */\n    #[CLI\\Hook(type: HookManager::ARGUMENT_VALIDATOR, target: UpdateDBCommands::UPDATEDB)]\n    public function validateUpdateDb(CommandData $commandData)\n    {\n        if (!$commandData->input()->getOption('secret') == 'mysecret') {\n            throw new \\Exception(dt('UpdateDb command requires a secret token per site policy.'));\n        }\n    }\n\n    #[CLI\\Hook(type: HookManager::OPTION_HOOK, target: UpdateDBCommands::UPDATEDB)]\n    #[CLI\\Option(name: 'secret', description: 'A required token else user may not run updatedb command.')]\n    public function optionsetUpdateDb($options = ['secret' => self::REQ])\n    {\n    }\n}\n
"},{"location":"examples/SiteAliasAlterCommands.php/","title":"SiteAliasAlterCommands.php","text":"
<?php\n\nnamespace Drush\\Commands;\n\nuse Consolidation\\AnnotatedCommand\\AnnotationData;\nuse Consolidation\\AnnotatedCommand\\Hooks\\HookManager;\nuse Consolidation\\SiteAlias\\SiteAliasManagerInterface;\nuse Drush\\Attributes as CLI;\nuse Drush\\Boot\\DrupalBootLevels;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\n\n/**\n * Load this example by using the --include option - e.g. `drush --include=/path/to/drush/examples`\n */\n#[CLI\\Bootstrap(DrupalBootLevels::NONE)]\nclass SiteAliasAlterCommands extends DrushCommands\n{\n    use AutowireTrait;\n\n    public function __construct(\n        private readonly SiteAliasManagerInterface $siteAliasManager\n    ) {\n        parent::__construct();\n    }\n\n    /**\n     * A few example alterations to site aliases.\n     */\n    #[CLI\\Hook(type: HookManager::PRE_INITIALIZE, target: '*')]\n    public function alter(InputInterface $input, AnnotationData $annotationData)\n    {\n        $self = $this->siteAliasManager->getSelf();\n        if ($self->isRemote()) {\n            // Always pass along ssh keys.\n            if (!$self->has('ssh.options')) {\n                // Don't edit the alias - edit the general config service instead.\n                $this->getConfig()->set('ssh.options', '-o ForwardAgent=yes');\n            }\n\n            // Change the SSH user.\n            $input->setOption('remote-user', 'mw2');\n\n            // Test to see if specific environment really exists in wildcard\n            // aliases, but only if the target is a specific host.\n            $host = $self->get('host');\n            if (preg_match('#\\.myserver.com$#', $host)) {\n                $ip = gethostbyname($host);\n                // If the return value of gethostbyname equals its input parameter,\n                // that indicates failure.\n                if ($host == $ip) {\n                    $aliasName = $self->name();\n                    throw new \\Exception(\"The alias $aliasName refers to an environment that does not exist.\");\n                }\n            }\n        }\n    }\n}\n
"},{"location":"examples/SyncViaHttpCommands.php/","title":"SyncViaHttpCommands.php","text":"
<?php\n\nnamespace Drush\\Commands;\n\nuse Consolidation\\AnnotatedCommand\\CommandData;\nuse Consolidation\\AnnotatedCommand\\Hooks\\HookManager;\nuse Drush\\Attributes as CLI;\nuse Drush\\Commands\\DrushCommands;\nuse Drush\\Commands\\sql\\SqlSyncCommands;\nuse Drush\\Drush;\nuse Drush\\Exec\\ExecTrait;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\n/**\n * Load this commandfile using the --include option - e.g. `drush --include=/path/to/drush/examples`\n */\n\nclass SyncViaHttpCommands extends DrushCommands\n{\n  /**\n   * When a hook extends a command with additional options, it must\n   * implement declare those option(s) in a @hook option like this one.  Doing so will add\n   * the option to the help text for the modified command, and will also\n   * allow the new option to be specified on the command line.  Without\n   * this, Drush will fail with an error when a user attempts to use\n   * an unknown option.\n   */\n    #[CLI\\Hook(type: HookManager::OPTION_HOOK, target: SqlSyncCommands::SYNC)]\n    #[CLI\\Option(name: 'http-sync', description: 'Copy the database via http instead of rsync.  Value is the url that the existing database dump can be found at.')]\n    #[CLI\\Option(name: 'http-sync-user', description: 'Username for the protected directory containing the sql dump.')]\n    #[CLI\\Option(name: 'http-sync-password', description: 'Password for the same directory.')]\n    public function optionsetSqlSync()\n    {\n    }\n\n    /**\n     * During the pre hook, determine if the http-sync option has been\n     * specified.  If it has been, then disable the normal ssh + rsync\n     * dump-and-transfer that sql-sync usually does, and transfer the\n     * database dump via an http download.\n     */\n    #[CLI\\Hook(type: HookManager::PRE_COMMAND_HOOK, target: SqlSyncCommands::SYNC)]\n    public function preSqlSync(CommandData $commandData)\n    {\n        $sql_dump_download_url = $commandData->input()->getOption('http-sync');\n        if (!empty($sql_dump_download_url)) {\n            $user = $commandData->input()->getOption('http-sync-user');\n            $password = $commandData->input()->getOption('http-sync-password');\n            $source_dump_file = $this->downloadFile($sql_dump_download_url, $user, $password);\n            $commandData->input()->setOption('target-dump', $source_dump_file);\n            $commandData->input()->setOption('no-dump', true);\n            $commandData->input()->setOption('no-sync', true);\n        }\n    }\n\n    /**\n     * Downloads a file.\n     *\n     * Optionally uses user authentication, using either wget or curl, as available.\n     */\n    protected function downloadFile($url, $user = false, $password = false, $destination = false, $overwrite = true)\n    {\n        static $use_wget;\n        if ($use_wget === null) {\n            $use_wget = ExecTrait::programExists('wget');\n        }\n\n        $destination_tmp = drush_tempnam('download_file');\n        if ($use_wget) {\n            $args = ['wget', '-q', '--timeout=30'];\n            if ($user && $password) {\n                $args = array_merge($args, [\"--user=$user\", \"--password=$password\", '-O', $destination_tmp, $url]);\n            } else {\n                $args = array_merge($args, ['-O', $destination_tmp, $url]);\n            }\n        } else {\n            $args = ['curl', '-s', '-L', '--connect-timeout 30'];\n            if ($user && $password) {\n                $args = array_merge($args, ['--user', \"$user:$password\", '-o', $destination_tmp, $url]);\n            } else {\n                $args = array_merge($args, ['-o', $destination_tmp, $url]);\n            }\n        }\n        $process = Drush::process($args);\n        $process->mustRun();\n\n        if (!Drush::simulate()) {\n            if (!drush_file_not_empty($destination_tmp) && $file = @file_get_contents($url)) {\n                @file_put_contents($destination_tmp, $file);\n            }\n            if (!drush_file_not_empty($destination_tmp)) {\n                // Download failed.\n                throw new \\Exception(dt(\"The URL !url could not be downloaded.\", ['!url' => $url]));\n            }\n        }\n        if ($destination) {\n            $fs = new Filesystem();\n            $fs->rename($destination_tmp, $destination, $overwrite);\n            return $destination;\n        }\n        return $destination_tmp;\n    }\n}\n
"},{"location":"examples/XkcdCommands.php/","title":"XkcdCommands.php","text":"
<?php\n\nnamespace Drush\\Commands;\n\nuse Drush\\Attributes as CLI;\nuse Drush\\Exec\\ExecTrait;\n\n/**\n * Run these commands using the --include option - e.g. `drush --include=/path/to/drush/examples xkcd`\n *\n * For an example of a Drush extension with tests for Drush:\n * - https://github.com/drush-ops/example-drush-extension\n */\n\nclass XkcdCommands extends DrushCommands\n{\n    use ExecTrait;\n\n    /**\n     * Retrieve and display xkcd cartoons.\n     */\n    #[CLI\\Command(name: 'xkcd:fetch', aliases: ['xkcd'])]\n    #[CLI\\Option(name: 'search', description: 'Optional argument to retrieve the cartoons matching an index number, keyword search or \"random\". If omitted the latest cartoon will be retrieved.')]\n    #[CLI\\Option(name: 'image-viewer', description: 'Command to use to view images (e.g. xv, firefox). Defaults to \"display\" (from ImageMagick).')]\n    #[CLI\\Option(name: 'google-custom-search-api-key', description: 'Google Custom Search API Key, available from https://code.google.com/apis/console/. Default key limited to 100 queries/day globally.')]\n    #[CLI\\Usage(name: 'drush xkcd', description: 'Retrieve and display the latest cartoon.')]\n    #[CLI\\Usage(name: 'drush xkcd sandwich', description: 'Retrieve and display cartoons about sandwiches.')]\n    #[CLI\\Usage(name: 'drush xkcd 123 --image-viewer=eog', description: 'Retrieve and display cartoon #123 in eog.')]\n    #[CLI\\Usage(name: 'drush xkcd random --image-viewer=firefox', description: 'Retrieve and display a random cartoon in Firefox.')]\n    public function fetch($search = null, $options = ['image-viewer' => 'open', 'google-custom-search-api-key' => 'AIzaSyDpE01VDNNT73s6CEeJRdSg5jukoG244ek'])\n    {\n        $this->doFetch($search, $options);\n    }\n\n    /**\n     * @param $search\n     * @param array $options\n     * @throws \\Exception\n     */\n    protected function doFetch($search, array $options): void\n    {\n        if (empty($search)) {\n            $this->startBrowser('http://xkcd.com');\n        } elseif (is_numeric($search)) {\n            $this->startBrowser('http://xkcd.com/' . $search);\n        } elseif ($search == 'random') {\n            $xkcd_response = @json_decode(file_get_contents('http://xkcd.com/info.0.json'));\n            if (!empty($xkcd_response->num)) {\n                $this->startBrowser('http://xkcd.com/' . rand(1, $xkcd_response->num));\n            }\n        } else {\n            // This uses an API key with a limited number of searches per.\n            $search_response = @json_decode(file_get_contents('https://www.googleapis.com/customsearch/v1?key=' . $options['google-custom-search-api-key'] . '&cx=012652707207066138651:zudjtuwe28q&q=' . $search));\n            if (!empty($search_response->items)) {\n                foreach ($search_response->items as $item) {\n                    $this->startBrowser($item->link);\n                }\n            } else {\n                throw new \\Exception(dt('The search failed or produced no results.'));\n            }\n        }\n    }\n}\n
"},{"location":"examples/example.drush.yml/","title":"drush.yml","text":"
#\n# A minimalist Drush config file.\n# See https://www.drush.org/latest/using-drush-configuration/ for lots more documentation.\n#\n\n# Preflight configuration.\ndrush:\ninclude:\n- '${env.HOME}/.drush/commands'\n- /usr/share/drush/commands\npaths:\nconfig:\n# Load additional config files. Is silently skipped if not found. Filename must be drush.yml\n- ${env.HOME}/.drush/config/drush.yml\nalias-path:\n- '${env.HOME}/.drush/sites'\n- /etc/drush/sites\n\n# Global options.\noptions:\n# Specify the base_url that should be used when generating links.\n# uri: 'http://example.com/subdir'\n\n# Command-specific options.\ncommand:\nsql:\ndump:\noptions:\n# Uncomment to omit cache and similar tables (including during a sql:sync).\n#       structure-tables-key: common\n\n# Non-options.\nssh:\n# Specify options to pass to ssh.  The default is to prohibit\n# password authentication, and is included here, so you may add additional\n# parameters without losing the default configuration.\noptions: '-o PasswordAuthentication=no'\n# This string is valid for Bash shell. Override in case you need something different. See https://github.com/drush-ops/drush/issues/3816.\npipefail: 'set -o pipefail; '\n
"},{"location":"examples/example.prompt.sh/","title":"prompt.sh","text":"
# -*- mode: shell-script; mode: flyspell-prog; ispell-local-dictionary: \"american\" -*-\n#\n# Example PS1 prompt.\n#\n# Note: This file does a lot, and is designed for Bash. If you want to show the\n# currently set alias in your prompt, use the first 2 values below as an example.\n\n# This section can be used for the POWERLEVEL9K theme for Oh My Zsh.\n#FILE=\"${TMPDIR:-/tmp/}/drush-env-${USER}/drush-drupal-site-$$\"\n#POWERLEVEL9K_CUSTOM_DRUSH=\"[ -r $FILE ] && cat $FILE\"\n#POWERLEVEL9K_CUSTOM_DRUSH_BACKGROUND=\"green\"\n#POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir vcs custom_drush)\n\n#\n# Note that your Bash session must already have the __git_ps1 function available.\n# Typically this is provided by git-prompt.sh, see instructions for downloading\n# and including this file here:\n# https://github.com/git/git/blob/10.x/contrib/completion/git-prompt.sh\n#\n# Features:\n#\n# Displays Git repository and Drush alias status in your prompt.\n\n__drush_ps1() {\nf=\"${TMPDIR:-/tmp/}/drush-env-${USER}/drush-drupal-site-$$\"\nif [ -f $f ]\nthen\n__DRUPAL_SITE=$(cat \"$f\")\nelse\n__DRUPAL_SITE=\"$DRUPAL_SITE\"\nfi\n\n# Set DRUSH_PS1_SHOWCOLORHINTS to a non-empty value and define a\n# __drush_ps1_colorize_alias() function for color hints in your Drush PS1\n# prompt. See example.prompt.sh for an example implementation.\nif [ -n \"${__DRUPAL_SITE-}\" ] && [ -n \"${DRUSH_PS1_SHOWCOLORHINTS-}\" ]; then\n__drush_ps1_colorize_alias\n  fi\n\n[[ -n \"$__DRUPAL_SITE\" ]] && printf \"${1:- (%s)}\" \"$__DRUPAL_SITE\"\n}\n\nif [ -n \"$(type -t __git_ps1)\" ] && [ \"$(type -t __git_ps1)\" = function ] && [ \"$(type -t __drush_ps1)\" ] && [ \"$(type -t __drush_ps1)\" = function ]; then\n\n# This line enables color hints in your Drush prompt. Modify the below\n# __drush_ps1_colorize_alias() to customize your color theme.\nDRUSH_PS1_SHOWCOLORHINTS=true\n\n# Git offers various prompt customization options as well as seen in\n# https://github.com/git/git/blob/10.x/contrib/completion/git-prompt.sh.\n# Adjust the following lines to enable the corresponding features:\n#\nGIT_PS1_SHOWDIRTYSTATE=true\nGIT_PS1_SHOWUPSTREAM=auto\n  # GIT_PS1_SHOWSTASHSTATE=true\n# GIT_PS1_SHOWUNTRACKEDFILES=true\nGIT_PS1_SHOWCOLORHINTS=true\n\n# The following line sets your bash prompt according to this example:\n#\n#   username@hostname ~/working-directory (git-branch)[@drush-alias] $\n#\n# See http://ss64.com/bash/syntax-prompt.html for customization options.\nexport PROMPT_COMMAND='__git_ps1 \"\\u@\\h \\w\" \"$(__drush_ps1 \"[%s]\") \\\\\\$ \"'\n\n# PROMPT_COMMAND is used in the example above rather than PS1 because neither\n# Git nor Drush color hints are compatible with PS1. If you don't want color\n# hints, however, and prefer to use PS1, you can still do so by commenting out\n# the PROMPT_COMMAND line above and uncommenting the PS1 line below:\n#\n# export PS1='\\u@\\h \\w$(__git_ps1 \" (%s)\")$(__drush_ps1 \"[%s]\")\\$ '\n\n__drush_ps1_colorize_alias() {\nif [[ -n ${ZSH_VERSION-} ]]; then\nlocal COLOR_BLUE='%F{blue}'\nlocal COLOR_CYAN='%F{cyan}'\nlocal COLOR_GREEN='%F{green}'\nlocal COLOR_MAGENTA='%F{magenta}'\nlocal COLOR_RED='%F{red}'\nlocal COLOR_WHITE='%F{white}'\nlocal COLOR_YELLOW='%F{yellow}'\nlocal COLOR_NONE='%f'\nelse\n# Using \\[ and \\] around colors is necessary to prevent issues with\n# command line editing/browsing/completion.\nlocal COLOR_BLUE='\\[\\e[94m\\]'\nlocal COLOR_CYAN='\\[\\e[36m\\]'\nlocal COLOR_GREEN='\\[\\e[32m\\]'\nlocal COLOR_MAGENTA='\\[\\e[35m\\]'\nlocal COLOR_RED='\\[\\e[91m\\]'\nlocal COLOR_WHITE='\\[\\e[37m\\]'\nlocal COLOR_YELLOW='\\[\\e[93m\\]'\nlocal COLOR_NONE='\\[\\e[0m\\]'\nfi\n\n# Customize your color theme below.\ncase \"$__DRUPAL_SITE\" in\n*.live|*.prod) local ENV_COLOR=\"$COLOR_RED\" ;;\n*.stage|*.test) local ENV_COLOR=\"$COLOR_YELLOW\" ;;\n*.local) local ENV_COLOR=\"$COLOR_GREEN\" ;;\n*) local ENV_COLOR=\"$COLOR_BLUE\" ;;\nesac\n\n__DRUPAL_SITE=\"${ENV_COLOR}${__DRUPAL_SITE}${COLOR_NONE}\"\n}\n\nfi\n
"},{"location":"examples/example.site.yml/","title":"site.yml","text":"
#\n# A minimalist Drush site alias file.\n# See https://www.drush.org/latest/site-aliases/ for lots more documentation.\n#\n# File: self.site.yml\nlive:\nhost: www.domain.com\nuser: www-admin\nroot: /other/path/to/drupal\nuri: http://www.example.com\nssh:\noptions: '-p 100'\npaths:\ndrush-script: '/path/to/drush'\nenv-vars:\nPATH: /bin:/usr/bin:/home/www-admin/.composer/vendor/bin\nDRUPAL_ENV: live\ncommand:\nsite:\ninstall:\noptions:\nadmin-password: 'secret-secret'\nstage:\nhost: stage.domain.com\nuser: www-admin\nroot: /other/path/to/drupal\nuri: http://stage.example.com\n
"},{"location":"examples/git-bisect.example.sh/","title":"git-bisect.sh","text":"
#!/usr/bin/env sh\n\n#\n# Git bisect is a helpful way to discover which commit an error\n# occurred in.  This example file gives simple instructions for\n# using git bisect with Drush to quickly find erroneous commits\n# in Drush commands or Drupal modules, presuming that you can\n# trigger the error condition via Drush (e.g. using `drush php-eval`).\n#\n# Follow these simple steps:\n#\n#   $ git bisect start\n#   $ git bisect bad              # Tell git that the current commit does not work\n#   $ git bisect good bcadd5a     # Tell drush that the commithash 12345 worked fine\n#   $ git bisect run mytestscript.sh\n#\n# 'git bisect run' will continue to call 'git bisect good' and 'git bisect bad',\n# based on whether the script's exit code was 0 or 1, respectively.\n#\n# Replace 'mytestscript.sh' in the example above with a custom script that you\n# write yourself.  Use the example script at the end of this document as a\n# guide.  Replace the example command with one that calls the Drush command\n# that you would like to test, and replace the 'grep' string with a value\n# that appears when the error exists in the commit, but does not appear when\n# commit is okay.\n#\n# If you are using Drush to test Drupal or an external Drush module, use:\n#\n#   $ git bisect run drush mycommand --strict=2\n#\n# This presumes that there is one or more '[warning]' or '[error]'\n# messages emitted when there is a problem, and no warnings or errors\n# when the commit is okay.  Omit '--strict=2' to ignore warnings, and\n# signal failure only when 'error' messages are emitted.\n#\n# If you need to test for an error condition explicitly, to find errors\n# that do not return any warning or error log messages on their own, you\n# can use the Drush php-eval command to force an error when `myfunction()`\n# returns FALSE. Replace 'myfunction()' with the name of an appropriate\n# function in your module that can be used to detect the error condition\n# you are looking for.\n#\n#   $ git bisect run drush ev 'if(!myfunction()) { return drush_set_error(\"ERR\"); }'\n#\ndrush mycommand --myoption 2>&1 | grep -q 'string that indicates there was a problem'\nif [ $? == 0 ] ; then\nexit 1\nelse\nexit 0\nfi\n
"},{"location":"examples/helloworld.script/","title":"Helloworld.script","text":"
<?php\n\n//\n// This example demonstrates how to write a drush\n// script. These scripts are run with the php:script command.\n//\nuse Drush\\Drush;\n\n$this->output()->writeln(\"Hello world!\");\n$this->output()->writeln(\"The extra options/arguments to this command were:\");\n$this->output()->writeln(print_r($extra, true));\n\n//\n// We can check which site was bootstrapped via\n// the '@self' alias, which is defined only if\n// there is a bootstrapped site.\n//\n$self = Drush::aliasManager()->getSelf();;\nif (!$self->hasRoot()) {\n  $this->output()->writeln('No bootstrapped site.');\n}\nelse {\n  $this->output()->writeln('The following site is bootstrapped:');\n  $this->output()->writeln(print_r($self->legacyRecord(), true));\n}\n
"},{"location":"generators/all/","title":"All generators","text":"

Tip

Press the / key to Search for a command. Or use your browser's Find in Page feature.

  • composer
  • controller
  • field
  • hook
  • install-file
  • javascript
  • layout
  • module
  • phpstorm-meta
  • readme
  • render-element
  • service-provider
  • single-directory-component
  • drush:alias-file
  • drush:command-file
  • drush:generator
  • drush:symfony-command
  • entity:bundle-class
  • entity:configuration
  • entity:content
  • form:config
  • form:confirm
  • form:simple
  • misc:apache-virtual-host
  • misc:nginx-virtual-host
  • plugin:action
  • plugin:block
  • plugin:ckeditor
  • plugin:condition
  • plugin:constraint
  • plugin:entity-reference-selection
  • plugin:field:formatter
  • plugin:field:type
  • plugin:field:widget
  • plugin:filter
  • plugin:manager
  • plugin:menu-link
  • plugin:migrate:destination
  • plugin:migrate:process
  • plugin:migrate:source
  • plugin:queue-worker
  • plugin:rest-resource
  • plugin:views:argument-default
  • plugin:views:field
  • plugin:views:style
  • service:access-checker
  • service:breadcrumb-builder
  • service:cache-context
  • service:custom
  • service:event-subscriber
  • service:logger
  • service:middleware
  • service:param-converter
  • service:path-processor
  • service:request-policy
  • service:response-policy
  • service:route-subscriber
  • service:theme-negotiator
  • service:twig-extension
  • service:uninstall-validator
  • test:browser
  • test:kernel
  • test:nightwatch
  • test:unit
  • test:webdriver
  • theme
  • theme:settings
  • yml:breakpoints
  • yml:links:action
  • yml:links:contextual
  • yml:links:menu
  • yml:links:task
  • yml:migration
  • yml:module-libraries
  • yml:permissions
  • yml:routing
  • yml:services
  • yml:theme-libraries
"},{"location":"generators/composer/","title":"composer","text":"

Generates a composer.json file

"},{"location":"generators/composer/#examples","title":"Examples","text":"
  • drush generate composer. Generates a composer.json file
"},{"location":"generators/composer/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/composer/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/composer/#aliases","title":"Aliases","text":"
  • composer.json
"},{"location":"generators/controller/","title":"controller","text":"

Generates a controller

"},{"location":"generators/controller/#examples","title":"Examples","text":"
  • drush generate controller. Generates a controller
"},{"location":"generators/controller/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/controller/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/drush_alias-file/","title":"drush:alias-file","text":"

Generates a Drush site alias file.

"},{"location":"generators/drush_alias-file/#examples","title":"Examples","text":"
  • drush generate drush:alias-file. Generates a Drush site alias file.
"},{"location":"generators/drush_alias-file/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/drush_alias-file/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/drush_alias-file/#aliases","title":"Aliases","text":"
  • daf
"},{"location":"generators/drush_command-file/","title":"drush:command-file","text":"

Generates a Drush command file.

"},{"location":"generators/drush_command-file/#examples","title":"Examples","text":"
  • drush generate drush:command-file. Generates a Drush command file.
"},{"location":"generators/drush_command-file/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/drush_command-file/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/drush_command-file/#aliases","title":"Aliases","text":"
  • dcf
"},{"location":"generators/drush_generator/","title":"drush:generator","text":"

Generates a Drush generator.

"},{"location":"generators/drush_generator/#examples","title":"Examples","text":"
  • drush generate drush:generator. Generates a Drush generator.
"},{"location":"generators/drush_generator/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/drush_generator/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/drush_generator/#aliases","title":"Aliases","text":"
  • dg
"},{"location":"generators/drush_symfony-command/","title":"drush:symfony-command","text":"

Generates Symfony console command

"},{"location":"generators/drush_symfony-command/#examples","title":"Examples","text":"
  • drush generate drush:symfony-command. Generates Symfony console command
"},{"location":"generators/drush_symfony-command/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/drush_symfony-command/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/drush_symfony-command/#aliases","title":"Aliases","text":"
  • symfony-command
"},{"location":"generators/entity_bundle-class/","title":"entity:bundle-class","text":"

11.0+

Generate a bundle class for a content entity.

"},{"location":"generators/entity_bundle-class/#examples","title":"Examples","text":"
  • drush generate entity:bundle-class. Generate a bundle class for a content entity.
"},{"location":"generators/entity_bundle-class/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/entity_bundle-class/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/entity_bundle-class/#aliases","title":"Aliases","text":"
  • bundle-class
"},{"location":"generators/entity_configuration/","title":"entity:configuration","text":"

Generates configuration entity

"},{"location":"generators/entity_configuration/#examples","title":"Examples","text":"
  • drush generate entity:configuration. Generates configuration entity
"},{"location":"generators/entity_configuration/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/entity_configuration/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/entity_configuration/#aliases","title":"Aliases","text":"
  • config-entity
"},{"location":"generators/entity_content/","title":"entity:content","text":"

Generates content entity

"},{"location":"generators/entity_content/#examples","title":"Examples","text":"
  • drush generate entity:content. Generates content entity
"},{"location":"generators/entity_content/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/entity_content/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/entity_content/#aliases","title":"Aliases","text":"
  • content-entity
"},{"location":"generators/field/","title":"field","text":"

Generates a field

"},{"location":"generators/field/#examples","title":"Examples","text":"
  • drush generate field. Generates a field
"},{"location":"generators/field/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/field/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/form_config/","title":"form:config","text":"

Generates a configuration form

"},{"location":"generators/form_config/#examples","title":"Examples","text":"
  • drush generate form:config. Generates a configuration form
"},{"location":"generators/form_config/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/form_config/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/form_config/#aliases","title":"Aliases","text":"
  • config-form
"},{"location":"generators/form_confirm/","title":"form:confirm","text":"

Generates a confirmation form

"},{"location":"generators/form_confirm/#examples","title":"Examples","text":"
  • drush generate form:confirm. Generates a confirmation form
"},{"location":"generators/form_confirm/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/form_confirm/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/form_confirm/#aliases","title":"Aliases","text":"
  • confirm-form
"},{"location":"generators/form_simple/","title":"form:simple","text":"

Generates simple form

"},{"location":"generators/form_simple/#examples","title":"Examples","text":"
  • drush generate form:simple. Generates simple form
"},{"location":"generators/form_simple/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/form_simple/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/form_simple/#aliases","title":"Aliases","text":"
  • form
"},{"location":"generators/hook/","title":"hook","text":"

Generates a hook

"},{"location":"generators/hook/#examples","title":"Examples","text":"
  • drush generate hook. Generates a hook
"},{"location":"generators/hook/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/hook/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/install-file/","title":"install-file","text":"

Generates an install file

"},{"location":"generators/install-file/#examples","title":"Examples","text":"
  • drush generate install-file. Generates an install file
"},{"location":"generators/install-file/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/install-file/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/javascript/","title":"javascript","text":"

Generates Drupal JavaScript file

"},{"location":"generators/javascript/#examples","title":"Examples","text":"
  • drush generate javascript. Generates Drupal JavaScript file
"},{"location":"generators/javascript/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/javascript/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/layout/","title":"layout","text":"

Generates a layout

"},{"location":"generators/layout/#examples","title":"Examples","text":"
  • drush generate layout. Generates a layout
"},{"location":"generators/layout/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/layout/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/misc_apache-virtual-host/","title":"misc:apache-virtual-host","text":"

Generates an Apache site configuration file

"},{"location":"generators/misc_apache-virtual-host/#examples","title":"Examples","text":"
  • drush generate misc:apache-virtual-host. Generates an Apache site configuration file
"},{"location":"generators/misc_apache-virtual-host/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/misc_apache-virtual-host/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/misc_apache-virtual-host/#aliases","title":"Aliases","text":"
  • apache-virtual-host
"},{"location":"generators/misc_nginx-virtual-host/","title":"misc:nginx-virtual-host","text":"

Generates an Nginx site configuration file

"},{"location":"generators/misc_nginx-virtual-host/#examples","title":"Examples","text":"
  • drush generate misc:nginx-virtual-host. Generates an Nginx site configuration file
"},{"location":"generators/misc_nginx-virtual-host/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/misc_nginx-virtual-host/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/misc_nginx-virtual-host/#aliases","title":"Aliases","text":"
  • nginx-virtual-host
"},{"location":"generators/module/","title":"module","text":"

Generates Drupal module

"},{"location":"generators/module/#examples","title":"Examples","text":"
  • drush generate module. Generates Drupal module
"},{"location":"generators/module/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/module/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/phpstorm-meta/","title":"phpstorm-meta","text":"

Generates PhpStorm metadata

"},{"location":"generators/phpstorm-meta/#examples","title":"Examples","text":"
  • drush generate phpstorm-meta. Generates PhpStorm metadata
"},{"location":"generators/phpstorm-meta/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/phpstorm-meta/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/plugin_action/","title":"plugin:action","text":"

Generates action plugin

"},{"location":"generators/plugin_action/#examples","title":"Examples","text":"
  • drush generate plugin:action. Generates action plugin
"},{"location":"generators/plugin_action/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/plugin_action/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/plugin_action/#aliases","title":"Aliases","text":"
  • action
"},{"location":"generators/plugin_block/","title":"plugin:block","text":"

Generates block plugin

"},{"location":"generators/plugin_block/#examples","title":"Examples","text":"
  • drush generate plugin:block. Generates block plugin
"},{"location":"generators/plugin_block/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/plugin_block/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/plugin_block/#aliases","title":"Aliases","text":"
  • block
"},{"location":"generators/plugin_ckeditor/","title":"plugin:ckeditor","text":"

Generates CKEditor plugin

"},{"location":"generators/plugin_ckeditor/#examples","title":"Examples","text":"
  • drush generate plugin:ckeditor. Generates CKEditor plugin
"},{"location":"generators/plugin_ckeditor/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/plugin_ckeditor/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/plugin_ckeditor/#aliases","title":"Aliases","text":"
  • ckeditor
  • ckeditor-plugin
"},{"location":"generators/plugin_condition/","title":"plugin:condition","text":"

Generates condition plugin

"},{"location":"generators/plugin_condition/#examples","title":"Examples","text":"
  • drush generate plugin:condition. Generates condition plugin
"},{"location":"generators/plugin_condition/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/plugin_condition/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/plugin_condition/#aliases","title":"Aliases","text":"
  • condition
"},{"location":"generators/plugin_constraint/","title":"plugin:constraint","text":"

Generates constraint plugin

"},{"location":"generators/plugin_constraint/#examples","title":"Examples","text":"
  • drush generate plugin:constraint. Generates constraint plugin
"},{"location":"generators/plugin_constraint/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/plugin_constraint/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/plugin_constraint/#aliases","title":"Aliases","text":"
  • constraint
"},{"location":"generators/plugin_entity-reference-selection/","title":"plugin:entity-reference-selection","text":"

Generates entity reference selection plugin

"},{"location":"generators/plugin_entity-reference-selection/#examples","title":"Examples","text":"
  • drush generate plugin:entity-reference-selection. Generates entity reference selection plugin
"},{"location":"generators/plugin_entity-reference-selection/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/plugin_entity-reference-selection/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/plugin_entity-reference-selection/#aliases","title":"Aliases","text":"
  • entity-reference-selection
"},{"location":"generators/plugin_field_formatter/","title":"plugin:field:formatter","text":"

Generates field formatter plugin

"},{"location":"generators/plugin_field_formatter/#examples","title":"Examples","text":"
  • drush generate plugin:field:formatter. Generates field formatter plugin
"},{"location":"generators/plugin_field_formatter/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/plugin_field_formatter/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/plugin_field_formatter/#aliases","title":"Aliases","text":"
  • field-formatter
"},{"location":"generators/plugin_field_type/","title":"plugin:field:type","text":"

Generates field type plugin

"},{"location":"generators/plugin_field_type/#examples","title":"Examples","text":"
  • drush generate plugin:field:type. Generates field type plugin
"},{"location":"generators/plugin_field_type/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/plugin_field_type/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/plugin_field_type/#aliases","title":"Aliases","text":"
  • field-type
"},{"location":"generators/plugin_field_widget/","title":"plugin:field:widget","text":"

Generates field widget plugin

"},{"location":"generators/plugin_field_widget/#examples","title":"Examples","text":"
  • drush generate plugin:field:widget. Generates field widget plugin
"},{"location":"generators/plugin_field_widget/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/plugin_field_widget/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/plugin_field_widget/#aliases","title":"Aliases","text":"
  • field-widget
"},{"location":"generators/plugin_filter/","title":"plugin:filter","text":"

Generates filter plugin

"},{"location":"generators/plugin_filter/#examples","title":"Examples","text":"
  • drush generate plugin:filter. Generates filter plugin
"},{"location":"generators/plugin_filter/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/plugin_filter/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/plugin_filter/#aliases","title":"Aliases","text":"
  • filter
"},{"location":"generators/plugin_manager/","title":"plugin:manager","text":"

Generates plugin manager

"},{"location":"generators/plugin_manager/#examples","title":"Examples","text":"
  • drush generate plugin:manager. Generates plugin manager
"},{"location":"generators/plugin_manager/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/plugin_manager/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/plugin_manager/#aliases","title":"Aliases","text":"
  • plugin-manager
"},{"location":"generators/plugin_menu-link/","title":"plugin:menu-link","text":"

Generates menu-link plugin

"},{"location":"generators/plugin_menu-link/#examples","title":"Examples","text":"
  • drush generate plugin:menu-link. Generates menu-link plugin
"},{"location":"generators/plugin_menu-link/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/plugin_menu-link/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/plugin_menu-link/#aliases","title":"Aliases","text":"
  • menu-link
"},{"location":"generators/plugin_migrate_destination/","title":"plugin:migrate:destination","text":"

Generates migrate destination plugin

"},{"location":"generators/plugin_migrate_destination/#examples","title":"Examples","text":"
  • drush generate plugin:migrate:destination. Generates migrate destination plugin
"},{"location":"generators/plugin_migrate_destination/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/plugin_migrate_destination/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/plugin_migrate_destination/#aliases","title":"Aliases","text":"
  • migrate-destination
"},{"location":"generators/plugin_migrate_process/","title":"plugin:migrate:process","text":"

Generates migrate process plugin

"},{"location":"generators/plugin_migrate_process/#examples","title":"Examples","text":"
  • drush generate plugin:migrate:process. Generates migrate process plugin
"},{"location":"generators/plugin_migrate_process/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/plugin_migrate_process/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/plugin_migrate_process/#aliases","title":"Aliases","text":"
  • migrate-process
"},{"location":"generators/plugin_migrate_source/","title":"plugin:migrate:source","text":"

Generates migrate source plugin

"},{"location":"generators/plugin_migrate_source/#examples","title":"Examples","text":"
  • drush generate plugin:migrate:source. Generates migrate source plugin
"},{"location":"generators/plugin_migrate_source/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/plugin_migrate_source/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/plugin_migrate_source/#aliases","title":"Aliases","text":"
  • migrate-source
"},{"location":"generators/plugin_queue-worker/","title":"plugin:queue-worker","text":"

Generates queue worker plugin

"},{"location":"generators/plugin_queue-worker/#examples","title":"Examples","text":"
  • drush generate plugin:queue-worker. Generates queue worker plugin
"},{"location":"generators/plugin_queue-worker/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/plugin_queue-worker/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/plugin_queue-worker/#aliases","title":"Aliases","text":"
  • queue-worker
"},{"location":"generators/plugin_rest-resource/","title":"plugin:rest-resource","text":"

Generates rest resource plugin

"},{"location":"generators/plugin_rest-resource/#examples","title":"Examples","text":"
  • drush generate plugin:rest-resource. Generates rest resource plugin
"},{"location":"generators/plugin_rest-resource/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/plugin_rest-resource/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/plugin_rest-resource/#aliases","title":"Aliases","text":"
  • rest-resource
"},{"location":"generators/plugin_views_argument-default/","title":"plugin:views:argument-default","text":"

Generates views default argument plugin

"},{"location":"generators/plugin_views_argument-default/#examples","title":"Examples","text":"
  • drush generate plugin:views:argument-default. Generates views default argument plugin
"},{"location":"generators/plugin_views_argument-default/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/plugin_views_argument-default/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/plugin_views_argument-default/#aliases","title":"Aliases","text":"
  • views-argument-default
"},{"location":"generators/plugin_views_field/","title":"plugin:views:field","text":"

Generates views field plugin

"},{"location":"generators/plugin_views_field/#examples","title":"Examples","text":"
  • drush generate plugin:views:field. Generates views field plugin
"},{"location":"generators/plugin_views_field/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/plugin_views_field/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/plugin_views_field/#aliases","title":"Aliases","text":"
  • views-field
"},{"location":"generators/plugin_views_style/","title":"plugin:views:style","text":"

Generates views style plugin

"},{"location":"generators/plugin_views_style/#examples","title":"Examples","text":"
  • drush generate plugin:views:style. Generates views style plugin
"},{"location":"generators/plugin_views_style/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/plugin_views_style/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/plugin_views_style/#aliases","title":"Aliases","text":"
  • views-style
"},{"location":"generators/readme/","title":"readme","text":"

Generates README file

"},{"location":"generators/readme/#examples","title":"Examples","text":"
  • drush generate readme. Generates README file
"},{"location":"generators/readme/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/readme/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/render-element/","title":"render-element","text":"

Generates Drupal render element

"},{"location":"generators/render-element/#examples","title":"Examples","text":"
  • drush generate render-element. Generates Drupal render element
"},{"location":"generators/render-element/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/render-element/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/service-provider/","title":"service-provider","text":"

Generates a service provider

"},{"location":"generators/service-provider/#examples","title":"Examples","text":"
  • drush generate service-provider. Generates a service provider
"},{"location":"generators/service-provider/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/service-provider/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/service_access-checker/","title":"service:access-checker","text":"

Generates an access checker service

"},{"location":"generators/service_access-checker/#examples","title":"Examples","text":"
  • drush generate service:access-checker. Generates an access checker service
"},{"location":"generators/service_access-checker/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/service_access-checker/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/service_access-checker/#aliases","title":"Aliases","text":"
  • access-checker
"},{"location":"generators/service_breadcrumb-builder/","title":"service:breadcrumb-builder","text":"

Generates a breadcrumb builder service

"},{"location":"generators/service_breadcrumb-builder/#examples","title":"Examples","text":"
  • drush generate service:breadcrumb-builder. Generates a breadcrumb builder service
"},{"location":"generators/service_breadcrumb-builder/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/service_breadcrumb-builder/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/service_breadcrumb-builder/#aliases","title":"Aliases","text":"
  • breadcrumb-builder
"},{"location":"generators/service_cache-context/","title":"service:cache-context","text":"

Generates a cache context service

"},{"location":"generators/service_cache-context/#examples","title":"Examples","text":"
  • drush generate service:cache-context. Generates a cache context service
"},{"location":"generators/service_cache-context/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/service_cache-context/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/service_cache-context/#aliases","title":"Aliases","text":"
  • cache-context
"},{"location":"generators/service_custom/","title":"service:custom","text":"

Generates a custom Drupal service

"},{"location":"generators/service_custom/#examples","title":"Examples","text":"
  • drush generate service:custom. Generates a custom Drupal service
"},{"location":"generators/service_custom/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/service_custom/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/service_custom/#aliases","title":"Aliases","text":"
  • custom-service
"},{"location":"generators/service_event-subscriber/","title":"service:event-subscriber","text":"

Generates an event subscriber

"},{"location":"generators/service_event-subscriber/#examples","title":"Examples","text":"
  • drush generate service:event-subscriber. Generates an event subscriber
"},{"location":"generators/service_event-subscriber/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/service_event-subscriber/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/service_event-subscriber/#aliases","title":"Aliases","text":"
  • event-subscriber
"},{"location":"generators/service_logger/","title":"service:logger","text":"

Generates a logger service

"},{"location":"generators/service_logger/#examples","title":"Examples","text":"
  • drush generate service:logger. Generates a logger service
"},{"location":"generators/service_logger/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/service_logger/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/service_logger/#aliases","title":"Aliases","text":"
  • logger
"},{"location":"generators/service_middleware/","title":"service:middleware","text":"

Generates a middleware

"},{"location":"generators/service_middleware/#examples","title":"Examples","text":"
  • drush generate service:middleware. Generates a middleware
"},{"location":"generators/service_middleware/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/service_middleware/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/service_middleware/#aliases","title":"Aliases","text":"
  • middleware
"},{"location":"generators/service_param-converter/","title":"service:param-converter","text":"

Generates a param converter service

"},{"location":"generators/service_param-converter/#examples","title":"Examples","text":"
  • drush generate service:param-converter. Generates a param converter service
"},{"location":"generators/service_param-converter/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/service_param-converter/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/service_param-converter/#aliases","title":"Aliases","text":"
  • param-converter
"},{"location":"generators/service_path-processor/","title":"service:path-processor","text":"

Generates a path processor service

"},{"location":"generators/service_path-processor/#examples","title":"Examples","text":"
  • drush generate service:path-processor. Generates a path processor service
"},{"location":"generators/service_path-processor/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/service_path-processor/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/service_path-processor/#aliases","title":"Aliases","text":"
  • path-processor
"},{"location":"generators/service_request-policy/","title":"service:request-policy","text":"

Generates a request policy service

"},{"location":"generators/service_request-policy/#examples","title":"Examples","text":"
  • drush generate service:request-policy. Generates a request policy service
"},{"location":"generators/service_request-policy/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/service_request-policy/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/service_request-policy/#aliases","title":"Aliases","text":"
  • request-policy
"},{"location":"generators/service_response-policy/","title":"service:response-policy","text":"

Generates a response policy service

"},{"location":"generators/service_response-policy/#examples","title":"Examples","text":"
  • drush generate service:response-policy. Generates a response policy service
"},{"location":"generators/service_response-policy/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/service_response-policy/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/service_response-policy/#aliases","title":"Aliases","text":"
  • response-policy
"},{"location":"generators/service_route-subscriber/","title":"service:route-subscriber","text":"

Generates a route subscriber

"},{"location":"generators/service_route-subscriber/#examples","title":"Examples","text":"
  • drush generate service:route-subscriber. Generates a route subscriber
"},{"location":"generators/service_route-subscriber/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/service_route-subscriber/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/service_route-subscriber/#aliases","title":"Aliases","text":"
  • route-subscriber
"},{"location":"generators/service_theme-negotiator/","title":"service:theme-negotiator","text":"

Generates a theme negotiator

"},{"location":"generators/service_theme-negotiator/#examples","title":"Examples","text":"
  • drush generate service:theme-negotiator. Generates a theme negotiator
"},{"location":"generators/service_theme-negotiator/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/service_theme-negotiator/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/service_theme-negotiator/#aliases","title":"Aliases","text":"
  • theme-negotiator
"},{"location":"generators/service_twig-extension/","title":"service:twig-extension","text":"

Generates Twig extension service

"},{"location":"generators/service_twig-extension/#examples","title":"Examples","text":"
  • drush generate service:twig-extension. Generates Twig extension service
"},{"location":"generators/service_twig-extension/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/service_twig-extension/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/service_twig-extension/#aliases","title":"Aliases","text":"
  • twig-extension
"},{"location":"generators/service_uninstall-validator/","title":"service:uninstall-validator","text":"

Generates a uninstall validator service

"},{"location":"generators/service_uninstall-validator/#examples","title":"Examples","text":"
  • drush generate service:uninstall-validator. Generates a uninstall validator service
"},{"location":"generators/service_uninstall-validator/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/service_uninstall-validator/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/service_uninstall-validator/#aliases","title":"Aliases","text":"
  • uninstall-validator
"},{"location":"generators/single-directory-component/","title":"single-directory-component","text":"

Generates Drupal SDC theme component

"},{"location":"generators/single-directory-component/#examples","title":"Examples","text":"
  • drush generate single-directory-component. Generates Drupal SDC theme component
"},{"location":"generators/single-directory-component/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/single-directory-component/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/single-directory-component/#aliases","title":"Aliases","text":"
  • sdc
"},{"location":"generators/test_browser/","title":"test:browser","text":"

Generates a browser based test

"},{"location":"generators/test_browser/#examples","title":"Examples","text":"
  • drush generate test:browser. Generates a browser based test
"},{"location":"generators/test_browser/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/test_browser/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/test_browser/#aliases","title":"Aliases","text":"
  • browser-test
"},{"location":"generators/test_kernel/","title":"test:kernel","text":"

Generates a kernel based test

"},{"location":"generators/test_kernel/#examples","title":"Examples","text":"
  • drush generate test:kernel. Generates a kernel based test
"},{"location":"generators/test_kernel/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/test_kernel/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/test_kernel/#aliases","title":"Aliases","text":"
  • kernel-test
"},{"location":"generators/test_nightwatch/","title":"test:nightwatch","text":"

Generates a nightwatch test

"},{"location":"generators/test_nightwatch/#examples","title":"Examples","text":"
  • drush generate test:nightwatch. Generates a nightwatch test
"},{"location":"generators/test_nightwatch/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/test_nightwatch/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/test_nightwatch/#aliases","title":"Aliases","text":"
  • nightwatch-test
"},{"location":"generators/test_unit/","title":"test:unit","text":"

Generates a unit test

"},{"location":"generators/test_unit/#examples","title":"Examples","text":"
  • drush generate test:unit. Generates a unit test
"},{"location":"generators/test_unit/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/test_unit/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/test_unit/#aliases","title":"Aliases","text":"
  • unit-test
"},{"location":"generators/test_webdriver/","title":"test:webdriver","text":"

Generates a test that supports JavaScript

"},{"location":"generators/test_webdriver/#examples","title":"Examples","text":"
  • drush generate test:webdriver. Generates a test that supports JavaScript
"},{"location":"generators/test_webdriver/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/test_webdriver/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/test_webdriver/#aliases","title":"Aliases","text":"
  • webdriver-test
"},{"location":"generators/theme/","title":"theme","text":"

Generates Drupal theme

"},{"location":"generators/theme/#examples","title":"Examples","text":"
  • drush generate theme. Generates Drupal theme
"},{"location":"generators/theme/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/theme/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/theme_settings/","title":"theme:settings","text":"

Generates Drupal theme-settings.php file

"},{"location":"generators/theme_settings/#examples","title":"Examples","text":"
  • drush generate theme:settings. Generates Drupal theme-settings.php file
"},{"location":"generators/theme_settings/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/theme_settings/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/yml_breakpoints/","title":"yml:breakpoints","text":"

Generates a breakpoints yml file

"},{"location":"generators/yml_breakpoints/#examples","title":"Examples","text":"
  • drush generate yml:breakpoints. Generates a breakpoints yml file
"},{"location":"generators/yml_breakpoints/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/yml_breakpoints/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/yml_breakpoints/#aliases","title":"Aliases","text":"
  • breakpoints
"},{"location":"generators/yml_links_action/","title":"yml:links:action","text":"

Generates a links.action yml file

"},{"location":"generators/yml_links_action/#examples","title":"Examples","text":"
  • drush generate yml:links:action. Generates a links.action yml file
"},{"location":"generators/yml_links_action/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/yml_links_action/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/yml_links_action/#aliases","title":"Aliases","text":"
  • action-links
"},{"location":"generators/yml_links_contextual/","title":"yml:links:contextual","text":"

Generates links.contextual yml file

"},{"location":"generators/yml_links_contextual/#examples","title":"Examples","text":"
  • drush generate yml:links:contextual. Generates links.contextual yml file
"},{"location":"generators/yml_links_contextual/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/yml_links_contextual/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/yml_links_contextual/#aliases","title":"Aliases","text":"
  • contextual-links
"},{"location":"generators/yml_links_menu/","title":"yml:links:menu","text":"

Generates a links.menu yml file

"},{"location":"generators/yml_links_menu/#examples","title":"Examples","text":"
  • drush generate yml:links:menu. Generates a links.menu yml file
"},{"location":"generators/yml_links_menu/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/yml_links_menu/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/yml_links_menu/#aliases","title":"Aliases","text":"
  • menu-links
"},{"location":"generators/yml_links_task/","title":"yml:links:task","text":"

Generates a links.task yml file

"},{"location":"generators/yml_links_task/#examples","title":"Examples","text":"
  • drush generate yml:links:task. Generates a links.task yml file
"},{"location":"generators/yml_links_task/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/yml_links_task/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/yml_links_task/#aliases","title":"Aliases","text":"
  • task-links
"},{"location":"generators/yml_migration/","title":"yml:migration","text":"

Generates a migration yml file

"},{"location":"generators/yml_migration/#examples","title":"Examples","text":"
  • drush generate yml:migration. Generates a migration yml file
"},{"location":"generators/yml_migration/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/yml_migration/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/yml_migration/#aliases","title":"Aliases","text":"
  • migration
  • migration.yml
"},{"location":"generators/yml_module-libraries/","title":"yml:module-libraries","text":"

Generates module libraries yml file

"},{"location":"generators/yml_module-libraries/#examples","title":"Examples","text":"
  • drush generate yml:module-libraries. Generates module libraries yml file
"},{"location":"generators/yml_module-libraries/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/yml_module-libraries/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/yml_module-libraries/#aliases","title":"Aliases","text":"
  • module-libraries
"},{"location":"generators/yml_permissions/","title":"yml:permissions","text":"

Generates a permissions yml file

"},{"location":"generators/yml_permissions/#examples","title":"Examples","text":"
  • drush generate yml:permissions. Generates a permissions yml file
"},{"location":"generators/yml_permissions/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/yml_permissions/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/yml_permissions/#aliases","title":"Aliases","text":"
  • permissions
  • permissions.yml
"},{"location":"generators/yml_routing/","title":"yml:routing","text":"

Generates a routing yml file

"},{"location":"generators/yml_routing/#examples","title":"Examples","text":"
  • drush generate yml:routing. Generates a routing yml file
"},{"location":"generators/yml_routing/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/yml_routing/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/yml_routing/#aliases","title":"Aliases","text":"
  • routing
  • routing.yml
"},{"location":"generators/yml_services/","title":"yml:services","text":"

Generates a services yml file

"},{"location":"generators/yml_services/#examples","title":"Examples","text":"
  • drush generate yml:services. Generates a services yml file
"},{"location":"generators/yml_services/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/yml_services/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/yml_services/#aliases","title":"Aliases","text":"
  • services
  • services.yml
"},{"location":"generators/yml_theme-libraries/","title":"yml:theme-libraries","text":"

Generates theme libraries yml file

"},{"location":"generators/yml_theme-libraries/#examples","title":"Examples","text":"
  • drush generate yml:theme-libraries. Generates theme libraries yml file
"},{"location":"generators/yml_theme-libraries/#options","title":"Options","text":"
  • --answer=ANSWER. Answer to generator question.
  • --destination=DESTINATION. Path to a base directory for file writing.
  • --dry-run. Output the generated code but not save it to file system.
"},{"location":"generators/yml_theme-libraries/#topics","title":"Topics","text":"
  • Instructions on creating your own Drush Generators. (docs:generators)
"},{"location":"generators/yml_theme-libraries/#aliases","title":"Aliases","text":"
  • theme-libraries
"}]} \ No newline at end of file diff --git a/13.3.0/site-alias-manager/index.html b/13.3.0/site-alias-manager/index.html new file mode 100644 index 0000000000..14c0d7bfe7 --- /dev/null +++ b/13.3.0/site-alias-manager/index.html @@ -0,0 +1,5280 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Site Alias Manager - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

Site Alias Manager

+

The Site Alias Manager (SAM) service is used to retrieve information about one or all of the site aliases for the current installation.

+
    +
  • An informative example is the browse command
  • +
  • A commandfile gets usually access to the SAM via autowire. The type hint to use is SiteAliasManagerInterface
  • +
  • If an alias was used for the current request, it is available via $this->siteAliasManager->getself().
  • +
  • The SAM generally deals in SiteAlias objects. That is how any given site alias is represented. See its methods for determining things like whether the alias points to a local host or remote host.
  • +
  • Site alias docs.
  • +
  • Dynamically alter site aliases.
  • +
  • The SAM is also available for as a standalone Composer project. More information available in the README there.
  • +
+ +
+
+ + + Last update: + March 20, 2024 + + + +
+ + + + + + + + +
+ + Authors: Greg Anderson, Moshe Weitzman + +
+ + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/site-aliases/index.html b/13.3.0/site-aliases/index.html new file mode 100644 index 0000000000..f432fa95ee --- /dev/null +++ b/13.3.0/site-aliases/index.html @@ -0,0 +1,5650 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Site aliases - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

Site aliases

+

Basic usage

+

In its most basic form, the Drush site alias feature provides a way +for teams to share short names that refer to the live and staging sites +(usually remote) for a given Drupal site.

+

Add an alias file called $PROJECT/drush/sites/self.site.yml, +where $PROJECT is the project root (location of composer.json file). The site alias file should be named self.site.yml because this name is special, and is used to define the different environments (usually remote) +of the current Drupal site.

+

The contents of the alias file should look something like the example below:

+
# File: self.site.yml
+live:
+  host: server.domain.com
+  user: www-admin
+  root: /other/path/to/live/drupal
+  uri: http://example.com
+stage:
+  host: server.domain.com
+  user: www-admin
+  root: /other/path/to/stage/drupal
+  uri: http://stage.example.com
+
+

The top-level element names (live and stage in the example above) are +used to identify the different environments available for this site. These +may be used on the command line to select a different target environment +to operate on by prepending an @ character, e.g. @live or @stage.

+

Following these steps, a cache:rebuild on the live environment would be: +

  $ drush @live cache:rebuild
+

+

All of the available aliases for a site's environments may be listed via: +

  $ drush site:alias @self
+

+

The elements of a site alias are:

+
    +
  • host: The fully-qualified domain name of the remote system + hosting the Drupal instance. The host option + must be omitted for local sites, as this option controls various + operations, such as whether or not rsync parameters are for local or + remote machines, and so on.
  • +
  • user: The username to log in as when using ssh or docker. If each user + has to use own username, you can create an environment variable which holds + the value, and reference via ${env.PROJECT_SSH_USER} (for example). Or you may + omit the user item and specify a user in the ~/.ssh/config file.
  • +
  • root: The Drupal root; must not be specified as a relative path.
  • +
  • uri: The value of --uri should always be the same as + when the site is being accessed from a web browser (e.g. http://example.com)
  • +
+

Drush typically uses ssh to run commands on remote systems; all team members should +install ssh keys on the target servers (e.g. via ssh-add).

+

Advanced usage

+

It is also possible to create site alias files that reference other +sites on the same local system. Site alias files for other local sites +are usually stored in the directory ~/.drush/sites; however, Drush does +not search this location for alias files by default. To use this location, +you must add the path in your Drush configuration file. For example, +to re-add both of the default user alias path from Drush 8, put the following +in your ~/.drush/drush.yml configuration file:

+
drush:
+  paths:
+    alias-path:
+      - '${env.HOME}/.drush/sites'
+      - /etc/drush/sites
+
+

A canonical alias named example that points to a local +Drupal site named at http://example.com like this:

+
# File: example.site.yml
+dev:
+  root: /path/to/drupal
+  uri: http://example.com
+
+

Note that the first part of the filename (in this case example +defines the name of the site alias, and the top-level key dev +defines the name of the environment.

+

With these definitions in place, it is possible to run commands targeting +the dev environment of the target site via: +

  $ drush @example.dev status
+
+This command is equivalent to the longer form: +
  $ drush --root=/path/to/drupal --uri=http://example.com status
+
+See Additional Site Alias Options for more information.

+

Altering aliases:

+

See examples/Commands/SiteAliasAlterCommands.php for an example.

+

Site specifications:

+

When a site alias name is provided on the command line, a site specification may be used instead. A site specification is a site alias that is not saved on the filesystem but instead is provided directly e.g. drush user@server/path/to/drupal#uri core:status. See example site specifications.

+

Environment variables

+

Site aliases may reference environment variables, just like any Drush config +file. For example, ${env.PROJECT_SSH_USER} will be replaced by the value +of the PROJECT_SSH_USER environment value.

+

SSH site aliases may set environment variables via the env-vars key. +See below.

+

Additional Site Alias Options

+

Aliases are commonly used to define short names for +local or remote Drupal installations; however, an alias +is really nothing more than a collection of options.

+
    +
  • docker: When specified, Drush executes via docker-compose exec rather than ssh.
      +
    • service: the name of the container to run on.
    • +
    • exec:
        +
      • options: Options for the exec subcommand.
      • +
      +
    • +
    +
  • +
  • kubectl When specified, Drush executes via kubectl exec rather than ssh.
      +
    • namespace The namespace to execute the command in.
    • +
    • resource The k8s object to execute the command on.
    • +
    • container The container in the resource to execute the command on.
    • +
    +
  • +
  • os: The operating system of the remote server. Valid values + are Windows and Linux. Set this value for all remote + aliases where the remote's OS differs from the local. This is especially relevant + for the sql:sync command.
  • +
  • ssh: Contains settings used to control how ssh commands are generated + when running remote commands.
      +
    • options: Contains additional commandline options for the ssh command + itself, e.g. -p 100
    • +
    • tty: Usually, Drush will decide whether or not to create a tty (via + the ssh --t option) based on whether the local Drush command is running + interactively or not. To force Drush to always or never create a tty, + set the ssh.tty option to true or false, respectively.
    • +
    +
  • +
  • paths: An array of aliases for common rsync targets. Relative aliases are always taken from the Drupal root.
      +
    • files: Path to files directory. This will be looked up if not specified.
    • +
    • drush-script: Path to the remote Drush command.
    • +
    +
  • +
  • command: These options will only be set if the alias is used with the specified command. In the advanced example below, the option --no-dump will be selected whenever the @stage alias is used in any of the following ways:
      +
    • drush @stage sql-sync @self @live
    • +
    • drush sql-sync @stage @live
    • +
    • drush sql-sync @live @stage
    • +
    +
  • +
  • env-vars: An array of key / value pairs that will be set as environment variables.
  • +
+

Complex example:

+
# File: remote.site.yml
+live:
+  host: server.domain.com
+  user: www-admin
+  root: /other/path/to/drupal
+  uri: http://example.com
+  ssh:
+    options: '-p 100'
+  paths:
+    drush-script: '/path/to/drush'
+  env-vars:
+    PATH: /bin:/usr/bin:/home/www-admin/.composer/vendor/bin
+    DRUPAL_ENV: live
+  command:
+    site:
+      install:
+        options:
+          admin-password: 'secret-secret'
+
+

Site Alias Files for Service Providers

+

There are a number of service providers that manage Drupal sites as a +service. Drush allows service providers to create collections of site alias +files to reference all of the sites available to a single user. In order +to do this, a new location must be defined in your Drush configuration +file:

+
drush:
+  paths:
+    alias-path:
+      - '${env.HOME}/.drush/sites/provider-name'
+
+

Site aliases stored in this directory may then be referenced by its +full alias name, including its location, e.g.: +

  $ drush @provider-name.example.dev
+
+Such alias files may still be referenced by their shorter name, e.g. +@example.dev. Note that it is necessary to individually list every +location where site alias files may be stored; Drush never does recursive +(deep) directory searches for alias files.

+

The site:alias command may also be used to list all of the sites and +environments in a given location, e.g.: +

  $ drush site:alias @provider-name
+
+Add the option --format=list to show only the names of each site and +environment without also showing the values in each alias record.

+

Wildcard Aliases for Service Providers

+

Some service providers that manage Drupal sites allow customers to create +multiple "environments" for a site. It is common for these providers to +also have a feature to automatically create Drush aliases for all of a +user's sites. Rather than write one record for every environment in that +site, it is also possible to write a single wildcard alias that represents +all possible environments. This is possible if the contents of each +environment alias are identical save for the name of the environment in +one or more values. The variable ${env-name} will be substituted with the +environment name wherever it appears.

+

Example wildcard record:

+
# File: remote-example.site.yml
+'*':
+  host: ${env-name}.server.domain.com
+  user: www-admin
+  root: /path/to/${env-name}
+  uri: http://${env-name}.remote-example.com
+
+

With a wildcard record, any environment name may be used, and will always +match. This is not desirable in instances where the specified environment +does not exist (e.g. if the user made a typo). An alias alter hook in a +policy file may be used to catch these mistakes and report an error. +See SiteAliasAlterCommands for an example on how to do this.

+

Docker Compose

+

The example below shows drush calling into a Docker hosted site. See the https://github.com/consolidation/site-alias and https://github.com/consolidation/site-process projects for more developer +information about transports.

+

An example appears below. Edit to suit:

+
# File: mysite.site.yml
+local:
+This environment is an example of the DockerCompose transport.
+  docker:
+    service: drupal
+    exec:
+      options: --user USER
+stage:
+  uri: http://stage.example.com
+  root: /path/to/remote/drupal/root
+  host: mystagingserver.myisp.com
+  user: publisher
+  os: Linux
+  paths:
+   - files: sites/mydrupalsite.com/files
+   - custom: /my/custom/path
+  command:
+    sql:
+      sync:
+        options:
+          no-dump: true
+dev:
+  root: /path/to/docroot
+  uri: https://dev.example.com
+
+

Kubernetes

+

Drush provides transport for running drush commands on your Kubernetes cluster via kubectl. See an example and options below.

+
prod: 
+  kubectl:
+    namespace: 'my-drupal-namespace'
+    resource: 'pods/my-drupal-pod' 
+    container: 'drupal'
+
+

Key options

+
    +
  • namespace: The namespace where your Drupal deployment resides.
  • +
  • resource: Kubernetes resource type (usually 'pods').
  • +
  • container: The specific container within the pod where Drupal runs.
  • +
  • kubeconfig: The kubeconfig file to use for authentication.
  • +
  • entrypoint: The command to use as the container entrypoint.
  • +
+

Example of rsync with exclude-paths

+

Note that most options typically passed to rsync via drush rsync are +"passthrough options", which is to say they appear after the -- separator +on the command line. Passthrough options are actually arguments, and +it is not possible to set default arguments in an alias record. The +drush rsync command does support two options, --mode and --exclude-paths, +which are interpreted directly by Drush. Default values for these options +may be specified in an alias record, as shown below.

+
dev:
+  root: /path/to/docroot
+  uri: https://dev.example.com
+  command:
+    core:
+      rsync:
+        options:
+          mode: rlptz
+          exclude-paths: 'css:imagecache:ctools:js:tmp:php:styles'
+
+ +
+
+ + + Last update: + May 14, 2024 + + + +
+ + + + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/sitemap.xml b/13.3.0/sitemap.xml new file mode 100644 index 0000000000..41dae37bc1 --- /dev/null +++ b/13.3.0/sitemap.xml @@ -0,0 +1,1178 @@ + + + + https://www.drush.org/latest/latest/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/bootstrap/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/config-exporting/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/cron/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/dependency-injection/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/deploycommand/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/hooks/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/install/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/io/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/migrate/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/output-formats-filters/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/repl/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/site-alias-manager/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/site-aliases/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/usage/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/using-drush-configuration/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/all/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/archive_dump/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/browse/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/cache_clear/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/cache_get/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/cache_rebuild/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/cache_set/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/cache_tags/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/completion/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/config_delete/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/config_edit/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/config_export/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/config_get/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/config_import/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/config_pull/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/config_set/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/config_status/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/core_cron/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/core_edit/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/core_requirements/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/core_route/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/core_rsync/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/core_status/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/core_topic/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/deploy/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/deploy_hook-status/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/deploy_hook/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/deploy_mark-complete/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/drupal_directory/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/entity_create/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/entity_delete/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/entity_save/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/field_base-info/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/field_base-override-create/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/field_create/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/field_delete/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/field_formatters/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/field_info/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/field_types/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/field_widgets/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/generate/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/help/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/image_derive/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/image_flush/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/jn_get/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/list/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/locale_check/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/locale_clear-status/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/locale_export/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/locale_import-all/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/locale_import/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/locale_update/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/maint_get/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/maint_set/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/maint_status/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/migrate_fields-source/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/migrate_import/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/migrate_messages/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/migrate_reset-status/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/migrate_rollback/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/migrate_status/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/migrate_stop/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/mk_docs/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/php_cli/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/php_eval/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/php_script/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/pm_install/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/pm_list/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/pm_uninstall/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/queue_delete/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/queue_list/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/queue_run/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/recipe/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/role_create/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/role_delete/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/role_list/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/role_perm_add/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/role_perm_remove/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/runserver/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/site_alias/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/site_install/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/site_set/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/site_ssh/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/sql_cli/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/sql_connect/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/sql_create/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/sql_drop/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/sql_dump/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/sql_query/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/sql_sanitize/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/sql_sync/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/state_delete/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/state_get/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/state_set/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/theme_install/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/theme_uninstall/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/twig_compile/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/twig_debug/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/twig_unused/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/updatedb/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/updatedb_status/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/user_block/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/user_cancel/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/user_create/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/user_information/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/user_login/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/user_password/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/user_role_add/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/user_role_remove/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/user_unblock/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/version/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/views_dev/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/views_disable/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/views_enable/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/views_execute/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/views_list/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/watchdog_delete/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/watchdog_list/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/watchdog_show-one/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/watchdog_show/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/watchdog_tail/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/yaml_get_value/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/yaml_lint/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/yaml_unset_key/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/yaml_update_key/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/commands/yaml_update_value/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/contribute/CONTRIBUTING/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/contribute/unish/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/examples/ArtCommands.php/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/examples/PolicyCommands.php/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/examples/SiteAliasAlterCommands.php/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/examples/SyncViaHttpCommands.php/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/examples/XkcdCommands.php/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/examples/example.drush.yml/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/examples/example.prompt.sh/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/examples/example.site.yml/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/examples/git-bisect.example.sh/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/examples/helloworld.script/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/all/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/composer/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/controller/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/drush_alias-file/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/drush_command-file/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/drush_generator/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/drush_symfony-command/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/entity_bundle-class/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/entity_configuration/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/entity_content/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/field/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/form_config/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/form_confirm/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/form_simple/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/hook/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/install-file/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/javascript/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/layout/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/misc_apache-virtual-host/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/misc_nginx-virtual-host/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/module/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/phpstorm-meta/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/plugin_action/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/plugin_block/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/plugin_ckeditor/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/plugin_condition/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/plugin_constraint/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/plugin_entity-reference-selection/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/plugin_field_formatter/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/plugin_field_type/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/plugin_field_widget/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/plugin_filter/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/plugin_manager/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/plugin_menu-link/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/plugin_migrate_destination/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/plugin_migrate_process/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/plugin_migrate_source/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/plugin_queue-worker/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/plugin_rest-resource/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/plugin_views_argument-default/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/plugin_views_field/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/plugin_views_style/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/readme/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/render-element/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/service-provider/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/service_access-checker/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/service_breadcrumb-builder/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/service_cache-context/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/service_custom/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/service_event-subscriber/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/service_logger/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/service_middleware/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/service_param-converter/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/service_path-processor/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/service_request-policy/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/service_response-policy/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/service_route-subscriber/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/service_theme-negotiator/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/service_twig-extension/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/service_uninstall-validator/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/single-directory-component/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/test_browser/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/test_kernel/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/test_nightwatch/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/test_unit/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/test_webdriver/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/theme/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/theme_settings/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/yml_breakpoints/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/yml_links_action/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/yml_links_contextual/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/yml_links_menu/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/yml_links_task/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/yml_migration/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/yml_module-libraries/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/yml_permissions/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/yml_routing/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/yml_services/ + 2024-10-10 + daily + + + https://www.drush.org/latest/latest/generators/yml_theme-libraries/ + 2024-10-10 + daily + + \ No newline at end of file diff --git a/13.3.0/sitemap.xml.gz b/13.3.0/sitemap.xml.gz new file mode 100644 index 0000000000000000000000000000000000000000..1151f47ad5a85e5149fce3e7faf5bc0cbd52b803 GIT binary patch literal 1864 zcmV-O2edF*@Yf&!1srqL|L#?)UZ1>o>}ntk(}O z?p}N+p5K*!<(Bo@)orSmuA@Vs#|JIhO!xb%D+|&7g7jbETJKX#p*-lOF_pJgIvux8 z=?>fpdK!F4Mfx^Q8@$^#p{9YHE^~Pj>^_o83_xuBv`Xu?Q9E)JWb$F-ldAXrxN$^w zF-c=K4(YeeXSpllNZW?=ISo09gAZ1wC=P5AZG8fTqLa2wSbZ%a4a+Es-jp2$6kgi+ z-#*7Onp;OKo|2e2XCPBuf#c*95-^^wNPb|H zAztbdP_Ru+{0k_txB|x_wlW;W8b_h1xpKoGO{0rBQOO4s;Vzbs(^MP{k}yNPGD8Kd zD|3`56ygJu(M>BO33dmMN9|7(0&5ab!o55IATrc+T#%Q#>Gn&eUtq&c$21LuHN+$9 zj$mTKwRZ+(^7Uj;3Vv*5M@6*-hOyfV^1+nbK!`s&pcJ#=2!raCG}Ne`)DaB17Ok;@ z?Ufv=zOynf{e03vWc@MN)HXTWmAC$x%d~gCa0?D7|rp zwiIjgB$}KAD$`Lwig@tGv=YX3I%7kQbxa;5B(%pydxbK?uHWNe5xS1Ge z!p*z`1=~oi;g|zi4^wR@S}jsI5y}#yx>mB8*GeJ*WBC*_GENq5!G)=o#YY1a(ap5p zIZ_FU7|EZgz&gO>Pi9=4CBGH7IPfqHos~CA$BF+z5@4Y90X4x2=D;t=IEB207srK2 zJy|p_ZDB^sSEZ4=rY;R&LrBP)+T0-lXO|J!cv1)Zi9zxTWw;hpym2`>> z6fsipF%#E@^x8>}v**Q(ZG6X2z=Mo&^g$yr&v{LpH0&p4s5I=1ogI>PUUx`Fp=BCl z@#0Qcyc}f<<0vo8^+*ViP&2R7C|MB*x5AWZ;`vnF% zJKlPkot|Xfb|&s$hxBF@likn{Ak@Em!)gKq|C1BFu5CH5>lXHi4=_3P7t3GEdjRSG zJ}M1}y}np)oU8%k9)h<++QBHrGk0y70vhg)lV~}TO1sMwpbU9W#`w_(qjv~PO|Fjd z*?dv?inUghecXB%>u12ltMbMGANHygf!U0WZqO!`N8 zl30a_EOxURYr%NgQgEi-a^% zL3wy9H9(`&*U;)%&qo1@!p_{@6>dN&Dd6=mc?JpvR`Ml~5rGaA$SD$$3_;G+FLv6- z#IGAzW0Ef$S>v%AKv{t}EczSRsF7ZY&NGH}ndT|ABq^gEg%!eKT;-m)K&x^`#i5|%hJSj>*QKFupuvAD}51rzC!T3t_@1QP0M zh_Gnu)`F?%K%9j8WX+r#I1Zj&!s4#ArHIyO@(Fy+WMpXo;cIaZ5If0ugu-4bVQ2!r zG};NnZIFQpORdzy5;)e_0gJmvp2hY+F|R=n)<7>2^8YB@^S9z!Jp2pU%Mcj^rT_r< Cl6CL^ literal 0 HcmV?d00001 diff --git a/13.3.0/usage/index.html b/13.3.0/usage/index.html new file mode 100644 index 0000000000..7dd8e7cf65 --- /dev/null +++ b/13.3.0/usage/index.html @@ -0,0 +1,5328 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Usage - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

Usage

+ +

Drush can be run in your shell by typing drush from within your project root directory or anywhere within Drupal.

+
$ drush [options] <command> [argument1] [argument2]
+
+

Use the help command to get a list of available options and commands:

+
$ drush help pm:list
+
+

For even more documentation, use the topic command:

+
$ drush topic
+
+

Using the --uri option.

+

For multi-site installations, use a site alias or the --uri option to target a particular site.

+
$ drush --uri=http://example.com pm:install
+
+

Site Aliases

+

Drush lets you run commands on a remote server. Once defined, aliases can be referenced with the @ nomenclature, i.e.

+
# Run pending updates on staging site.
+$ drush @staging updatedb
+# Synchronize staging files to production
+$ drush rsync @staging:%files/ @live:%files
+# Synchronize database from production to local, excluding the cache table
+$ drush sql:sync --structure-tables-key=custom @live @self
+
+

See Site aliases for more information.

+ +
+
+ + + Last update: + June 14, 2024 + + + +
+ + + + + + + + +
+ + Authors: Moshe Weitzman, Rajeshreeputra + +
+ + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/13.3.0/using-drush-configuration/index.html b/13.3.0/using-drush-configuration/index.html new file mode 100644 index 0000000000..ce35ba125b --- /dev/null +++ b/13.3.0/using-drush-configuration/index.html @@ -0,0 +1,5549 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Drush configuration - Drush + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +

Drush Configuration

+

Drush configuration is useful to cut down on typing out lengthy and repetitive command line +options, and to avoid mistakes.

+

Directories and Discovery

+

drush.yml files are discovered as below, in order of precedence:

+
    +
  1. Drupal site folder (e.g. sites/{example.com}/drush.yml).
  2. +
  3. sites/all/drush, WEBROOT/drush, or PROJECTROOT/drush.
  4. +
  5. In any location, as specified by the --config option.
  6. +
  7. User's .drush folder (i.e. ~/.drush/drush.yml).
  8. +
  9. System-wide configuration folder (e.g. /etc/drush/drush.yml or C:\ProgramData\Drush\drush.yml).
  10. +
+

If a configuration file is found in any of the above locations, it will be +loaded and merged with other configuration files in the search list. Run drush status --fields=drush-conf +to see all discovered config files.

+

Environment variables

+

Your Drush config file may reference environment variables using a syntax like ${env.HOME}. +For example see the drush.paths examples below.

+

An alternative way to populate Drush configuration is to define environment variables that +correspond to config keys. For example, to populate the options.uri config item, +create an environment variable DRUSH_OPTIONS_URI=http://example.com. +As you can see, variable names should be uppercased, prefixed with DRUSH_, and periods +replaced with underscores.

+

Config examples

+

Specify config files to load

+
drush:
+  paths:
+    config:
+      # Load any personal config files. Is silently skipped if not found. Filename must be drush.yml
+      - ${env.HOME}/.drush/config/drush.yml
+
+
    +
  • The value may be path to a file, or to a directory containing drush.yml file(s).
  • +
  • View discovered config paths: drush status --fields=drush-conf --format=yaml
  • +
+

Specify folders to search for Drush command files.

+

These locations are always merged with include paths defined on the command line or +in other configuration files. On the command line, paths may be separated +by a colon : on Unix-based systems or a semi-colon ; on Windows, +or multiple --include options may be provided. Drush 8 and earlier did +a deep search in ~/.drush and /usr/share/drush/commands when loading +command files, so we mimic that here as an example.

+
drush:
+  include:
+    - '${env.HOME}/.drush/commands'
+    - /usr/share/drush/commands
+
+
    +
  • View all loaded commands: drush list
  • +
+

Specify the folders to search for Drush alias files (*.site.yml).

+

These locations are always merged with alias paths defined on the command line + or in other configuration files. On the command line, paths may be + separated by a colon : on Unix-based systems or a semi-colon ; on + Windows, or multiple --alias-path options may be provided. Note that + Drush 8 and earlier did a deep search in ~/.drush and /etc/drush when + loading alias files. +

drush:
+  paths:
+    alias-path:
+      - '${env.HOME}/.drush/sites'
+      - /etc/drush/sites
+
+- View all loaded site aliases: drush site:alias

+

Backup directory

+

Specify a folder where Drush should store backup files, including +temporary sql dump files created during sql:sync. If unspecified, +defaults to $HOME/drush-backups. +

drush:
+  paths:
+    backup-dir: /tmp/drush-backups
+

+

Global options

+
options:
+  # Specify the base_url that should be used when generating links.
+  uri: 'http://example.com/subdir'
+
+  # Specify your Drupal core base directory (useful if you use symlinks).
+  root: '/home/USER/workspace/drupal'
+
+  # Enable verbose mode.
+  verbose: true
+
+

Command-specific options

+
command:
+  sql:
+    cli:
+      options:
+        # Enable auto-complete in MySQL.
+        extra: "--auto-rehash"
+    dump:
+      options:
+        # Omit cache and similar tables (including during a sql:sync).
+        structure-tables-key: common
+  php:
+    script:
+      options:
+        # Additional folders to search for scripts.
+        script-path: 'sites/all/scripts:profiles/myprofile/scripts'
+  core:
+    rsync:
+      options:
+        # Ensure all rsync commands use verbose output.
+        verbose: true
+
+  site:
+    install:
+      options:
+        # Set a predetermined username and password when using site:install.
+        account-name: 'alice'
+        account-pass: 'secret'
+
+

Non-options

+
sql:
+  # An explicit list of tables which should be included in sql-dump and sql-sync.
+  tables:
+    common:
+      - user
+      - permissions
+      - role_permissions
+      - role
+  # List of tables whose *data* is skipped by the 'sql-dump' and 'sql-sync'
+  # commands when the "--structure-tables-key=common" option is provided.
+  # You may add specific tables to the existing array or add a new element.
+  structure-tables:
+    common:
+      - cache
+      - 'cache_*'
+      - history
+      - 'search_*'
+      - 'sessions'
+      - 'watchdog'
+  # List of tables to be omitted entirely from SQL dumps made by the 'sql-dump'
+  # and 'sql-sync' commands when the "--skip-tables-key=common" option is
+  # provided on the command line.  This is useful if your database contains
+  # non-Drupal tables used by some other application or during a migration for
+  # example.  You may add new tables to the existing array or add a new element.
+  skip-tables:
+    common:
+      - 'migration_*'
+
+ssh:
+  # Specify options to pass to ssh.  The default is to prohibit
+  # password authentication, and is included here, so you may add additional
+  # parameters without losing the default configuration.
+  options: '-o PasswordAuthentication=no'
+  # This string is valid for Bash shell. Override in case you need something different. See https://github.com/drush-ops/drush/issues/3816.
+  pipefail: 'set -o pipefail; '
+
+notify:
+  # Notify when command takes more than 30 seconds.
+  duration: 30
+  # Specify a command to run. Defaults to Notification Center (OSX) or libnotify (Linux)
+  cmd: /path/to/program
+  # See https://github.com/drush-ops/drush/blob/13.x/src/Commands/core/NotifyCommands.php for more settings.
+
+xh:
+  # Start profiling via xhprof/tideways and show a link to the run report.
+  link: http://xhprof.local
+  # See https://github.com/drush-ops/drush/blob/13.x/src/Commands/core/XhprofCommands.php for more settings.
+  profile-builtins: true
+  profile-cpu: false
+  profile-memory: false
+
+

Misc

+
    +
  • If you are authoring a commandfile and wish to access the user's configuration, see Command Authoring.
  • +
  • Setting boolean options broke with Symfony 3. This will be fixed + in a future release.
  • +
  • Version-specific configuration. Limit the version of Drush that will load a configuration file by placing +the Drush major version number in the filename, e.g. drush10.yml.
  • +
  • The Drush configuration system has been factored out of Drush and shared with the world at https://github.com/consolidation/config. Feel free to use it for your projects. Lots more usage information is there.
  • +
+ +
+
+ + + Last update: + May 31, 2024 + + + +
+ + + + + + + + + + + +
+
+ + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/versions.json b/versions.json index 6177ebffd9..c6249ddaa2 100644 --- a/versions.json +++ b/versions.json @@ -1,4 +1,9 @@ [ + { + "version": "13.3.0", + "title": "13.3.0", + "aliases": [] + }, { "version": "13.3.0-rc1", "title": "13.3.0-rc1",