![]() With just the launcher installed, you're limited to just a few Drupal Console commands involving installing (via the very cool "chain" command) Drupal, working with generic. On Windows the project documentation is pretty good (as well as this Evolving Web blog post by Dave Vasilevsky). You may need to use "sudo" with the "mv" command. These commands will move the launcher into your /usr/local/bin directory and set it to be executable by everyone. Installing the launcher should be pretty straight-forward on Mac or Linux as there's a simple curl command: This is a bit different than earlier (pre-release-candidate) versions of Drupal Console, and can be a source of confusion. The launcher is installed globally on your machine, while Drupal Console is installed separately on each of your local Drupal 8 projects. The only real prerequisite is that Drupal Console requires PHP 5.5.9 (on the command line) or higher.Īs mentioned above, there are actually two parts of Drupal Console that users are strongly recommended to install - the "Drupal Console Launcher" and "Drupal Console" itself. In the past, I've often used Acquia Dev Desktop when teaching new students to use Drupal, so I can confirm that these instructions work just fine in that environment. ![]() ![]() If you are, you're probably clever enough to modify these instructions appropriately. For this exercise, your local development environment doesn't matter all that much unless you're running a virtualized solution. So, let's assume you have a local Drupal 8 instance installed and up-and-running on your local machine. That being said, you'll still need Composer installed, as we're going to use it to install part of Drupal Console (a bit confusing, I know). This example will not utilize a fully-Composer-ized™ Drupal 8 install (possibly expect a second blog post once best practices evolve a bit more - see below), rather it will focus on a "standard" (old school?) Drupal install via traditional methods. This blog post's goal is to describe one method for installing Drupal Console Launcher and Drupal Console on an existing Drupal 8 site. Plus, the distinction between the Drupal Console Launcher (global executable) and the rest of Drupal Console can be confusing. To some newcomers, getting Drupal Console up-and-running can be a bit tedious as there are a few ways to install it. Here at DrupalEasy, we're such big fans of Drupal Console, we've designed our "Introduction to Drupal 8 Module Development" full-day workshop around it ( we're offering it at DrupalCon Baltimore). When using Drupal Console, module developers usually don't have to worry too much about basic "use" statements, PSR-4 directory structures and file names, annotations, and much boilerplate code that is normally part of the development process. Its "generate" functionality takes much of the pain out of setting up the scaffolding for many types of Drupal 8 modules, and in the process that alone saves developers a significant amount of time. Is a fantastic tool for helping to write Drupal 8 modules of that there is little debate.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |