A Spin plugin for interacting with Fermyon Cloud from the Spin CLI.
spin plugin install --url https://github.com/fermyon/cloud-plugin/releases/download/canary/cloud.json
-
Package the plugin.
cargo build --release cp target/release/cloud-plugin cloud tar -czvf cloud.tar.gz cloud sha256sum cloud.tar.gz rm cloud # Outputs a shasum to add to cloud.json
-
Get the manifest.
curl -LRO https://github.com/fermyon/cloud-plugin/releases/download/canary/cloud.json
-
Update the manifest to modify the
url
field to point to the path to local package (i.e."url": "file:///path/to/cloud-plugin/plugin/cloud.tar.gz"
) and update the shasum. -
Install the plugin, pointing to the path to the manifest.
spin plugin install -f ./plugin/cloud.json
-
Run the plugin.
spin cloud --help