Download the PHP package keyboardcowboy/drush-denver without Composer
On this page you can find all versions of the php package keyboardcowboy/drush-denver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download keyboardcowboy/drush-denver
More information about keyboardcowboy/drush-denver
Files in keyboardcowboy/drush-denver
Package drush-denver
Short Description Customize modules, variables and permissions for each environment.
License GPL-2.0+
Homepage https://github.com/KeyboardCowboy/drush-denver
Informations about the package drush-denver
Drupal Environment Personalizer
The Drupal ENVironemnt personalizER allows you to define macro settings to apply to your site in one command, such as enabling and disabling modules and setting variables.
Installation
Extract this repository into any of Drush's searchable paths for plugins:
-
A
.drushfolder in your HOME folder. -
Anywhere in a folder tree below an active module on your site.
-
/usr/share/drush/commands(configurable) -
In an arbitrary folder specified with the
--includeoption. - Drupal's
/drushor/sites/all/drushfolders.
See drush topic docs-commands for more details
Configuration
These can be defined in two different files and only apply to the site directory in which they are defined.
-
sites/[default|example.com]/drush/env.drushrc.yml sites/[default|example.com]/drush/[dev.]env.drushrc.yml
Like aliases, in the first file you can define multiple aliases keyed on the definition name such as 'dev,' 'stage' or 'chris.' In the second example you can define each environment in a separate file and prefix the filename with the definition name.
The definitions are formatted as such:
Settings for your local environment.
modules:
enable:
- module_name
disable:
- module_name
variables:
your_var: your_var_value
another_var: NULL
permissions:
RoleName:
permission_name: 0
commands:
# Using longhand notation.
command-name:
alias: @self
arguments:
arg1: arg1-val
options:
opt1: opt1-val
# Using shorthand notation.
command-name:
- yes
- arg1
- arg2
- --option1
How to Use It
You must be inside a Drupal site directory or use an alias for these commands to work.
-
Create a starter file
drush env-dir --make -
See which environments are available.
drush envdrush env-list -
Inspect the contents of an environment definition.
drush env [en-name] --infoEx.
drush env dev --info -
Run the environment settings for a single definition.
drush env [env-name]Ex.
drush env dev -
Combine multiple environments. The settings for the latter overriding the former.
drush env [env-name1]+[env-name2]Ex.
drush env dev+chris