Compare commits

...

3 Commits

Author SHA1 Message Date
Abdulrahman Masoud d07dbcb235
Merge 2119568d86 into 6e9cda3d30 2025-01-22 12:17:34 +01:00
dependabot[bot] 6e9cda3d30
chore(deps): bump semver in /.github/workflows/dependencies (#12924)
Bumps [semver](https://github.com/python-semver/python-semver) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/python-semver/python-semver/releases)
- [Changelog](https://github.com/python-semver/python-semver/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/python-semver/python-semver/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-19 23:30:40 +01:00
Abdulrahman Masoud 2119568d86 Add list of aliases for magento2 2024-12-07 08:19:46 +02:00
3 changed files with 121 additions and 1 deletions

View File

@ -3,5 +3,5 @@ charset-normalizer==3.4.1
idna==3.10
PyYAML==6.0.2
requests==2.32.3
semver==3.0.2
semver==3.0.3
urllib3==2.3.0

View File

@ -0,0 +1,73 @@
```markdown
# Magento 2
This plugin adds aliases for Magento2 commands.
```bash
plugins=(... magento2)
```
| Alias | Description |
|:-:|:-:|
| `magento`| `bin/magento` |
| `mup` | `bin/magento setup:upgrade` |
| `mdeploy` | `bin/magento setup:static-content:deploy -f` |
| `mdi` | `bin/magento setup:di:compile` |
## Database
| Alias | Description |
|:-:|:-:|
| `mreindex` | `bin/magento indexer:reindex` |
| `minf` | `bin/magento indexer:info` |
| `mid` | `bin/magento indexer:disable` |
| `mien` | `bin/magento indexer:enable` |
## Maintenance
| Alias | Description |
|:-:|:-:|
| `mmt` | `bin/magento maintenance:enable` |
| `mmf` | `bin/magento maintenance:disable` |
## Clears
| Alias | Description |
|:-:|:-:|
| `mcc` | `bin/magento cache:clean` |
| `mcf` | `bin/magento cache:flush` |
| `mtcc` | `bin/magento cache:clean` |
| `mtcf` | `bin/magento cache:flush` |
| `mtccf` | `bin/magento cache:flush && bin/magento cache:clean` |
## Admin
| Alias | Description |
|:-:|:-:|
| `mac` | `bin/magento bin\magento a:u:c` |
| `mau` | `bin/magento bin\magento a:u:u` |
| `maurl` | `bin/magento bin\magento i:a` |
## Queues
| Alias | Description |
|:-:|:-:|
| `mqs` | `bin/magento queue:consumers:start` |
## Logs
| Alias | Description |
|:-:|:-:|
| `mlog`| `tail -f var/log/*.log` |
| `mslog`| `tail -f var/log/system.log` |
| `melog`| `tail -f var/log/exeption.log` |
## Development
| Alias | Description |
|:-:|:-:|
| `mms` | `'bin\magento module:status` |
| `mme` | `'bin\magento module:enable` |
| `mmd` | `'bin\magento module:disable` |
```

View File

@ -0,0 +1,47 @@
#!zsh
alias magento='bin/magento'
# Setup
alias mup='bin/magento setup:upgrade'
alias mdeploy='bin/magento setup:static-content:deploy -f'
alias mdi='bin/magento setup:di:compile'
# Cache
alias mcc='bin/magento cache:clean'
alias mcf='bin/magento cache:flush'
alias mccf='bin/magento cache:flush && bin/magento cache:clean'
# Database
alias mreindex='bin/magento indexer:reindex'
alias minf='bin/magento indexer:info'
alias mid='bin/magento indexer:disable'
alias mien='bin/magento indexer:enable'
# Maintenance
alias mmt='bin/magento maintenance:enable'
alias mmf='bin/magento maintenance:disable'
# Admin
alias mrp='bin/magento admin:reset-password'
# Queue
alias mqs='bin/magento queue:consumers:start'
# Logs
alias mlog='tail -f var/log/*.log'
alias mslog='tail -f var/log/system.log'
alias melog='tail -f var/log/exeption.log'
# Custom
alias mperm='chmod -R 777 var pub generated vendor app/etc'
alias mmode='bin/magento deploy:mode:show'
alias mmset='bin/magento deploy:mode:set'
# Deployment
alias mms='bin\magento module:status'
alias mme='bin\magento module:enable'
alias mmd='bin\magento module:disable'
alias ml='bin\magento list'
alias mac='bin\magento a:u:c'
alias mau='bin\magento a:u:u'
alias maurl='bin/magento i:a'