This is a Spin plugin that helps with the inner loop of Spin plugin development by creating the tar file and manifest for you.
cargo build --release
./target/release/pluginify
spin plugins install --file pluginify.json --yes
For your plugin, create a spin-pluginify.toml
file with the following content:
name = "<PLUGIN-NAME>"
version = "0.1"
spin_compatibility = ">=0.7"
license = "Apache-2.0"
package = "<./PATH/TO/EXECUTABLE>"
You can find examples in this repo and in https://github.com/fermyon/spin-trigger-sqs.
When you have a new build of your plugin ready:
- Run
spin pluginify
- It should create or update a
.tar.gz
file and a<PLUGIN-NAME>.json
manifest
- It should create or update a
- Run
spin plugins install --file <PLUGIN-NAME>.json --yes
Your plugin should then be installed in Spin and ready to test.
Error handling is non-existent right now so, uh, sorry.