To use the tool you will need to define environment variables with secrets
R2_ACCOUNT_ID=
R2_ACCESS_KEY_ID=
R2_SECRET_ACCESS_KEY=
And you can pass some program arguments to adjust height and prefix you are looking for
Usage of filecoin-archive-test:
-bucket string
R2 bucket name (can also be set via R2_BUCKET_NAME env var) (default "infra-team-filecoin-archive")
-max-height-diff int
Expected maximum difference between consecutive snapshot heights to detect anomalies (default 300)
-prefix string
Object prefix to list (default "mainnet/latest")