Skip to main content

How do you rebuild node access permissions using CLI?

To rebuild permissions from the command-line using Drush:

drush php-eval 'node_access_rebuild();'

Or using Drupal Console:

drupal node:access:rebuild

 

Related articles

Andrew Fletcher22 Jan 2025
Removing a missing module in Drupal
Occasionally, a Drupal site may display a warning about a module being "Missing or invalid." This issue occurs when a module is marked as installed in the configuration but is no longer present in the file system. A common example is the `fakeobjects` module, which is associated with CKEditor 4 and...