Search

Tip: type a command such as theme build. Press Esc to close.

mageforge:theme:build

Build selected themes (CSS/TailwindCSS)

Since v0.0.3Themealias: frontend:build

Run it

bin/magento mageforge:theme:build <theme-code> [<theme-code> ...]
bin/magento frontend:build Magento/luma Magento/blank

Builds selected themes by compiling assets (CSS/TailwindCSS) and deploying static content.

Arguments:

  • themeCodes — One or more theme codes in format Vendor/theme. Accepts wildcards like Magento/*.

Options:

  • --with-parents — Build all parent themes first, without asking.
  • --no-parents — Never build parent themes (default in non-interactive environments).

Behavior:

  • If no theme codes are provided, an interactive prompt lets you select themes.
  • For each theme, the appropriate builder is determined automatically (Hyvä, TailwindCSS, Magento Standard, etc.).
  • If a selected theme has parent themes (e.g. a child of Vendor/base), you are asked whether to build them first, topmost ancestor first. Only parents with a builder are offered; vendor (Composer) themes are skipped.
  • Displays a summary of built themes and execution time (including the installed Hyvä version for Hyvä themes).

Version history

  • v0.5.0 – Implement StaticContentCleaner and update theme build commands
  • v0.3.0 – Improve build commands to show full output in verbose mode (+1 more)