How to run VLC command in mac terminal

Use the following command to set vlc as an alias:

alias vlc='/Applications/VLC.app/Contents/MacOS/VLC'

You can then use vlc input.mp4 to play a video.

The above path is for Mac OS. If you are using another system, just change the path for VLC accordingly.