-
-
Notifications
You must be signed in to change notification settings - Fork 400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] v3 release cleanup #1326
base: develop
Are you sure you want to change the base?
[WIP] v3 release cleanup #1326
Conversation
3aa5a49
to
e8da83f
Compare
…-code # Conflicts: # src/N98/Magento/Command/Customer/ListCommand.php
From #1424 (comment)
Working on it! Maybe someone gimme some boost 🤣 |
@sreichel oh wow, that is be a huge cleanup here. |
@cmuench phpstan level 9 is tough. Also try to add some better interaction (and validation) for missinng/wrong arguments. Takes me some days. |
That's hard. Magento 2 is tested with level 3. |
@cmuench can you please set it to draft status? I think its better to update the commands in small chunks, to make reviews easier. Leave this as personal checklist. |
Final tests:
simplified code for list commands (added a new interface)(Updated list commands #1458 may added later)simplified code for config toggle commandsprepared for symfony 6.1 (php >8.1)initMagento
for DB-list commands?use symfony/filesystemadd shortcuts to options@TODO(sr)
... two supressed PHPstan errors ...Available commands:
completion
Dump the shell completion scripthelp
Display help for a commandinstall
Install magentolist
List commandsopen-browser
Open current project in browser (experimental)script
Runs multiple n98-magerun commands- Removed with symfony3?shell
Runs n98-magerun as shelluninstall
Uninstall magento (drops database and empties current folder or folder set via installationFolder)admin ✔️
admin:notifications
Toggles admin notificationsadmin:user:change-password
Changes the password of a adminhtml user.admin:user:change-status
Set active status of an adminhtml user. If no option is set the status will be toggled.admin:user:create
Create admin user.admin:user:delete
Delete the account of a adminhtml user.admin:user:list
List admin users.cache ✔️
cache:clean
Clean magento cachecache:dir:flush
Flush (empty) Magento cache directorycache:disable
Disables magento cachescache:enable
Enables magento cachescache:flush
Flush magento cache storagecache:list
Lists all magento cachescache:report
View inside the cachecache:view
Prints a cache entrycategory
category:create:dummy
Create a dummy categorycms ✔️
cms:block:list
List all cms blockscms:block:toggle
Toggle a cms blockcomposer - removed
composer:diagnose
Diagnoses the system to identify common errors.composer:init
Creates a basic composer.json file in current directory.composer:install
[i] Installs the project dependencies from the composer.lock file if present, or falls back on the composer.json.composer:require
Adds required packages to your composer.json and installs them.composer:search
Searches for packages.composer:update
[u|upgrade] Upgrades your dependencies to the latest version according to composer.json, and updates the composer.lock file.composer:validate
Validates a composer.json and composer.lock.config ✔️
config:delete
Deletes a store config itemconfig:dump
Dump merged xml configconfig:get
Get a core config itemconfig:search
Search system configuration descriptions.config:set
Set a core config itemcustomer ✔️
customer:change-password
Changes the password of a customer.customer:create
Creates a new customer/user for shop frontend.customer:create:dummy
Generate dummy customers. You can specify a count and a locale.customer:delete
Delete Customer/scustomer:info
Loads basic customer info by email address.customer:list
Lists customersdb
db:console
[mysql-client] Opens mysql client by database config from local.xmldb:create
Create currently configured databasedb:drop
Drop current databasedb:dump
Dumps database with mysqldump cli clientdb:import
Imports database with mysql cli client according to database defined in local.xmldb:info
Dumps database informationsdb:maintain:check-tables
Check database tablesdb:query
Executes an SQL query on the database defined in local.xmldb:status
Shows important server status information or custom selected status valuesdb:variables
Shows important variables or custom selecteddesign ✔️
design:demo-notice
Toggles demo store notice for a store viewdev
dev:class:lookup
Resolves a grouped class namedev:code:model:method
Code annotations: Reads the columns from a table and writes the getter and setter methods into the class file for @methods.dev:console
Opens PHP interactive shell with initialized Mage::app() (Experimental)dev:email-template:usage
Display database transactional email template usagedev:ide:phpstorm:meta
Generates meta data file for PhpStorm auto completion (default version : 2019.1+)dev:log
Toggle development log (system.log, exception.log)dev:log:db
Turn on/off database query loggingdev:log:size
Get size of log filedev:merge-css
Toggles CSS Mergingdev:merge-js
Toggles JS Mergingdev:module:create
Create and register a new magento module.dev:module:dependencies:from
Show list of modules which depend on %s moduledev:module:dependencies:on
Show list of modules which given module depends ondev:module:disable
Disable a module or all modules in codePooldev:module:enable
Enable a module or all modules in codePooldev:module:list
List all installed modulesdev:module:observer:list
Lists all registered observersdev:module:rewrite:conflicts
Lists all magento rewrite conflictsdev:module:rewrite:list
Lists all magento rewritesdev:module:update
Update a Magento module.dev:profiler
Toggles profiler for debuggingdev:report:count
Get count of report filesdev:setup:script:attribute
Creates attribute script for a given attribute codedev:symlinks
Toggle allow symlinks settingdev:template-hints
Toggles template hintsdev:template-hints-blocks
Toggles template hints block namesdev:theme:duplicates
Find duplicate files (templates, layout, locale, etc.) between two themes.dev:theme:info
Displays settings of current design on particular store viewdev:theme:list
Lists all available themesdev:translate:admin
Toggle inline translation tool for admindev:translate:export
Export inline translationsdev:translate:set
Adds a translation to core_translate table. Globally for localedev:translate:shop
Toggle inline translation tool for shopeav ✔️
eav:attribute:create-dummy-values
Create a dummy values for dropdown attributeseav:attribute:list
Lists all EAV attributeseav:attribute:remove
Removes attribute for a given attribute codeeav:attribute:view
View informations about an EAV attributeindex ✔️
index:list
Lists all magento indexesindex:reindex
Reindex a magento index by codeindex:reindex:all
Reindex all magento indexeslocal-config ✔️
local-config:generate
Generates local.xml configmedia ✔️
media:cache:image:clear
Clears image cachemedia:cache:jscss:clear
Clears JS/CSS cachemedia:dump
Creates an archive with content of media folder.script ✔️
script:repo:list
Lists all scripts in repositoryscript:repo:run
Run script from repositorysys
sys:check
Checks Magento Systemsys:cron:history
Last executed cronjobs with status.sys:cron:list
Lists all cronjobssys:cron:run
Runs a cronjob by job codesys:info
Prints infos about the current magento system.sys:maintenance
Toggles maintenance mode.sys:modules:list
List all installed modulessys:setup:change-version
Change module setup resource versionsys:setup:compare-versions
Compare module version with core_resource table.sys:setup:incremental
List new setup scripts to run, then runs one scriptsys:setup:remove
Remove module setup resource entrysys:setup:run
Runs all new setup scripts.sys:store:config:base-url:list
Lists all base urlssys:store:list
Lists all installed store-viewssys:url:list
Get all urls.sys:website:list
Lists all websitesRemoved EE commands: ✔️
admin:user:lock
Enforce a lock on an admin user account. Specify the username and an optional lifetime parameter in seconds.admin:user:lockdown
Lock every admin user account for the optionally specified lifetime (in days). If not provided, defaults to one month.admin:user:unlock
Release lock on admin user for one or all userscms:banner:toggle
Toggle a banner (Enterprise only)cms:page:publish
Publish a CMS page revision (Enterprise only)giftcard:pool:generate
Generate giftcard pool)giftcard:create
Create a gift card with a specified amountgiftcard:info
Get gift card account information by codegiftcard:remove
Remove a gift card account by codeindex:list:mview
Lists all magento mview indexesindex:reindex:mview
Reindex a magento index by code using the materialised view functionality