Community Documentation

Create a Mothership sub theme with Drush

Last updated February 27, 2013. Created by oxyc on June 5, 2012.
Edited by batigolix, FreeFox. Log in to edit this page.

You can create a Mothership sub theme with the drush command:

drush mothership "Name of sub theme"

For example:
drush mothership "Daughter of the Mothership"

You can specify the desired name, machine name, description and sitename directory of your new theme and it will be generated based on NEWTHEME, all set and ready to go.

Clear the drush cache before creating the sub theme:

drush cc drush

For more information run:

drush help mothership

Drush help text for mothership

Create a mothership sub-theme.

Examples:
drush mothership "Daughter of the Mothership"
Create a sub-theme called `Daughter of the Mothership` with the automatically generated machine name `daughter_of_the_mothership`.
                                
drush mothership "Daughter of the Mothership" childship
Create a sub-theme called `Daughter of the Mothership` with the machine name `childship`.

drush mothership "Daughter of the Mothership" childship --site-name=all
Create a sub-theme called `Daughter of the Mothership` in the sites/all/themes/childship.

Arguments:
name               The name of your sub-theme.
machine-name       [optional] A machine-readable name for your sub-theme.

Options:
--description      A description for your sub-theme.
--machine-name     A machine-readable name for your sub-theme.
--name             The name of your sub-theme.
--site-name        The sitename directory where you wish the sub-theme to be installed. Defaults to the sitename where Mothership itself is located.