Installing Drush manually
Drush is a command‑line shell and scripting interface for Drupal. It allows you to manage Drupal sites more efficiently by running commands for updates, backups, and administration tasks. On ruachost.com, you can install Drush manually if it is not already available through your hosting environment.
Why Install Drush?
Section titled “Why Install Drush?”- Automate repetitive Drupal tasks.
- Manage modules and themes quickly.
- Run database updates and clear caches from the command line.
- Improve productivity for developers and site administrators.
Steps to Install Drush Manually
Section titled “Steps to Install Drush Manually”Step 1: Connect to Your Server
Section titled “Step 1: Connect to Your Server”- Log in to your hosting account at ruachost.com.
- Access your server via SSH (Secure Shell).
Step 2: Download Drush
Section titled “Step 2: Download Drush”-
Navigate to your desired installation directory (e.g.,
/usr/local/share). -
Clone the Drush repository from GitHub:
Terminal window git clone https://github.com/drush-ops/drush.git -
Move into the Drush directory:
Terminal window cd drush
Step 3: Set Up Drush
Section titled “Step 3: Set Up Drush”-
Checkout the version compatible with your Drupal installation:
Terminal window git checkout 10.x
(Replace10.xwith the version you need.) -
Install dependencies using Composer:
Terminal window composer install
Step 4: Configure System Path
Section titled “Step 4: Configure System Path”-
Add Drush to your system path so it can be run globally:
Terminal window ln -s /usr/local/share/drush/drush /usr/local/bin/drush -
Verify installation:
Terminal window drush --version
✅ Drush is now installed and ready to use.
Important Notes
Section titled “Important Notes”- Ensure Composer is installed before running Drush.
- Always match Drush version with your Drupal version.
- Use SSH access with sufficient permissions to install globally.