thedigitaloctopus / platform-plugin

A Spin plugin for interacting with the Fermyon self-hosted Platform.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fermyon Platform Plugin

A Spin plugin for interacting with the Fermyon self-hosted Platform from the Spin CLI.

Installing the latest plugin

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

Building and installing local changes

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

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

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

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

    spin platform --help

About

A Spin plugin for interacting with the Fermyon self-hosted Platform.

License:Apache License 2.0


Languages

Language:Rust 93.5%Language:Shell 6.5%