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?
-
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
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
-
Navigate to your desired installation directory (e.g.,
/usr/local/share). -
Clone the Drush repository from GitHub:
Bash git clone https://github.com/drush-ops/drush.git -
Move into the Drush directory:
Bash cd drush
Step 3: Set Up Drush
-
Checkout the version compatible with your Drupal installation:
Bash git checkout 10.x
(Replace10.xwith the version you need.) -
Install dependencies using Composer:
Bash composer install
Step 4: Configure System Path
-
Add Drush to your system path so it can be run globally:
Bash ln -s /usr/local/share/drush/drush /usr/local/bin/drush -
Verify installation:
Bash drush --version
✅ Drush is now installed and ready to use.
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.