crane-version
Display the Crane CLI version
TLDR
Display version
Display help
SYNOPSIS
crane version
DESCRIPTION
crane version prints the current version of the crane command-line tool, a lightweight utility for working with OCI container images and artifacts. Crane, part of Google's go-containerregistry project, enables efficient operations like copying, tagging, digesting, and inspecting images across registries without a full daemon.
This command is crucial for system administrators, DevOps engineers, and developers to verify installation status, check for updates, or debug compatibility in CI/CD pipelines. Output typically includes the crane release version (e.g., v0.20.1) and the build image reference (e.g., gcr.io/go-containerregistry/crane:v0.20.1), providing traceability to the source artifact.
Unlike heavier tools like Docker, crane is a static binary, making it portable and daemonless. It's widely used in Kubernetes ecosystems, sigstore for signing, and multi-registry workflows. Run it directly in terminals or scripts to automate version checks, ensuring reproducible builds and security compliance.
CAVEATS
Command requires crane binary in PATH; no output on unsupported platforms.
EXAMPLE OUTPUT
crane version
crane version v0.20.1
gcr.io/go-containerregistry/crane:v0.20.1
INSTALLATION
Download static binary from https://github.com/google/go-containerregistry/releases
Or brew install crane (macOS), apt install crane (some repos).
HISTORY
Developed by Google in go-containerregistry project (2019); stable releases since v0.5.0 (2021), now at v0.20+ with OCI 1.1 support.


