Add an extension by identifier.
Section: CLI Advanced
Install an extension from the CLI
bash
bash
code --install-extension esbenp.prettier-vscodeLearn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing CLI Advanced
Uninstall an extension from the CLI
Remove an installed extension by identifier.
Start with extensions disabled
Helpful for troubleshooting extension issues.