HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

drupal — Generate boilerplate code, interact with and debug Drupal projects. Some subcommands such as `check`

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandboilerplatedrupalinteractclicodewithgenerate

Problem

How to use the drupal command: Generate boilerplate code, interact with and debug Drupal projects. Some subcommands such as check have their own usage documentation. drupal has been deprecated. Use drush instead. More information: <https://drupalize.me/topic/drupal-console>.

Solution

drupal — Generate boilerplate code, interact with and debug Drupal projects. Some subcommands such as check have their own usage documentation. drupal has been deprecated. Use drush instead. More information: <https://drupalize.me/topic/drupal-console>.

Install a module:
drupal module:install {{module_name}}


Uninstall a module:
drupal module:uninstall {{module_name}}


Clear all caches:
drupal cache:rebuild


View current Drupal installation status:
drupal site:status

Code Snippets

Install a module

drupal module:install {{module_name}}

Uninstall a module

drupal module:uninstall {{module_name}}

Clear all caches

drupal cache:rebuild

View current Drupal installation status

drupal site:status

Context

tldr-pages: common/drupal

Revisions (0)

No revisions yet.