Create the drush commands extending the DrushCommands. (nodetypecount, nodecount, rolecount, usercount)

Created on 3 August 2023, over 1 year ago
Updated 4 August 2023, over 1 year ago

Create the drush commands extending the DrushCommands. (nodetypecount, nodecount, rolecount, usercount)

Drush commands
nodetypecount command will return the number of Content Types present in the site, you can use command in following ways.
drush nodetypecount --help
drush nodetypecount

nodecount command will return the number of Nodes present in the site, you can use command in following ways.
drush nodecount --help
drush nodecount
drush nodecount < content-type-names >
drush nodecount page,article

rolecount command will return the number of Roles present in the site, you can use command in following ways.
drush rolecount --help
drush rolecount

usercount command will return the number of Users existing in the site, you can use command in following ways.
drush usercount --help
drush usercount
drush usercount
drush usercount administrator,authenticated

Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇳India heykarthikwithu Bengaluru 🌍

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024