You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Plugins are a way to extend the functionality of Spin. Spin provides commands for installing and removing them, so you don't need to use separate installation tools. When you have installed a plugin into Spin, you can call it as if it were a Spin subcommand. For example, the JavaScript SDK uses a tool called `js2wasm` to package JavaScript code into a Wasm module, and JavaScript applications run it via the `spin js2wasm` command.
23
+
Plugins are a way to extend the functionality of Spin. Spin provides commands for installing and removing them, so you don't need to use separate installation tools. When you have installed a plugin into Spin, you can call it as if it were a Spin subcommand. For example, Fermyon Cloud can be accessed with a plugin called `cloud`, and you run it via the `spin cloud` command.
24
24
25
25
## Installing Plugins
26
26
@@ -33,7 +33,7 @@ The Spin maintainers curate a catalogue of "known" plugins. You can install plug
33
33
<!-- @selectiveCpy -->
34
34
35
35
```bash
36
-
$ spin plugins install js2wasm
36
+
$ spin plugins install cloud
37
37
```
38
38
39
39
Spin checks that the plugin is available for your version of Spin and your operating system, and prompts you to confirm the installation. To skip the prompt, pass the `--yes` flag.
@@ -47,7 +47,7 @@ To install a specific version of a plugin, pass the `--version` flag:
47
47
<!-- @nocpy -->
48
48
49
49
```bash
50
-
$ spin plugins install js2wasm --version 0.4.0
50
+
$ spin plugins install cloud --version 0.9.1
51
51
```
52
52
53
53
### Installing a Plugin From a URL
@@ -77,7 +77,7 @@ You run plugins in the same way as built-in Spin subcommands. For example:
77
77
<!-- @selectiveCpy -->
78
78
79
79
```bash
80
-
$ spin js2wasm --help
80
+
$ spin cloud --help
81
81
```
82
82
83
83
## Viewing Available Plugins
@@ -89,8 +89,8 @@ To see what plugins are available in the catalogue, run `spin plugins search`:
89
89
```bash
90
90
$ spin plugins search
91
91
befunge2wasm 1.4.0 [incompatible]
92
-
js2wasm 0.3.0 [installed]
93
-
js2wasm 0.4.0
92
+
cloud 0.8.0 [installed]
93
+
cloud 0.9.0
94
94
trigger-sqs 0.1.0
95
95
```
96
96
@@ -130,13 +130,13 @@ The `spin plugins upgrade` command has the same options as the `spin plugins ins
130
130
131
131
> The `upgrade` command uses your local cache of the catalogue. This might not include recently added plugins or versions. So always remember to run `spin plugins update` to refresh your local cache of the catalogue before performing the `spin plugins upgrade` command.
132
132
133
-
The following example shows how to upgrade one plugin at a time (i.e. the `js2wasm` plugin):
133
+
The following example shows how to upgrade one plugin at a time (i.e. the `cloud` plugin):
134
134
135
135
<!-- @selectiveCpy -->
136
136
137
137
```bash
138
138
$ spin plugins update
139
-
$ spin plugins upgrade js2wasm
139
+
$ spin plugins upgrade cloud
140
140
```
141
141
142
142
The following example shows how to upgrade all installed plugins at once:
By default, Spin will only _upgrade_ plugins. Pass the `--downgrade` flag and specify the `--version` if you want Spin to roll back to an earlier version. The following abridged example (which doesn't list the full console output for simplicity) lists the versions of plugins, downgrades the `js2wasm` to an older version (`0.6.0`) and then lists the versions again to show the results:
164
+
By default, Spin will only _upgrade_ plugins. Pass the `--downgrade` flag and specify the `--version` if you want Spin to roll back to an earlier version. The following abridged example (which doesn't list the full console output for simplicity) lists the versions of plugins, downgrades the `cloud` to an older version (`0.9.0`) and then lists the versions again to show the results:
0 commit comments