n98-magerun2 v9.1: Enhanced Log Management and Admin User Control

We are excited to announce the release of n98-magerun2 v9.1.0! This update is packed with two new commands, significant improvements to existing features, and important bug fixes to streamline your Magento 2 development and administration workflows.
This release, codenamed Frankfurt, introduces powerful new tools for managing log files and admin users, improves URL regeneration, adds support for Mage-OS 1.3, and much more.
What’s New?
New Command: dev:log:size
Ever needed a quick overview of your log file sizes directly from the command line? The new dev:log:size
command provides a clean table of all log files and their sizes. For better readability, you can use the --human-readable
(or -H
) option. This is a fantastic addition for monitoring and debugging, addressing a long-standing feature request.
Bash
$ n98-magerun2.phar dev:log:size --human-readable
+------------------------+--------+
| File | Size |
+------------------------+--------+
| debug.log | 1.2 MiB|
| system.log | 89 KiB |
| support_report.log | 0 B |
| update.log | 0 B |
| ... | ... |
+------------------------+--------+
New Command sys:url:regenerate
: This command includes a new option for more granular control over URL rewrite regeneration.
New Commands: admin:user:activate
and admin:user:deactivate
You can now easily manage the status of admin users directly. These new commands allow you to activate or deactivate a user account, providing a quicker alternative to using the Magento Admin UI.
Bash
# Deactivate a user
$ n98-magerun2.phar admin:user:deactivate johndoe
# Activate a user
$ n98-magerun2.phar admin:user:activate johndoe
Mage-OS 1.3 Support
We continue our commitment to the broader Magento ecosystem. This release officially adds support for Mage-OS 1.3 in our configuration and test suites, ensuring seamless compatibility.
Also we added a method isMageOS
to the internal Application class support easy conditions in command classes.
Developer Experience Improvements
- Single-Process for
dev:console
: Thedev:console
command now includes a single-process option (--single-process
) to improve the developer experience, especially in certain environments. - Check Composer Dependencies: The
dev:module:detect-composer-dependencies
command gets a new--check
option to validate dependencies without prompting for additions.
Improvements
dev:keep-calm
Clears More: The handydev:keep-calm
command now also clears static assets, making it even more effective for a quick system reset during development.- Bash Autocompletion Updates: We’ve pushed several updates to improve the accuracy and usefulness of bash autocompletion.
Bug Fixes
db:dump
with--strip
: Fixed an issue where tables excluded with--strip
were still being dumped as empty structures. They are now correctly omitted entirely.- Cron Initialization: The cron runner now correctly respects a custom configured
pub
directory root. - Module Generator: The
dev:module:create
command now correctly uses the “magento” vendor for the generated framework package, improving Mage-OS compatibility.
We encourage you to update to v9.1.0 to take advantage of these new features and improvements. As always, your feedback is invaluable. If you encounter any issues or have ideas for new features, please don’t hesitate to open an issue on our GitHub repository.
Happy coding!
Full Changelog
- Add: –check option in dev:module:detect-composer-dependencies command (issue #1727)
- Add: admin:user:activate and admin:user:deactivate commands (PR #1761, issue #1760)
- Add: new dev:log:size command to show log file sizes (PR #1749, issue #76)
- Add: –format option to dev:log:size command (e.g. human-readable output) (issue #76)
- Add: Mage-OS 1.3 support in configuration and tests (PR #1776, issue #1775)
- Add: dev console single-process option for improved DX (issue #1110)
- Imp: Update 3rd party dependencies (actions, php-cs-fixer)
- Imp: sys:url:regenerate command refactoring and new options (issue #549)
- Imp: dev:keep-calm now clears static assets
- Fix: excluded tables were dumped as structure if –strip option was used (issue #1731)
- Fix: Fixes broken link to system documentation (by Pieter Hoste)
- Fix: ensure headers are rendered when no log rows are present
- Fix: improve log file filtering in dev:log:size command
- Fix: ensure consistent output when no log files are found
- Fix: cron initialization respects configured pub root (issue #545)
- Fix: bash autocompletion updates (PR #1774, #1765; issues #1773, #1764)
- Fix: use “magento” vendor for generated framework package in module generator (Mage-OS compatibility) (#1239)
- Build: update dev services (MariaDB 10.6, OpenSearch 2.19.3)
- Build: bump CI actions and dev dependencies (phpstan, php-cs-fixer, captainhook, psysh, etc.)
- Docs: add docs for admin:user:{activate,deactivate,change-status} and update sys:url:regenerate (PRs #1763, #1770)
0 Comments