Skip to main content
Drupal 8

Main navigation

  • Home
    • Question And Answer
    • NEWS
    • Projects
  • Tutorials - Drupal
    • Android
    • Other
User account menu
  • Log in

Breadcrumb

  1. Home

Some Features commands (drush)

By editor , 11 January, 2016
Question

How to enable a feature using drush command ?
How to revert a feature using drush cli ?
How to revert all features using drush command ?
How to recreate a feature using drush cli (update a feature) ?

Enable a Features
drush en feature_name

Revert a feature
drush fr freture_name

Revert all features
drush fra -y
#OR Also
drush fr-all

Recreate a Feature (Update a Feature)
drush fu freture_name

Disable a feature

To disable a feature, visit the Feature administration page (/admin/structure/features), deselect the appropriate checkbox and Save settings.
CAUTION : Disabling the feature module is supposed to also disable all the functionality that was defined by it. That is, remove node types that were created by it, etc...

Tags

  • Shell
  • Drush
  • Features

Comments

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

Links

  • Drupal.org
  • Drupal core release cycle
  • Drupal events with ease
  • Unit test with Drupal using PHPUnit (Drupal 10)
  • Tokens for file upload url
  • Tips for Docker
  • CKEditor inline image files usage for custom forms.
  • Install Docker on Linux Mint
  • Install PHP 8.1
  • Drupal Security Best Practices
  • Order and sort items with tabledrag
  • Add a custom service YAML container
  • Apply a patch with composer