Useful Terminal Commands
Drush, BLT, Composer and Bash Commands
Drush
List all drush site aliases
drush sa
Log into a site as an admin
drush uli
Enable a module
drush en module_name
Uninstall a module
drush pmu module_name
Clear and update mismatched entities
drush entity-updates
BLT
Setup a site
blt setup
Output BLT setup and configuration
blt doctor
Use BLT to pull all files down from ACE.
blt drupal:sync:files
Sync local db with multisite dev environment use following command inside docker.
blt drupal:sync --site=mysite
Run 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 st
will 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_toolbar
View outdated modules and dependencies
composer outdate
Composer update
composer update
Bash
Clear the terminal without deleting history
clear
Move between open terminal tabs command arrow right
⌘ →
Last updated
Was this helpful?