https://github.com/magepsycho/magento2-warden-aliases
Magento 2 Warden Aliases for Productivity
https://github.com/magepsycho/magento2-warden-aliases
container docker laravel magento magento2 magerun mailhog nginx php rabbitmq redis shopware symfony traefik warden
Last synced: about 1 month ago
JSON representation
Magento 2 Warden Aliases for Productivity
- Host: GitHub
- URL: https://github.com/magepsycho/magento2-warden-aliases
- Owner: MagePsycho
- Created: 2021-09-14T18:07:55.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-11-22T18:11:11.000Z (7 months ago)
- Last Synced: 2025-04-09T08:51:15.094Z (2 months ago)
- Topics: container, docker, laravel, magento, magento2, magerun, mailhog, nginx, php, rabbitmq, redis, shopware, symfony, traefik, warden
- Language: Shell
- Homepage: https://www.magepsycho.com/extensions/magento-2.html
- Size: 67.4 KB
- Stars: 10
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Warden Aliases
[Warden](https://warden.dev/) is a CLI utility for orchestrating Docker based developer environments.These aliases make your warden based development life easier (how?, see below).
## Installation
Copy the content of file (https://raw.githubusercontent.com/MagePsycho/magento2-warden-aliases/master/src/m2-warden-aliases.sh to your `~/.bash_profile`Or you can directly copy as
```
wget -O - https://raw.githubusercontent.com/MagePsycho/magento2-warden-aliases/master/src/m2-warden-aliases.sh >> ~/.bash_profile
```
*Note: Make sure to run this command only once, otherwise it will append the same code again and again*After adding the aliases to the `bash_profile`, you need to reload it
```
source ~/.bash_profile
```*If you are using other than `bash` shell, like `zsh`, you can use the similar approach.*
## Aliases
With aliases, you don't need to write full `warden` command.| Category | Warden Command | Alias Command |
|---------------------|-------------------------------------------------------|-------------------------------------|
| Magento 2 | `warden shell -c "bin/magento "` | `wm2 ` |
| MageRun | `warden shell -c "n98-magerun "` | `wmr ` |
| Redis | `warden redis ` | `wrd ` |
| Database | `warden db ` | `wdb ` |
| Logs | `warden env logs --tail 0 -f nginx php-fpm php-debug` | `wlg` |
| Shell (`php-fpm`) | `warden shell` | `wsh` |
| Shell (`php-debug`) | `warden debug` | `wdg` |
| Global Services | `warden svc ` | `wsvc ` |
| Global Services | `warden svc up` | `wsup` |
| Global Services | `warden svc stop` | `wsst` |
| Environment | `warden env ` | `wenv ` |
| Environment | `warden env up` | `wup` |
| Environment | `warden env stop` | `wst` |
| Environment Init | `warden env-init && warden sign-certificate .test` | `winit `|