mage del
Remove composer packages, by name or by term.
mage remove does the same.
mage del vendor/package
mage del hyva
mage del hyva siteation -y
By name
A first argument with a slash is a package name, and everything is passed as is to composer remove.
By term
Otherwise each argument is a term.
Mage lists every direct dependency in composer.json that contains any of the terms, and asks once before removing them.
- Terms match as plain text and case-insensitive, so
hyvamatcheshyva-themes/magento2-default-themeandvendor/magento2-hyva-compat. - Only packages match, never platform entries such as
phporext-*. - Packages in
require-devare removed with--dev. -yor--yesremoves them without asking.
This requires jq.