laravel-zsh-plugin - artisan commands aliases of Laravel 5+ Framework for zsh

March 14, 2019 ยท View on GitHub

laravel-zsh-plugin contains short aliases for all artisan commands included to Laravel 5+ framework.

Example

Without typing full artisan command in console, like:

$ php artisan migrate --seed

there is more convenient alias:

$ amgs

Installation on oh-my-zsh

  1. Go to oh-my-zsh plugins directory:

    $ cd ~/.oh-my-zsh/plugins
    
  2. Clone the repository into a new directory laravel-artisan :

    git clone https://github.com/crazybooot/laravel-zsh-plugin.git laravel-artisan
    
  3. Enable laravel-artisan plugin by adding to your .zshrc configuration file:

    plugins=(laravel-artisan)
    
  4. Restart your shell.

Aliases

General

AliasCommand
aphp artisan
avphp artisan -V
accphp artisan clear-compiled
adphp artisan down
aephp artisan env
ahphp artisan help
aiphp artisan inspire
alphp artisan list
apphp artisan preset
asphp artisan serve
atphp artisan tinker
auphp artisan up

App

AliasCommand
aanmphp artisan app:name

Auth

AliasCommand
aacrphp artisan auth:clear-resets

Cache

AliasCommand
acclphp artisan cache:clear
acfgphp artisan cache:forget
actbphp artisan cache:table

Config

AliasCommand
acfccphp artisan config:cache
acfclphp artisan config:clear

Common

AliasCommand
adbsphp artisan db:seed
aegphp artisan event:generate
akgphp artisan key:generate

Make

AliasCommand
amkauphp artisan make:auth
amkchphp artisan make:channel
amkcmphp artisan make:command
amkctphp artisan make:controller
amkctrphp artisan make:controller -r
amkevphp artisan make:event
amkexphp artisan make:exception
amkfcphp artisan make:factory
amkjbphp artisan make:job
amklsphp artisan make:listener
amkmlphp artisan make:mail
amkmwphp artisan make:middleware
amkmgphp artisan make:migration
amkmdphp artisan make:model
amkmdmphp artisan make:model -m
amknfphp artisan make:notification
amkosphp artisan make:observer
amkplphp artisan make:policy
amkpvphp artisan make:provider
amkrqphp artisan make:request
amkresphp artisan make:resource
amkrlphp artisan make:rule
amksdphp artisan make:seeder
amktsphp artisan make:test

Migrate

AliasCommand
amgphp artisan migrate
amgfphp artisan migrate --force
amgsphp artisan migrate --seed
amgpphp artisan migrate --pretend
amgtphp artisan migrate --env=testing
amgfrphp artisan migrate:fresh
amgisphp artisan migrate:install
amgrfphp artisan migrate:refresh
amgrsphp artisan migrate:reset
amgrbphp artisan migrate:rollback
amgstphp artisan migrate:status

Notifications

AliasCommand
anftbphp artisan notifications:table

Optimize

AliasCommand
aophp artisan optimize
aocphp artisan optimize:clear

Package

AliasCommand
apdphp artisan package:discover

Queue

AliasCommand
aqfphp artisan queue:failed
aqftphp artisan queue:failed-table
aqflphp artisan queue:flush
aqfgphp artisan queue:forget
aqlsphp artisan queue:listen
aqrsphp artisan queue:restart
aqrtphp artisan queue:retry
aqtbphp artisan queue:table
aqwkphp artisan queue:work

Route

AliasCommand
arccphp artisan route:cache
arclphp artisan route:clear
arlsphp artisan route:list

Schedule

AliasCommand
asfnphp artisan schedule:finish
asrnphp artisan schedule:run

Session

AliasCommand
astbphp artisan session:table

Storage

AliasCommand
aslnphp artisan storage:link

Vendor

AliasCommand
avpbphp artisan vendor:publish

View

AliasCommand
avccphp artisan view:cache
avclphp artisan view:clear

Horizon

AliasCommand
ahzphp artisan artisan horizon
ahzasphp artisan artisan horizon:assets
ahzctphp artisan artisan horizon:continue
ahzlsphp artisan artisan horizon:list
ahzpsphp artisan artisan horizon:pause
ahzpgphp artisan artisan horizon:purge
ahzssphp artisan artisan horizon:snapshot
ahzsvphp artisan artisan horizon:supervisor
ahzsvsphp artisan artisan horizon:supervisors
ahztmphp artisan artisan horizon:terminate
ahztophp artisan artisan horizon:timeout
ahzwkphp artisan artisan horizon:work

Old framework versions commands

AliasCommand
amkcsphp artisan make:console
ahcmphp artisan handler:command
ahevphp artisan handler:event
aqssphp artisan queue:subscribe
afrphp artisan fresh

License

The MIT License (MIT). Please see License File for more information.