Guide

Command Line Tools for Drupal for Drupal 8, 9, and 10

Command Line Tools for Drupal

Content in this guide

Command Line Tools for Drupal

What will you learn

  • How to use Composer to manage a Drupal codebase
  • How to use Drush to streamline Drupal site administration and development tasks
  • How to use the command line for common development tasks
  • How to use Git for version control

Overview

Drupal users need to know how to use Composer to manage a Drupal codebase and its dependencies, including installing and updating packages, and Drupal specific Composer configuration options.

Drush (the Drupal Shell) is a command-line tool used for efficiently managing and automating various administrative tasks in Drupal, such as module installation, database updates, and cache clearing, and enhancing development workflow and productivity.

To manage your codebase and ultimately deploy it, you'll want to be familiar with Git.

To use these tools, you'll need to be proficient on the command line with some basic commands.

Courses

Install and manage software for your site with Composer

This course covers Composer basics, specifying package versions, configuring Composer for Drupal-specific needs, deploying projects to hosting environments, and troubleshooting common issues. By the end of the course, you will be able to use Composer to streamline your Drupal development workflow, ensuring efficient dependency management and project maintenance.

More information

Composer is the preferred dependency management solution for PHP, is used by Drupal core, and is becoming increasingly popular for managing the modules and themes used for a Drupal project.

Administrate and build your site with Drush

This course covers the basics of Drush, including installation and configuration, and extends to more advanced topics such as managing modules and themes, automating common tasks, and deploying updates. Learners will also explore creating custom Drush commands and code generators, using Drush for site and environment management, and leveraging Drush's output formatting and logging capabilities.

More information

Drush is a command line interface that enables you to interact with your Drupal site without clicking around the graphical user interface (GUI).

Learn to use the command line

In this course, we'll walk through some of the most common command line tasks to help you understand what is going on and be able to do some cool tricks yourself.

More information

Development environments provide a sandbox where you can work on your application without affecting the live site.

Git

This is an in-depth course that starts with the basics of version control, establishes some terminology, and a base line workflow, then continues to build on that by going beyond the basics of the various Git commands to make the most out of your tools.

More information

The Git version control system can help you keep track of changes in your codebase and make sure you don't unintentionally lose work.

“Drupalize.Me has trained thousands of Drupalistas. Their video lessons help to address our constant need for more Drupal talent. Drupal needs training like this to support its growth.”
Dries Buytaert
Drupal Founder and Project Lead
Photo of Dries Buytaert
“They’re easy to understand. They’re thorough. They’re funny. They’re always entertaining, and it makes it easy to learn parts of Drupal and how you can integrate it into your workflow and learn more and have a good time doing it.”
Roger Carr
Drupalize.Me Member
Photo of Roger Carr
“The mission of the Drupal Association is to foster and support the Drupal software project, the community, and its growth. Drupal education, like that provided by Drupalize.Me, is important to this mission.”
Megan Sanicki
Former Exec. Director, Drupal Assoc.
Photo of Megan Sanicki

FAQs

Am I required to sign a contract?
No. You can purchase a membership and/or cancel any time. Drupalize.Me is a pay-as-you-go service.

Can I preview tutorials before joining?
Yes! Just navigate to our tutorial library. Our free tutorials are labeled with a green "FREE" tag.

Can I watch videos on my mobile device?
Yes! Drupalize.Me is a responsive site and can be accessed in the browser on any mobile device. More FAQs