Home

Awesome

Warden Aliases

Warden 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.

CategoryWarden CommandAlias Command
Magento 2warden shell -c "bin/magento <action>"wm2 <action>
MageRunwarden shell -c "n98-magerun <action>"wmr <action>
Rediswarden redis <action>wrd <action>
Databasewarden db <action>wdb <action>
Logswarden env logs --tail 0 -f nginx php-fpm php-debugwlg
Shell (php-fpm)warden shellwsh
Shell (php-debug)warden debugwdg
Global Serviceswarden svc <action>wsvc <action>
Global Serviceswarden svc upwsup
Global Serviceswarden svc stopwsst
Environmentwarden env <action>wenv <action>
Environmentwarden env upwup
Environmentwarden env stopwst
Environment Initwarden env-init <project> <environment_type> && warden sign-certificate <project>.testwinit <project> <environment_type>