From 2e646341a81a0329df860d59e75f231e9d6490d4 Mon Sep 17 00:00:00 2001 From: Chris Wendt Date: Fri, 17 Jan 2020 16:25:17 -0700 Subject: [PATCH] Add docs for extension copy --- doc/admin/extensions/index.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/admin/extensions/index.md b/doc/admin/extensions/index.md index e215bbcbc454..8c1345574810 100644 --- a/doc/admin/extensions/index.md +++ b/doc/admin/extensions/index.md @@ -37,7 +37,9 @@ If you want to create extensions that are only visible to users on your Sourcegr To publish an extension to your instance's private extension registry: 1. Configure your [Sourcegraph CLI (`src`)](https://github.com/sourcegraph/src-cli) with the URL and an access token for your Sourcegraph instance. -1. Run `src extensions publish` in the extension directory. +1. Depending on whether or not the extension already exists on Sourcegraph.com: + - If the extension already exists on Sourcegraph.com, you can copy it to your private extension registry with `src extensions copy -extension-id=... -current-user=...` + - If this is a new extension, run `src extensions publish` in the extension directory. On Sourcegraph Core, the only way to publish extensions is to publish them to the [Sourcegraph.com extension registry](https://sourcegraph.com/extensions), where anyone on the web can view them.