This plugin adds some useful aliases for sail commands to the zsh shell.
- It will auto-discover sail executable and you can run its aliases from any Project Directory.
- It provides auto-completion for
artisan
andcomposer
commands when you use sail. - It also have
s cinit
alias for installing composer Dependencies ands ninit
for installing npm Dependencies on your project, when sail is not installed.
- you must install oh my zsh + git to use this plugin
- after installing git and Oh My Zsh run command below
git clone --depth=1 https://github.com/ariaieboy/laravel-sail ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/laravel-sail
- now edit zsh config file located in
~/.zshrc
- add
laravel-sail
to your zsh config plugins - start a new terminal session and use the aliases
- (OPTIONAL) add
ZSH_SAIL_FALLBACK_TO_LOCAL=true
into your~/.zshrc
if you want to use the local installed tools on projects that won't have sail installed.
Alias | Description |
---|---|
s cinit 80 |
run composer install --ignore-platform-reqs using php version 8.0 - default php version is 8.3 |
s ninit 16 |
run npm install using node 16 - default node version is 20 |
Alias | Description |
---|---|
s |
sail |
sup |
sail up |
sud |
sail up -d |
sdown |
sail down |
sb |
sail build |
sbn |
sail build --no-cache |
Alias | Description |
---|---|
saqw |
sail artisan queue:work |
saql |
sail artisan queue:listen |
sasw |
sail artisan schedule:work |
sasr |
sail artisan schedule:run |
Alias | Description |
---|---|
sa |
sail artisan |
sp |
sail php |
sc |
sail composer |
sn |
sail npm |
spn |
sail pnpm |
sbun |
sail bun |
sbunx |
sail bunx |
sy |
sail yarn |
Alias | Description |
---|---|
swatch |
sail npm run watch |
sdev |
sail npm run dev |
sbuild |
sail npm run build |
sprod |
sail npm run production |
Alias | Description |
---|---|
st |
sail test |
stp |
sail test --parallel |
sdusk |
sail dusk |
stan |
./vendor/bin/phpstan |
spint |
./vendor/bin/pint |
spest |
./vendor/bin/pest |
Alias | Description |
---|---|
ss |
sail shell |
sroot |
sail root-shell |
stinker |
sail tinker |
sshare |
sail share |