This is a very simple Spin trigger that executes the WASI main function.
The trigger is installed as a Spin plugin. It can be installed from a release or build.
The latest stable release of the command trigger plugin can be installed like so:
spin plugins update
spin plugin install trigger-command
The canary release of the command trigger plugin represents the most recent commits on main
and may not be stable, with some features still in progress.
spin plugins install --url https://github.com/fermyon/spin-trigger-command/releases/download/canary/trigger-command.json
Alternatively, use the spin pluginify
plugin to install from a fresh build. This will use the pluginify manifest (spin-pluginify.toml
) to package the plugin and proceed to install it:
spin plugins install pluginify
cargo build --release
spin pluginify --install