Skip to content

Commit b27f9c0

Browse files
authored
Merge pull request #92 from itowlson/plugin-install-private-url
Show how to install plugin from private URL
2 parents 7445992 + ed5b616 commit b27f9c0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

content/v3/managing-plugins.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ If the plugin you want has been published on the Web but has not been added to t
6060
$ spin plugins install --url https://github.com/spinframework/spin-befunge-sdk/releases/download/v1.4.0/befunge2wasm.json
6161
```
6262

63+
If the URL requires authorization, pass the HTTP authorization header value via `--auth-header-value`. The value of the flag must be the _full_ header value, including the authorization scheme, not just your token or password. For example:
64+
65+
<!-- @nocpy -->
66+
67+
```bash
68+
# URL requires bearer authorization
69+
$ spin plugins install --auth-header-value "Bearer 12345678" --url https://example.com/tell-no-one.json
70+
71+
# URL requires basic authorization
72+
$ spin plugins install --auth-header-value "Basic c2xhdHM6SWwwdjNmIXNo" --url https://example.com/tell-no-one.json
73+
```
74+
6375
### Installing a Plugin From a File
6476

6577
If the plugin you want is in your local file system, you can install it from its manifest file path. The manifest is the JSON document that links to the binaries for different operating systems and processors. For example:

0 commit comments

Comments
 (0)