A Go CLI tool to manage thin-edge.io flows, including pulling and pushing flow images as OCI artifacts using the oras library, and managing flow instances.
tedge-oscar flows images pull— Pull a flow image from an OCI registrytedge-oscar flows images push— Push a flow image to an OCI registrytedge-oscar flows images list— List available flow imagestedge-oscar flows instances list— List deployed flow instancestedge-oscar flows instances deploy— Deploy a flow instance
-
Publish (push) a flow image to a registry
tedge-oscar flows images push ghcr.io/youruser/your-flow:1.0 \ --file flow.json --file README.md
-
Pull a flow image from a registry
tedge-oscar flows images pull ghcr.io/youruser/your-flow:1.0
You can also save it as a tarball using
tedge-oscar flows images pull ghcr.io/youruser/your-flow:1.0 --tarball
-
Deploy an instance using the pulled image
tedge-oscar flows instances deploy myinstance ghcr.io/youruser/your-flow:1.0 \ --topics te/device/main///m/+
-
List deployed instances
tedge-oscar flows instances list
-
Remove an instance
tedge-oscar flows instances remove myinstance
You can install the CLI directly from the repository using Go 1.21+:
go install github.com/thin-edge/tedge-oscar/cmd/tedge-oscar@latestThis will place the tedge-oscar binary in your $GOBIN (usually $HOME/go/bin). Make sure this directory is in your $PATH.
- Install Go 1.21 or newer
- Run
go mod tidyto install dependencies - Build:
go build - Run:
./tedge-oscar [command]
Apache 2.0