Once VSCode is configured to connect to the secure Artifactory cache, you can browse and install extensions natively in the VSCode marketplace or use the CLI to install extensions.
To install extensions using the VSCode CLI:
Run any of the following commands:
To install an extension:
code --install-extension <PUBLISHER>.<EXTENSION_NAME>
To install a specific version of an extension:
code --install-extension <PUBLISHER>.<EXTENSION_NAME>@<VERSION>
To force download the latest versions of an extension:
code --install-extension <PUBLISHER>.<EXTENSION_NAME> --force
Where:
<PUBLISHER>: The publisher of the extension<EXTENSION_NAME>: The name of the extension<VERSION>: The version number of the extension
For example:
code --install-extension ms-python.python@2024.10.1
Important
You cannot install extensions that are blocked by your organization's Curation policies. For more information, see Curation.