Skip to content

Feat: add hyva theme install for local dev environment#196

Open
dermatz wants to merge 2 commits into
mainfrom
feat/add-hyva-theme-install
Open

Feat: add hyva theme install for local dev environment#196
dermatz wants to merge 2 commits into
mainfrom
feat/add-hyva-theme-install

Conversation

@dermatz
Copy link
Copy Markdown
Member

@dermatz dermatz commented Jun 3, 2026

This pull request adds an optional step to the Magento installation script for installing the Hyvä theme. Users are prompted to provide their Hyvä repository URL and token, making it easier to include Hyvä as part of the setup if they have a license.

Theme installation enhancement:

  • Added an interactive prompt in .ddev/commands/web/install-magento to optionally install the Hyvä theme, including steps to configure Composer with the provided repository URL and token, and require the Hyvä theme package.

Copilot AI review requested due to automatic review settings June 3, 2026 23:13
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an optional, interactive Hyvä theme installation step to the local ddev install-magento workflow, integrating Hyvä setup into the Magento bootstrap process for developers who have a Hyvä license.

Changes:

  • Prompt the user during install to optionally install Hyvä and capture repo URL + token.
  • Configure Composer to access the Hyvä repository and require the Hyvä default theme package.

Comment on lines +82 to +83
read -r -p "Install Hyvä theme? This requires a free license key from https://www.hyva.io/licenses/manage/shops/. Install now? [y/N] " install_hyva
if [[ "$install_hyva" =~ ^[Yy]$ ]]; then
Comment on lines +91 to +93
composer config repositories.private-packagist composer "$hyva_repo_url"
composer config --global --auth http-basic.hyva-themes.repo.packagist.com token "$hyva_token"
composer require 'hyva-themes/magento2-default-theme'
# optional: install Hyvä theme (open source since June 2025, requires free license key)
read -r -p "Install Hyvä theme? This requires a free license key from https://www.hyva.io/licenses/manage/shops/. Install now? [y/N] " install_hyva
if [[ "$install_hyva" =~ ^[Yy]$ ]]; then
read -r -p "Enter your Hyvä https://hyva-themes.repo.packagist.com/repository-url (from https://www.hyva.io/licenses/manage/shops/): " hyva_repo_url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants