- Added create:module
- Added create:theme
- Added create:dummy
- Go to your Magento root folder and run:
$ git clone git@github.com:spraxis/wh.git app/code/Hammer/WH
- Enter your Company name in the following file:
app/code/Hammer/WH/Settings/StoreInfo.php
- Enable the WH module:
$ bin/magento module:enable Hammer_WH
$ bin/magento s:up
$ bin/magento c:f
- You are good to go!
- Go to the WH folder within your project (app/code/Hammer/WH by default) and run:
$ git pull origin master
Note: remember to always develop in Developer mode
$ bin/magento wh --help
$ bin/magento wh info:store (alias i:s)
$ bin/magento wh info:theme (alias i:t)
$ bin/magento wh info:modules (alias i:m)
$ bin/magento wh cache:templates (alias c:t)
$ bin/magento wh cache:layouts (alias c:l)
- (string) Name of the theme
$ bin/magento wh cache:styles (alias c:s)
$ bin/magento wh cache:all (alias c:a)
- (string) Folders to remove (example: 1,3,5)
$ bin/magento wh cache:custom (alias c:c)
- (string) Name of the module
- (y/n) Create InstallData file?
- (string) Class to extend using di.xml (example: Magento\Wishlist\Block\Customer\Wishlist or Magento\Catalog\Model\Category\Attribute)
$ bin/magento wh create:module (alias cr:m)
- (string) Name of the theme
- (int) Theme to extend from (blank, Luma or custom)
$ bin/magento wh create:theme (alias cr:t)
- (int) Quantity of categories
- (int) Quantity of products
$ bin/magento wh create:dummy (alias cr:d)
- (string) First name
- (string) Last name
- (string) Email
- (string) Password
$ bin/magento wh customer:create (alias c:cr)
- (string) Email of existing customer (autocomplete)
- (string) New password
$ bin/magento wh customer:password (alias c:p)
- (string) Email
- (string) Username
- (string) Password
$ bin/magento wh customer:create (alias a:cr)
- (string) Email of existing admin user (autocomplete)
- (string) New password
$ bin/magento wh customer:password (alias a:p)
- (string) Name of the existing module
$ bin/magento wh module:downgrade (alias m:d)
- (string) Name of the theme
- (string) Path to the existing template (example: vendor/magento/module-checkout/view/frontend/templates/cart.phtml)
$ bin/magento wh override:template (alias o:t)
$ bin/magento wh hints:on (alias h:on)
$ bin/magento wh hints:off (alias h:off)