Useful Terminal Commands
Drush, BLT, Composer and Bash Commands
Drush
List all drush site aliases
drush saLog into a site as an admin
drush uliEnable a module
drush en module_nameUninstall a module
drush pmu module_nameClear and update mismatched entities
drush entity-updates
BLT
Setup a site
blt setupOutput BLT setup and configuration
blt doctorUse BLT to pull all files down from ACE.
blt drupal:sync:filesSync local db with multisite dev environment use following command inside docker.
blt drupal:sync --site=mysiteRun one Behat test
blt tests:behat -Dbehat.paths=${PWD}/tests/behat/features/Examples.feature
ACSF Tools
A Set of drush scripts designed to ease administering an Acquia Cloud Site Factory multisite platform. Use Composer to require the module. Then follow the readme file to set it up for your project. https://github.com/acquia/acsf-tools
acsf-tools-list (sfl): This command will list the details (e.g., name, url, aliases) for all sites in your factory.acsf-tools-info (sfi):This command will list site specific information (e.g., ID, Name, DB Name, Domain) for all sites in your factory.acsf-tools-ml (sfml): This command will run any drush command against all sites in your factory. E.g.,drush @coolsites.01dev sfml stwill run the drush status command against all sites in your factory and return the output. This is useful for disabling clearing cache, or disabling a single module for every site in your factory.acsf-tools-dump (sfdu):This command will create database backups for all sites in your factory.acsf-tools-restore (sfre): This command will restore database backups for all sites in your factory.
Composer
Require a Drupal module
composer require drupal/admin_toolbarView outdated modules and dependencies
composer outdateComposer update
composer update
Bash
Clear the terminal without deleting history
clearMove between open terminal tabs command arrow right
⌘ →
Last updated
Was this helpful?