Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

Shortcut-Commands

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 ~/.bashrc

or

nano ~/.zshrc

2- 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"

3- Save and Apply the Changes Save the file and close it. Then, reload the shell configuration:

source ~/.bashrc

or

source ~/.zshrc

4- Restart any terminal, or if you are using IDE or any code editor.

About

Create Shortcut Commands (CLI) on linux

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors