VS Code Terminal and CLI/Export extension list

Create a portable list of installed extensions.

Section: CLI Advanced

Export extension list

bash
bash
code --list-extensions > vscode-extensions.txt

Learn 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
Install an extension from the CLI
Add an extension by identifier.
OpenIn sheetbashsame section
Uninstall an extension from the CLI
Remove an installed extension by identifier.
OpenIn sheetbashsame section
List installed extensions
Print extension identifiers to stdout.
OpenIn sheetbashsame section
Start with extensions disabled
Helpful for troubleshooting extension issues.
OpenIn sheetbash2 tag match
Show VS Code CLI help
Display usage and options.
OpenIn sheetbash1 tag match
Open in a new window
Launch a folder in a separate VS Code window.
OpenIn sheetbash1 tag match