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
You can find examples in this repo and in https://github.com/fermyon/spin-trigger-sqs.
33
44
34
-
### Updating
35
-
36
-
When you have a new build of your plugin ready:
45
+
## Packaging and installing your plugin
37
46
38
-
* Run `spin pluginify`
39
-
* It should create or update a `<PLUGIN-NAME>.tar.gz` file and a `<PLUGIN-NAME>.json` manifest
40
-
* Run `spin plugins install --file <PLUGIN-NAME>.json --yes`
47
+
When you have a new build of your plugin ready, run:
41
48
42
-
If you want to save keystrokes, you can use `spin pluginify --install` to do both steps at once.
49
+
```bash
50
+
spin pluginify --install
51
+
```
43
52
44
53
Your plugin should then be installed in Spin and ready to test.
45
54
46
-
## Troubleshooting
55
+
Alternatively, you can just package by running `spin pluginify`. This creates (or updates) a `<PLUGIN-NAME>.tar.gz` file and a `<PLUGIN-NAME>.json` manifest. You can then run `spin plugins install --file <PLUGIN-NAME>.json --yes` to install that package into Spin.
56
+
57
+
## "I want it NOW" mode
58
+
59
+
To install an executable as a Spin plugin without creating a `spin-pluginify.toml`, run `spin pluginify --immediate <PATH/TO/EXECUTABLE> --install`.
60
+
61
+
(This is great for one-off experiments, but if you're iterating on the plugin then create a `spin-pluginify.toml` and save yourself typing the path all the time eh.)
62
+
63
+
# Troubleshooting
47
64
48
-
Error handling is non-existent right now so, uh, sorry.
65
+
Error handling is a bit patchy at the moment. Please raise an issue if you find an error which is cryptic, or panicky, or shouldn't be an error at all!
0 commit comments