Installing the IDE from the command line, and using an existing CLI installation underneath

Have a look here. Scroll down a bit and there’s a command line install section.

https://vscode-docs.readthedocs.io/en/stable/extensions/install-extension/

Cheers,
Norm.