/cloud-plugin

Primary LanguageRustApache License 2.0Apache-2.0

Fermyon Cloud Plugin

A Spin plugin for interacting with Fermyon Cloud from the Spin CLI.

Installing the latest plugin

spin plugin install --url https://github.com/fermyon/cloud-plugin/releases/download/canary/cloud.json

Building and installing local changes

  1. 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
  2. Get the manifest.

    curl -LRO https://github.com/fermyon/cloud-plugin/releases/download/canary/cloud.json
  3. 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.

  4. Install the plugin, pointing to the path to the manifest.

    spin plugin install -f ./plugin/cloud.json
  5. Run the plugin.

    spin cloud --help