Disclaimer: This is not a command line approach, but rather a graphical way
to install existing extensions on a new system using .vsix package
, and might help some others with the same.
This method to install extensions on a new system (with reference to an existing system) requires Yeoman VS Code extension generator and vsce (or nodejs to install these).
- On the existing machine, generate an
extension pack
(more details here)
npm install -g yo generator-code
yo code
First command installs Yeoman VS Code generator, second creates the extension pack (choose default options as below. The created package.json
contains all extensions in the pack, you can modify that list)



- On the existing machine, package the extension pack created above into a
.vsix file
npm install -g vsce
vsce package
First command installs vsce, second packages the extension into a .vsix file
(run from the root of the extension pack created above)

- On the new system, install the
.vsix file
code --install-extension extension-pack-0.0.1.vsix
- Open VS Code on the new system, access this extension, install all required extensions via GUI

code --install-extension
multiple times?