Drupal
  • Managing Successful Drupal Based Projects
  • Process
    • Team Roles and Responsibilities
    • Ceremonies
    • User Stories Best Practices
    • Glossary
  • Development Resources
    • Coding Standards
    • Setup Local Development Enviornment
    • Content Modeling
    • Git, Commit Messages & Pull Request Guidelines
    • Useful Terminal Commands
    • Package management - Composer, BLT and CI
    • Behat
      • How Behat is used in Acquia Projects?
    • Maintaining your platform/patches
  • JIRA Ticket Templates
    • Ticket Template
    • Composer Updates
    • Redirect endpoints that should not be public
    • Bug Template
    • Sync local with latest upstream code and database sprint X
    • Drupal Enablement
  • ACE & ACSF
    • Deploying to Acquia Cloud
    • ACSF - First Pull Request
    • ACSF & Drupal and Your Platform
Powered by GitBook
On this page
  • Drush
  • BLT
  • ACSF Tools
  • Composer
  • Bash

Was this helpful?

  1. Development Resources

Useful Terminal Commands

Drush, BLT, Composer and Bash Commands

PreviousGit, Commit Messages & Pull Request GuidelinesNextPackage management - Composer, BLT and CI

Last updated 6 years ago

Was this helpful?

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

  • 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 ⌘ →

. https://github.com/acquia/acsf-tools