This example.sh script acts as an example Spin plugin for testing Spin plugin functionality.
It is referenced in the example.json manifest.
Note: This plugin only lives within the Spin plugins repository for testing purposes. Most plugins should be developed and built in their own repository with only the manifest living in Spin Plugins.
To recreate:
- Package and zip it by running
tar czvf example.tar.gz example example.license. - Get checksum:
shasum -a 256 example.tar.gz. - Modify plugin manifest to use the correct checksum.
The plugin can be installed from either a remote or local manifest.
Install the plugin from a remote manifest using --url.
spin plugin install --url https://raw.githubusercontent.com/fermyon/spin-plugins/main/example/example.jsonOr, install the plugin from a local manifest using --file.
curl -LO https://raw.githubusercontent.com/fermyon/spin-plugins/main/example/example.json
spin plugin install --file example.jsonOnce installed, the plugin can be executed as a Spin CLI subcommand.
spin example
# Output: This is an example Spin plugin!