@@ -29,16 +29,35 @@ wget https://github.com/coder/code-marketplace/releases/latest/download/code-mar
2929chmod +x ./code-marketplace
3030```
3131
32- ### Running the binary
32+ ### Running the server
3333
3434The marketplace server can be ran using the ` server ` sub-command.
3535
3636``` console
37- ./code-marketplace server --extensions-dir ./extensions
37+ ./code-marketplace server [flags]
3838```
3939
4040Run ` ./code-marketplace --help ` for a full list of options.
4141
42+ ### Local storage
43+
44+ To use a local directory for extension storage use the ` --extensions-dir ` flag.
45+
46+ ``` console
47+
48+ ./code-marketplace [command] --extensions-dir ./extensions
49+ ```
50+
51+ ### Artifactory storage
52+
53+ It is possible use Artifactory as a file store instead of local storage. For
54+ this to work the ` ARTIFACTORY_TOKEN ` environment variable must be set.
55+
56+ ``` console
57+ export ARTIFACTORY_TOKEN="my-token"
58+ ./code-marketplace [command] --artifactory http://artifactory.server/artifactory --repo extensions
59+ ```
60+
4261### Exposing the marketplace
4362
4463The marketplace must be put behind TLS otherwise code-server will reject
@@ -71,8 +90,8 @@ Extensions can be added to the marketplace by file or URL. The extensions
7190directory does not need to be created beforehand.
7291
7392``` console
74- ./code-marketplace add extension.vsix --extensions-dir ./extensions
75- ./code-marketplace add https://domain.tld/extension.vsix --extensions-dir ./extensions
93+ ./code-marketplace add extension.vsix [flags]
94+ ./code-marketplace add https://domain.tld/extension.vsix [flags]
7695```
7796
7897If the extension has dependencies or is in an extension pack those details will
@@ -88,13 +107,14 @@ If an extension is open source you can get it from one of three locations:
88107For example to add the Python extension from Open VSX:
89108
90109``` console
91- ./code-marketplace add https://open-vsx.org/api/ms-python/python/2022.14.0/file/ms-python.python-2022.14.0.vsix --extensions-dir ./extensions
110+ ./code-marketplace add https://open-vsx.org/api/ms-python/python/2022.14.0/file/ms-python.python-2022.14.0.vsix [flags]
92111```
93112
94113Or the Vim extension from GitHub:
95114
96115``` console
97- ./code-marketplace add https://github.com/VSCodeVim/Vim/releases/download/v1.24.1/vim-1.24.1.vsix --extensions-dir ./extensions
116+ ./code-marketplace add
117+ https://github.com/VSCodeVim/Vim/releases/download/v1.24.1/vim-1.24.1.vsix [flags]
98118```
99119
100120## Removing extensions
@@ -103,8 +123,8 @@ Extensions can be removed from the marketplace by ID and version (or use `--all`
103123to remove all versions).
104124
105125``` console
106- ./code-marketplace remove ms-python.python-2022.14.0 --extensions-dir ./extensions
107- ./code-marketplace remove ms-python.python --all --extensions-dir ./extensions
126+ ./code-marketplace remove ms-python.python-2022.14.0 [flags]
127+ ./code-marketplace remove ms-python.python --all [flags]
108128```
109129
110130## Usage in code-server
@@ -121,8 +141,8 @@ marketplace is running behind an https URL.
121141
122142``` console
123143make test
124- mkdir -p extensions
125- go run ./cmd/marketplace/main.go server --extensions-dir ./extensions
144+ mkdir extensions
145+ go run ./cmd/marketplace/main.go server [flags]
126146```
127147
128148When testing with code-server you may run into issues with content security
@@ -148,4 +168,6 @@ update the changelog as part of your PR.
148168
149169## Planned work
150170
151- - jFrog integration for file storage.
171+ - Bulk add.
172+ - Bulk add from one Artifactory repository to another (or to itself).
173+ - Progress indicators when adding/removing extensions.
0 commit comments