Create Shortcut Commands (CLI) on linux
1- If you’re using the default shell (Bash), open the .bashrc file. If you’re using Zsh, open the .zshrc file.
nano ~/.bashrcor
nano ~/.zshrc2- Add Aliases for Common Artisan Commands Scroll to the bottom of the file, and add your desired shortcuts using the alias command. Here are some examples:
# Basic Artisan Shortcut
alias art="php artisan"
# Specific Artisan Commands
alias artmigrate="php artisan migrate"
alias arts="php artisan serve"
alias ni="npm install"
alias nrd="npm run dev"source ~/.bashrcor
source ~/.zshrc