Ctrl+P
Run vsce package. It creates a .vsix file in the repository root.
vsce package
Run code --install-extension <path-to-extension>.vsix to install the extension locally.
code --install-extension <path-to-extension>.vsix
For more infos, see the docs.