n98-magerun2 v10.2.0: See the Store Configuration Magento Actually Uses

Published by Christian Münch on

n98-magerun2 v10.2.0 (codename Strasbourg) is here. The next time a store behaves differently from what you see in core_config_data, config:store:get can show you the value Magento resolves for that store view. This release also adds commands to inspect plugins and competing dependency injection (DI) preferences, plus a sys:check diagnostic for layout declarations that can disable full-page caching across the storefront.

What’s New

See the Effective Configuration for a Store View

config:store:get now uses Magento’s merged configuration, which combines module XML defaults, database values, and deployment settings in app/etc/config.php and app/etc/env.php. A scoped query includes inherited values, so you can see what a store view uses even when it has no override of its own.

./n98-magerun2.phar config:store:get 'web/*' --scope=stores --scope-id=default

Replace default with your store view code. The Updated At column stays in the output for compatibility and is now blank.

If you automate exports, review your use of --update-script and --magerun-script: both now export the effective listing. Importing those values can turn inherited settings into explicit database values. See the config:store:get reference.

New Command: dev:class:plugin:list

When a method behaves differently on the storefront than in the Admin, check which plugins are configured for that area. Give the command a class, an interface, or a specific public method. The output shows each plugin’s interception type (before, around, or after), configured sort order, and whether it is disabled.

./n98-magerun2.phar dev:class:plugin:list 'Magento\Catalog\Model\Product::getName()' --area=frontend

Omit --area to inspect global configuration. The listing shows configured plugins; it does not trace the order of a live request.

New Command: dev:module:preference:conflicts

Find competing DI preferences in enabled modules: different implementations declared for the same target in the same scope. Each result includes the module, XML file, and line number, so you can go straight to the declarations. A global preference and a frontend override are treated as separate scopes.

./n98-magerun2.phar dev:module:preference:conflicts --area=frontend

The command reports potential conflicts, including intentional replacements. It leaves the configuration untouched.

New Command: dev:module:sequence

After resolving a merge conflict in app/etc/config.php to valid PHP, you can regenerate the module order from Magento’s module.xml sequence declarations without running setup:upgrade. The command preserves the enabled or disabled state of modules already listed, enables newly discovered modules, and drops entries for modules no longer in the checkout. It writes the module list without running schema or data migrations.

./n98-magerun2.phar dev:module:sequence

New Command: dev:flush

Clear stale files from Magento’s integration test sandboxes between runs. By default, dev:flush removes each sandbox’s var directory and leaves the rest of the sandbox in place. Use --force to remove entire sandboxes. Neither mode resets the integration test database.

./n98-magerun2.phar dev:flush

Create EAV Attributes and Manage Attribute Groups

Use eav:attribute:create to create a user-defined attribute from the CLI. The new eav:attribute-group:create, eav:attribute-group:list, eav:attribute-group:view, and eav:attribute-group:delete commands let you manage groups within existing attribute sets. When you omit the context, interactive commands let you select it by menu number, name, or autocompleted label. The list and view commands also support structured output.

./n98-magerun2.phar eav:attribute:create catalog_product care_note \
  --label="Care note" --input=textarea
./n98-magerun2.phar eav:attribute-group:list catalog_product 4 --format=json

Replace 4 with an attribute set ID from your installation. The write commands are disabled in production mode, and deletion is limited to empty, non-default groups. See the EAV command reference.

New Command: customer:confirm

Help a customer whose account is still pending. By default, customer:confirm activates the account through Magento’s normal confirmation flow. Use --resend to send another confirmation email and leave the account pending. The website argument accepts a code or ID.

./n98-magerun2.phar customer:confirm [email protected] base --resend

Improvements

  • sys:check flags layout declarations that can disable full-page caching. A single block with cacheable="false" in a frontend default.xml layout can disable full-page caching across the storefront. The command now scans default layouts in enabled modules and registered frontend themes, reporting the file, line, and block name where available. ./n98-magerun2.phar sys:checkThe scan identifies declarations to investigate. Whether they affect a particular page depends on the layout Magento assembles at runtime.

