Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 days 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 (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-09-25T06:11:11.000Z (about 3 years ago)
- Last Synced: 2023-03-13T18:02:54.752Z (over 1 year 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: 60.5 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- 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` |
| Environment | `warden env ` | `wenv ` |
| Environment | `warden env up` | `wup` |
| Environment | `warden env stop` | `wst` |