tools for drupal 8 - bobbis.com · drupal-8-projects-composer. drush "drush is a command line...
TRANSCRIPT
Get and install Composer
• copy commands from getcomposer.org/download/
• mv composer.phar /usr/local/bin/composer
• Add /Users/username/.composer/vendor/bin to your PATH
Start a project with drupal-composer/drupal-project
https://github.com/drupal-composer/drupal-project
Kickstart a plain Drupal project with composer:
composer create-project drupal-composer/drupal-project:8.x-dev some-dir --stability
dev --no-interaction
Composer Resources• The quick install: https://getcomposer.org/download/
• Using composer to manage a Drupal project: https://www.drupal.org/docs/develop/using-composer/ using-composer-to-manage-drupal-site-dependencies
• Tips for Managing Drupal 8 projects with composer: https://www.jeffgeerling.com/blog/2017/tips-managing-drupal-8-projects-composer
Get and install Drush
• If you used drupal-composer/drupal-project, you already have it
• Or install globally composer global require drush/drush
Example Commands
• drush uli - Log in as user 1
• drush cr - Cache Rebuild is the new cache clear
• drush en ctools - Enable ctools
• drush dl ctools - Download ctools module
More Drush Commands at https://drushcommands.com/
Drupal Console "The Drupal CLI. A tool to generate boilerplate code,
interact with and debug Drupal."
Get and install Drupal Console
• If you used drupal-composer/drupal-project, you already have it
• Or install globally https://drupalconsole.com/articles/how-to-install-drupal-console