mikkelhegn / cloud-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:Apache License 2.0


Languages

Language:Rust 96.0%Language:Shell 4.0%