gko is one static binary with no runtime dependencies. Every build of main is
published on the package registry as an OCI artifact, tagged by OS and
architecture:
pkg.gingko.garden/cli/gko:linux-amd64
pkg.gingko.garden/cli/gko:linux-arm64
pkg.gingko.garden/cli/gko:darwin-amd64
pkg.gingko.garden/cli/gko:darwin-arm64
The artifact has one layer, and its blob is the binary itself. Set target to
the one for your machine and fetch that blob:
target=linux-amd64
digest=$(curl -fsSL \
-H 'Accept: application/vnd.oci.image.manifest.v1+json' \
"https://pkg.gingko.garden/v2/cli/gko/manifests/$target" \
| jq -r '.layers[0].digest')
curl -fsSLo gko "https://pkg.gingko.garden/v2/cli/gko/blobs/$digest"
chmod +x gko
sudo mv gko /usr/local/bin/gko
The registry needs no credential. Check the binary works, and see which version you have:
gko version
The first line is the client's own version. When you are signed in, the second line names the install's platform version and the API versions it serves.
Re-run the download with the same target. The tag follows main, so a fresh
download is the newest client. The client and the platform share an OpenAPI
description and are tested against it, so an older client keeps working with a
newer install; upgrading is still how a new command or flag arrives.
Last validated: · View as Markdown