Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I setup Drupal Console on Windows 7?

How do I install/setup Drupal Console on Windows 7? In the video by the author, the environment used is Linux.

I tried to install it on Windows 7, but I wasn't able to use it to generate a module code.

like image 1000
MSN Avatar asked Dec 23 '14 14:12

MSN


People also ask

How do I open Drupal console?

Installing Drupal ConsoleLog in to your site using SSH. At the command prompt, change the current directory to where the Drupal site is installed. For example, type cd ~/public_html/drupal. You can now run Drupal Console by simply typing drupal at the command prompt from any directory in your account.

Does Drupal work on Windows?

Microsoft web installer/platformThe quickest and easiest way to install Drupal on a Windows platform is to use the Microsoft Web Platform Installer as described in detail on the drupal.org page: Install Drupal 7 on Windows Server 2008 R2 with Microsoft Web Platform Installer.

Can I use Drupal on command line?

The Drupal Console is a suite of tools that you run on a command line interface (CLI) to generate boilerplate code and interact with a Drupal 8 installation. For earlier versions of Drupal, see drush-related coder module tools.


1 Answers

You can download the drupal console either using Git Bash

$curl https://drupalconsole.com/installer -L -o drupal

Or using windows command prompt

c:\>php -r "readfile('https://drupalconsole.com/installer');" > drupal

After downloading this file, place it beside php.exe file within your php folder (not project folder), restart your terminal/cmd-prompt and type

$drupal

to get started.

Besides downloading Drupal Console .phar file, you can also install Drupal Console using composer on windows.

First Download and install composer in your system.

Then on your windows command prompt or git terminal

$composer global require drupal/console:@stable
like image 139
sarathkm Avatar answered Sep 18 '22 10:09

sarathkm