cargoship sha256sum
Generates a SHA256SUM for the given file
cargoship sha256sum [ FILE | URL ] [flags]
Examples
# Checksum a local file
$ cargoship sha256sum ./build/cargoship-rancher-rke2-amd64-1.0.0.tar.zst
# Checksum a remote file, downloading it first
$ cargoship sha256sum https://example.com/artifact.tar.gz
# Checksum one file inside an archive, for use with a component's files.extractPath
$ cargoship sha256sum ./artifact.tar.gz --extract-path ./bin/tool
# Same thing, using the shorter alias
$ cargoship sum ./build/cargoship-rancher-rke2-amd64-1.0.0.tar.zst
Options
-e, --extract-path string The path inside of an archive to use to calculate the sha256sum (i.e. for use with "files.extractPath")
-h, --help help for sha256sum
--tmpdir string Specify the temporary directory to use for intermediate files (default "/tmp")
Options inherited from parent commands
--log-file Always write a full-verbosity debug log to a file, regardless of --log-level.
-L, --log-format string Select a logging format. Defaults to 'console'. Valid options are: 'console', 'json', 'dev'. (default "console")
-l, --log-level string Log level when running cargoship. Valid options are: warn, info, debug, trace (default "info")
--no-color Disable terminal color codes in logging and stdout prints.
SEE ALSO
- cargoship - CLI for cargoship installs