wizjo / postinstall-m2
Postinstall dev scripts for Magento 2
Installs: 3 057
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: ^7.2
- symfony/console: ~3.4|~4.0
README
Tested with Magento 2.3
Installation
Composer?
composer require wizjo/postinstall-m2
Usage
The CLI script is available in vendor/bin/wizjo-postinstall-m2
.
THE SCRIPT DOES NOT RUN ANY SCRIPTS ON ITS OWN! It will simply print commands to execute with all required
options and arguments in correct order. To run the command you have to run it manually either by copy-pasta or by piping
it like wizjo-postinstall-m2 refresh | bash
Commands
setup:init
- allows to setup fresh Magento installation with sane-defaults without the need to remember all options required for Magento'ssetup:init
. The script also allows you to set deployment mode, default locales and currenciessetup:redis
- allows to setup redis as cache backend for all 3 cache types Magento has to offer: default, page and sessionrefresh
- command you should use during development only. It will (step by step):- remove Magento's generated classes
- dump composer's autoload
- run
setup:upgrade
from Magento - dump composer's autoload again
- recompile Magento's generated classes (
setup:di:compile
) - flush the cache
For more details about each command options and arguments, run the command with --help
option.