Visual Studio Code ships with a CLI called code. This utility is hidden in the following folder (assuming you installed Visual Studio Code in /Applications
like normal folk. If this following line opens Visual Studio Code for you, then bingo, you're ready.
open /Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code
You can find more (official) details about code
here