Skip to content

generate-theme

Tip

This command is part of Drupal core, not Drush. Use the Drupal issue queue for bug reports and feature requests.

Generates a new theme based on latest default markup.

Examples

  • generate-theme custom_theme --name "Custom Theme" --description "Custom theme generated from a starterkit theme" --path themes
  • generate-theme custom_theme --name "Custom Theme" --starterkit mystarterkit

Arguments

  • machine-name. The machine name of the generated theme

Options

  • --name[=NAME]. A name for the theme.
  • --description[=DESCRIPTION]. A description of your theme.
  • --path[=PATH]. The path where your theme will be created. Defaults to: themes [default: themes]
  • --starterkit[=STARTERKIT]. The theme to use as the starterkit [default: starterkit_theme]

Global Options

  • -h, --help. Display help for the given command. When no command is given display help for the list command
  • --silent. Do not output any message
  • -q, --quiet. Only errors are displayed. All other output is suppressed
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -V, --version. Display this application version
  • --ansi. Force (or disable --no-ansi) ANSI output
  • --no-ansi. Negate the --ansi option.
  • -n, --no-interaction. Do not ask any interactive question
  • --url=URL. A base URL (e.g. example.com). Used for building links, selecting a multi-site, etc.
  • -e, --env=ENV. The Environment name. [default: prod]
  • --no-debug. Switches off debug mode.

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.