https://github.com/vaaralav/m2-aliases
https://github.com/vaaralav/m2-aliases
aliases bash magento2 pestle
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/vaaralav/m2-aliases
- Owner: vaaralav
- Created: 2017-10-19T07:09:06.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-19T07:13:39.000Z (over 8 years ago)
- Last Synced: 2024-12-25T17:12:27.188Z (over 1 year ago)
- Topics: aliases, bash, magento2, pestle
- Size: 0 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# m2-aliases
Some shell aliases to make Magento 2 development a little more comfortable.
```shell
alias m2permissions='echo "Setting M2 permissions for magento installation at \"`pwd`\"..." && sudo find var vendor pub/static pub/media app/etc -type f -exec chmod g+w {} \; && sudo find var vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} \; && sudo chown -R :www-data . && chmod u+x bin/magento'
alias m2upgrade='php bin/magento setup:upgrade'
alias m2compile='php bin/magento setup:di:compile'
alias m2reindex='php bin/magento indexer:reindex'
alias m2='php bin/magento'
```
## Examples
### Upgrading a module or getting started with some project
```shell
m2upgrade && m2compile && m2permissions
```
### Clear cache
```shell
m2 cache:clean
```