Publishing a local copy of an extension
If your Sourcegraph instance is unable to connect to Sourcegraph.com (due to a firewall), or if you want to customize an extension, you need to publish a local copy to your Sourcegraph instance. To do so, follow these steps:
- Download and install the latest src (Sourcegraph CLI).
- Configure and authenticate
srcwith the URL and an access token for your Sourcegraph instance.
- Clone the repository of the extension you want to publish: sourcegraph-codecov or sourcegraph-typescript.
npm installin the clone directory to install dependencies.
src extensions publish -extension-id $USER/$NAMEin the clone directory to publish the extension locally to your Sourcegraph instance. Replace
$USERwith your Sourcegraph username and
- Enable the extension for your Sourcegraph user account by clicking on User menu > Extensions in the top navigation bar and then toggling the slider to on.