Skip to content

Add --hyva flag to install Hyvä theme with magebox new#21

Merged
peterjaap merged 3 commits into
mainfrom
hyva-support
Mar 14, 2026
Merged

Add --hyva flag to install Hyvä theme with magebox new#21
peterjaap merged 3 commits into
mainfrom
hyva-support

Conversation

@peterjaap
Copy link
Copy Markdown
Collaborator

@peterjaap peterjaap commented Mar 14, 2026

Adds a --hyva flag that works with both interactive and quick install modes.

Prompts for the Hyvä Private Packagist repository URL and token if not already configured, installs the theme via Composer, and in quick mode automatically activates it as the default frontend theme.

Closes #19

Adds a --hyva flag that works with both interactive and quick install modes.
Prompts for the Hyvä Private Packagist repository URL if not already
configured, installs the theme via Composer, and in quick mode automatically
activates it as the default frontend theme.
Hyvä's Private Packagist requires HTTP basic auth (username: "token",
password: the actual token) rather than bearer auth. Now prompts for
both the repo URL and auth token separately, and checks existing
auth.json before prompting.
Moved theme activation to after setup:upgrade (which registers the theme
in the database) and simplified to use bin/magento config:set with
theme_id 5 instead of a raw PDO query.
@peterjaap peterjaap merged commit 4610ce1 into main Mar 14, 2026
10 checks passed
@peterjaap peterjaap deleted the hyva-support branch March 14, 2026 22:34
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.

Add Hyva support to magebox new --quick

1 participant