Print the version
The version string is completely dependent on how the binary was built, so you should not depend on the version format. It may change without notice.
This could be an arbitrary string, if specified via -ldflags. This could also be the go module version, if built with go modules (often "(devel)").
crane version [flags]
-h, --help help for version
--allow-nondistributable-artifacts Allow pushing non-distributable (foreign) layers
--insecure Allow image references to be fetched without TLS
--platform platform Specifies the platform in the form os/arch[/variant][:osversion] (e.g. linux/amd64). (default all)
-v, --verbose Enable debug logs
- crane - Crane is a tool for managing container images