[VS Code] Install an extension from the command line

Created on November 30, 2026

Use the VS Code CLI's --install-extension option and supply the extension's identifier in publisher.name form.

code --install-extension EXTENSION_ID

Replace EXTENSION_ID with the identifier shown for the extension in VS Code or the Marketplace.

Reference

VS Code