Git Product home page Git Product logo

posh-drupal's Introduction

posh-drupal

This project provides Powershell commands for working with the Drupal 8 CLI (drush and the drupal console).

Currently this project exposes 2 commands drush and drupal which invoke drush and the drupal console respectively. These commands will search the working directory hierarchy to find the drush and drupal console scripts, in a similar way to how drush launcher works.

This requires that Drupal 8 has been installed using Composer.

Installation

To get started, install the posh-drupal module from the Powershell Gallery:

install-module posh-drupal

Once installed, import the module (you can add this in your Powershell profile):

import-module posh-drupal

The following commands will now be available in your shell:

drush
drupal
New-Drupal

Note that the New-Drupal function just returns an instance of the Drupal class which encapsulates the logic for finding a drupal installation in a directory's hierarchy. It is used internally by the drush and drupal functions.

Customization

These commands assume that the php executable is available in your path. If you want to force use of a specific PHP executable, then add the following to your profile:

$global:DrupalSettings.PhpExecutable = 'C:\PHP72\php.exe'

posh-drupal's People

Contributors

jeremyskinner avatar

Stargazers

dyslexictech avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

nanguamache

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.