Skip to content

feat(onboard): install tedge-onboard as a go-c8y-cli extension - #26

Merged
reubenmiller merged 1 commit into
mainfrom
feat/onboard-c8y-extension
Nov 18, 2026
Merged

reubenmiller merged 1 commit into
mainfrom
feat/onboard-c8y-extension

Conversation

@reubenmiller

Copy link
Copy Markdown
Contributor

Summary

Makes tedge-onboard installable as a go-c8y-cli binary extension straight from this repository:

c8y extensions install thin-edge/tiny-edge
c8y tinyedge onboard
  • tools/onboard/extension.yaml (new) declares the extension as tinyedge, with tedge-onboard as its binary and one command, onboard. exec: [] passes only the user's arguments, so the binary needs no changes. Further host commands can be added under commands.
  • build.sh adds extension.yaml to each release archive. go-c8y-cli picks the release asset for the platform from the latest release, and needs the manifest inside the archive.
  • build.sh sets COPYFILE_DISABLE=1 for tar, so local macOS builds don't add AppleDouble (._*) files. go-c8y-cli expects one top-level folder in the archive. Archives built in CI were not affected.
  • The README describes the go-c8y-cli install.

Testing

  • Built a darwin/arm64 archive with build.sh and installed it through go-c8y-cli's binary-release install path (as thin-edge/tiny-edge, without --name). It installs as c8y-tinyedge.
  • With go-c8y-cli: c8y tinyedge --help lists onboard, and c8y tinyedge onboard --version and --help reach the binary.

Notes

  • Install and upgrade use the latest release, so every release needs the tedge-onboard assets. That holds while the repository has one release-please version.
  • The tedge-onboard archives should stay the only release assets named *_<os>_<arch>.tar.gz/.zip, as go-c8y-cli takes the first one that matches.

🤖 Generated with Claude Code

Put an extension.yaml in each tedge-onboard release archive, so
"c8y extensions install thin-edge/tiny-edge" installs it as the
"tinyedge" extension and it runs as "c8y tinyedge onboard". Further
host commands can be added under the same extension.

build.sh no longer adds macOS AppleDouble (._*) files to the tar
archives on local macOS builds, as go-c8y-cli expects one top-level
folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@reubenmiller
reubenmiller merged commit 99b615e into main Nov 18, 2026
23 checks passed
@reubenmiller
reubenmiller deleted the feat/onboard-c8y-extension branch November 18, 2026 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant