Skip to content

Instantly share code, notes, and snippets.

@theodorosploumis
Last active October 22, 2022 09:32
Show Gist options
  • Save theodorosploumis/4e7dddee663d78456c691e17258110df to your computer and use it in GitHub Desktop.
Save theodorosploumis/4e7dddee663d78456c691e17258110df to your computer and use it in GitHub Desktop.
Get lists of software etc used on a Drupal 8.x site (modules, themes, 3rd party libraries, drupal libraries)
// Get lists of software etc used on a Drupal 8.x site
// Get drupal projects
drush pml --status="enabled"
// Get non core Drupal projects installed
drush pml --status="enabled" --no-core --format="table"
// Get php party libraries
composer show -i
// Get php libraries in html format
// Also, see: https://github.com/t4web/ComposerLockParser
// and https://github.com/danielgp/composer-packages-listing
composer show -i | awk '{print "<tr><td>"$1"</td><td>"$2"</td><td>"$3"</td></tr>\n"}'
// Get Drupal permissions for role "USER_ROLE"
drush rls USER_ROLE
// Get Drupal libraries used
drupal debug:libraries [arguments]
// Get js packages installed from package.json
// Using: https://github.com/zeke/package-json-to-readme
readme package.json > README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment