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