Bug Fixes and Security Updates

  • Encrypted configuration exports: config:store:get --decrypt --magerun-script now generates config:store:set --encrypt commands so decrypted values are encrypted again on import. The fix also preserves the distinction between SQL NULL and the literal string NULL (#2184, #2190).
  • CSV and TSV output: Embedded quotes are now escaped correctly in headers and values (#2193).
  • PHP 8.5 compatibility: Removed redundant reflection calls that PHP 8.5 deprecates.
  • Dependency security: Updated Symfony YAML and Validator, Twig, and the development dependency Symfony Filesystem to address security advisories.

Full Changelog

Add

  • Add: customer:confirm activates pending customer accounts or resends the confirmation email with --resend (#522, #2198)
  • Add: dev:class:plugin:list lists configured plugins for a class, interface, or public method, including disabled plugins and area-specific declarations (#164, #2202)
  • Add: dev:flush removes integration test sandbox var directories, with --force to remove entire sandboxes (#226, #2200)
  • Add: dev:module:preference:conflicts reports competing DI preferences declared by enabled modules in the same scope (#84, #2201)
  • Add: dev:module:sequence regenerates module ordering in app/etc/config.php without running setup:upgrade, preserving the enabled and disabled states of existing modules (#483, #2195)
  • Add: eav:attribute:create creates user-defined attributes, and eav:attribute-group:{create,list,view,delete} manages attribute groups. Interactive prompts accept menu numbers, names, and autocompleted labels for missing context; list and view support structured output (#1065, #2193, #2204)
  • Add: sys:check reports uncacheable blocks declared in frontend default layouts for enabled modules and registered frontend themes, with file and line numbers (#493, #2203)
  • Add: /supervised-task and a Herdr-based developer and QA workflow for OpenCode contributors

Change

  • Change: config:store:get reads effective values from Magento’s merged configuration, including module XML defaults, database values, and deployment configuration. Scoped queries include inherited values, script exports use the effective listing, and the Updated At column is now blank (#712, #2196)

Fix

  • Fix: config:store:get --decrypt --magerun-script emits config:store:set --encrypt commands for decrypted values, preserving SQL NULL and literal NULL semantics on import (#2184, #2190)
  • Fix: CSV and TSV table exports escape embedded quotes correctly in headers and values (#2193)
  • Fix: remove redundant reflection accessibility calls that are deprecated on PHP 8.5

Security

  • Security: update Symfony YAML and Validator to address CVE-2026-109413, CVE-2026-123792, and CVE-2026-123125
  • Security: update Twig to 3.31.1 and the development dependency Symfony Filesystem to 7.4.25 to address security advisories
  • Security: validate pull request documentation builds with read-only permissions and without repository secrets (#2193)

Test

  • Test: add PHPUnit and BATS coverage for the new commands and configuration, reflection, and table export changes; add Mage-OS 3.6.0 on PHP 8.4 and 8.5 to the CI matrix

Docs

  • Docs: document the new commands, effective store configuration, local DDEV workflow, and supervised OpenCode development

Chore

  • Chore: default DDEV to Mage-OS 3.6.0, derive project names from worktree directories, and add default and per-installation Magerun aliases
  • Chore: add grouped just recipes for local development and Git maintenance

Build

  • Build: update mcp/sdk to 0.9.0, laravel/prompts to 0.3.26, rmccue/requests to 2.0.21, phpstan/phpstan to 2.3.1, and seld/phar-utils to 1.2.3
  • Build: align the Docusaurus and Faster toolchain on 3.10.2 and update documentation npm dependencies, including DOMPurify, follow-redirects, and launch-editor
  • Build: update the contributor, Super-Linter, and Cosign GitHub Actions

How to Update

As always, the easiest way to update is via the built-in self-update command:

./n98-magerun2.phar self-update

Try a scoped config lookup the next time two store views behave differently. If it helps you track down an unexpected value, or if you find something the new diagnostics miss, tell us in the comments or on GitHub.

Categories: Uncategorized

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.