From 7c17232f84a1497aca6320e5f8fa4dd8b2d30592 Mon Sep 17 00:00:00 2001 From: rlegan Date: Wed, 1 Feb 2023 17:33:38 +0100 Subject: [PATCH] doc: Added doc about checksum verification --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index a90c85c92..3f9fdb9e4 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,22 @@ You can also set a specific version of the CLI to install with the `VERSION` env curl -fLSs https://raw.githubusercontent.com/CircleCI-Public/circleci-cli/main/install.sh | VERSION=0.1.5222 sudo bash ``` +#### Checksum verification + +If you would like to verify the checksum yourself, you can download the checksum file from the [GitHub releases page](https://github.com/CircleCI-Public/circleci-cli/releases) and verify the checksum of the archive using the `circleci-cli__checksums.txt` inside the assets of the release you'd like to install: + +On macOS and Linux: +```sh +shasum -a 256 circleci-cli__.tar.gz +``` + +and on Windows: +```powershell +Get-FileHash .\circleci-cli__.tar.gz -Algorithm SHA256 | Format-List +``` + +And compare it to the right checksum depending on the downloaded version in the `circleci-cli__checksums.txt` file. + ### Updating If you installed the CLI without a package manager, you can use its built-in update command to check for pending updates and download them: