Skip to content

docs: install the released CLI 0.1.0 - #200

Merged
uniqueg merged 3 commits into
mainfrom
docs/196-install-cli-0.1.0
Nov 25, 2026
Merged

uniqueg merged 3 commits into
mainfrom
docs/196-install-cli-0.1.0

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Summary

Moves the CLI guide and tutorial from the source build at commit af0e021 to the released ga4gh-cli 0.1.0:

  • docs/researchers/cli.md: the intro names release 0.1.0 (a prerelease) instead of "no releases yet", and the "can't do yet: no binaries" warning is gone. "Install" now has three ways: the release binary with a SHA256SUMS check (platform table, glibc/OpenSSL notes, macOS and Windows hints), the container image ghcr.io/ga4gh/ga4gh-cli:0.1.0, and the source build at v0.1.0. The login step says that 0.1.0 can also log in with ga4gh-cli login (device flow), which the page doesn't cover yet. "What's coming" (binaries, image, TES files, login) is replaced by "What this page doesn't cover", which links the SDK's 0.1.0 docs for tes files/log/save, login/logout, service-info and workflow. "How this page was tested" and "Where to go next" describe 0.1.0.
  • docs/researchers/tutorial-cli.md: step 2 downloads and checks the binary instead of building with Rust; prerequisites, duration and the test note follow.
  • docs/researchers/index.md: the requirements column no longer asks for Git and Rust.

Closes #196

Verification

  • Ran both install blocks as written, in Bash and Zsh, with a scratch HOME: checksum OK, ga4gh-cli --version prints ga4gh-cli 0.1.0, and the tutorial's block leaves its folder empty. With a corrupted SHA256SUMS, the chained commands stop and nothing is installed.
  • Checked every command and option on the guide against the 0.1.0 binary's --help, and ran the tes, wes and drs commands against a local mock service: paths, token sending (also to service-info), profiles (--profile before and after the command, GA4GH_CLI_PROFILE), the exit codes and the quoted error messages (Environment variable 'LS_LOGIN_TOKEN' is not set; …, Profile 'nope' not found; …, Configuration file must contain a 'WES' object, Failed to parse JSON, Invalid TES task, 401 Unauthorized, … Check that base_path is the TES API root, the --all resume checkpoint).
  • Ran all trs commands of the guide against WorkflowHub (workflow 3, version 1, including --zip).
  • The Cloud Registry (elixir-on.cloud) didn't answer during testing (TLS connection closed), so the registry commands weren't re-run with 0.1.0; the page says so. Their code differs from af0e021 only in an error message for invalid answers.
  • The image's entrypoint, user (10001), HOME and working directory come from its registry config (Docker wasn't available); the docker run command wasn't run. The macOS shasum and Windows hints weren't run.
  • DOCS_REGISTRY_OFFLINE=1 mkdocs build --strict: no warnings (offline, because the registry hook couldn't reach the registry); scripts/check_names.py and pytest (356 passed, 100% coverage) pass.
  • The container example runs with --user "$(id -u):$(id -g)", because the guide's configuration file has mode 600 and the image's default UID is 10001.
  • CI: Docs (and the Read the Docs build) fail on every PR right now, also on unrelated branches, because the registry hook can't reach https://elixir-on.cloud/ga4gh/registry/v1/services (TLS handshake timeout). The offline strict build passes; re-run CI once the registry answers.
  • last_verified stays null: the pages weren't checked against deployed services.

Light lane: docs-only.

🤖 Generated with Claude Code

https://claude.ai/code/session_011FSoqN5w1v5t1QRTKU7ad5

Summary by Sourcery

Update the researcher CLI documentation and tutorial to use and describe the released ga4gh CLI 0.1.0.

New Features:

  • Document installation of the released ga4gh CLI 0.1.0 through verified platform binaries and a container image.
  • Link the CLI guide to the 0.1.0 command documentation and describe additional commands not covered by the guide.

Enhancements:

  • Update the researcher CLI guide and tutorial to target release 0.1.0 instead of a source revision.
  • Simplify prerequisites and tutorial setup by replacing the source build with downloadable CLI installation instructions.
  • Refresh installation, login, testing, and follow-up guidance to reflect the released CLI.

Documentation:

  • Update researcher documentation to explain binary checksums, supported platforms, container usage, source installation, and release-specific limitations.
  • Remove Git and Rust as prerequisites where prebuilt CLI installation is now supported.

The CLI guide and tutorial install ga4gh-cli 0.1.0 from the release
binaries with a SHA256SUMS check; the guide also covers the container
image and the source build at v0.1.0. Drop the notes that the CLI has
no releases or binaries, replace "What's coming" with the 0.1.0
commands that the page doesn't cover, and describe how the page was
tested with 0.1.0.

Closes #196

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011FSoqN5w1v5t1QRTKU7ad5
@sourcery-ai

sourcery-ai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Reviewer's Guide

Documentation

Update the CLI guide to document release 0.1.0, its binary, container and source installation paths, and the commands and testing status the page does not cover.

  • docs/researchers/cli.md L36-123, L660-705, L710-717 (+4 small edits)

Revise the first-run tutorial to install and verify the 0.1.0 binary and update its prerequisites and verification notes accordingly.

  • docs/researchers/tutorial-cli.md L22-25, L58-90, L96-99 (+4 small edits)

Update the researcher index prerequisites to reflect binary or container installation rather than building from source.

  • docs/researchers/index.md L18-20

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

The guide's configuration file has mode 600, so the image's default
UID 10001 can't read it. Run the container with --user instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011FSoqN5w1v5t1QRTKU7ad5
@uniqueg
uniqueg marked this pull request as ready for review November 24, 2026 20:37
@sourcery-ai

sourcery-ai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Linked issues

Checked at commit b27370c

#196 docs: install the released CLI 0.1.0 · 4 of 4 met

# Requirement Status Notes
1 Update the CLI guide and tutorial to install 0.1.0 with working commands, covering the release options. ✅ Met Both pages provide checksum-verified binary installation commands; the guide also documents the container image and clarifies that the PyPI package contains the library, not the CLI.
2 Remove the statement that the CLI has no releases. ✅ Met The guide now identifies 0.1.0 as a prerelease.
3 Link the 0.1.0 release. ✅ Met The guide links to the release, and the tutorial links to it as well.
4 The strict docs build passes. ✅ Met The verification reports that DOCS_REGISTRY_OFFLINE=1 mkdocs build --strict passed without warnings.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 5 issues

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="docs/researchers/cli.md" line_range="50-51" />
<code_context>
+target=x86_64-unknown-linux-gnu
+archive="ga4gh-cli-$version-$target.tar.gz"
+base="https://github.com/ga4gh/ga4gh-sdk/releases/download/v$version"
+curl --fail --location --remote-name "$base/$archive"
+curl --fail --location --remote-name "$base/SHA256SUMS"
+sha256sum --check --ignore-missing SHA256SUMS &&
+  tar -xzf "$archive" &&
</code_context>
<issue_to_address>
**Stale files can install malware**

When a local attacker can place a matching archive and checksum in the working directory and the release downloads fail, the current directory contains an attacker-planted archive and matching `SHA256SUMS`, and the downloads fail, `curl` errors do not stop either block; the local checksum then passes and the script installs and runs the planted CLI.

Make both downloads fail the chain (or download into a fresh temporary directory and verify the downloaded files before extracting or running them).

Also at `docs/researchers/tutorial-cli.md:70-71`.
</issue_to_address>

### Comment 2
<location path="docs/researchers/cli.md" line_range="52" />
<code_context>
+base="https://github.com/ga4gh/ga4gh-sdk/releases/download/v$version"
+curl --fail --location --remote-name "$base/$archive"
+curl --fail --location --remote-name "$base/SHA256SUMS"
+sha256sum --check --ignore-missing SHA256SUMS &&
+  tar -xzf "$archive" &&
+  mkdir -p ~/.local/bin &&
</code_context>
<issue_to_address>
**Unverified CLI archive gets installed**

When the checksum manifest omits or renames the selected archive's entry, `sha256sum --check --ignore-missing` succeeds without checking the archive, and the Linux grep pipelines also pass no matching entry to the checker; the following commands then extract and install the archive without verifying it.

Require a matching checksum entry for the selected archive before checking it, and stop unless that checksum passes.

Also at `docs/researchers/cli.md:66`, `docs/researchers/tutorial-cli.md:72`.
</issue_to_address>

### Comment 3
<location path="docs/researchers/cli.md" line_range="82-83" />
<code_context>
+
+The Linux binaries need glibc 2.34 or newer (for example Ubuntu 22.04,
+Debian 12 or RHEL 9), OpenSSL 3 and CA certificates. The binaries aren't
+signed, so macOS may block them until you remove the quarantine attribute
+with `xattr -d com.apple.quarantine ga4gh-cli`. The SDK's
+[installation guide][sdk-install] also shows how to check the build
+provenance of the archive with the GitHub CLI.
</code_context>
<issue_to_address>
**Unsigned binaries bypass Gatekeeper**

When a macOS user encounters the quarantine block and follows the documented workaround, the macOS user follows the `xattr` instruction, the command removes quarantine from the unsigned CLI, allowing it to run without Gatekeeper’s quarantine checks. The checksum file comes from the same release endpoint as the archive, so a compromised release can replace both; provenance checking is only mentioned as an optional further step.

Require verification of the release build provenance before advising users to remove quarantine, or distribute signed and notarized macOS binaries.

Also at `docs/researchers/tutorial-cli.md:80-81`.
</issue_to_address>

### Comment 4
<location path="docs/researchers/cli.md" line_range="83" />
<code_context>
+The Linux binaries need glibc 2.34 or newer (for example Ubuntu 22.04,
+Debian 12 or RHEL 9), OpenSSL 3 and CA certificates. The binaries aren't
+signed, so macOS may block them until you remove the quarantine attribute
+with `xattr -d com.apple.quarantine ga4gh-cli`. The SDK's
+[installation guide][sdk-install] also shows how to check the build
+provenance of the archive with the GitHub CLI.
</code_context>
<issue_to_address>
**Quarantine workaround targets the wrong file**

When a macOS user follows the workaround after the install steps have moved the executable, `xattr -d com.apple.quarantine ga4gh-cli` looks for the executable in the current directory, but the install steps moved it to `~/.local/bin/ga4gh-cli`; the command fails to remove quarantine and macOS continues to block the installed CLI.

Point the `xattr` command at the installed executable in `~/.local/bin`.
</issue_to_address>

### Comment 5
<location path="docs/researchers/cli.md" line_range="50-51" />
<code_context>
+target=x86_64-unknown-linux-gnu
+archive="ga4gh-cli-$version-$target.tar.gz"
+base="https://github.com/ga4gh/ga4gh-sdk/releases/download/v$version"
+curl --fail --location --remote-name "$base/$archive"
+curl --fail --location --remote-name "$base/SHA256SUMS"
+sha256sum --check --ignore-missing SHA256SUMS &&
+  tar -xzf "$archive" &&
</code_context>
<issue_to_address>
**Existing files are overwritten and deleted**

When the install block is run from a directory containing `SHA256SUMS`, the release archive, or the named extraction directory, `curl --remote-name` truncates same-named files in the caller’s current directory. In the tutorial, the final `rm -r` also deletes `SHA256SUMS` and the extracted directory, so following the steps from a directory containing those files destroys unrelated data.

Download and extract in a newly created temporary directory, and clean up only that directory after a successful install.

Also at `docs/researchers/tutorial-cli.md:70-71`, `docs/researchers/tutorial-cli.md:77`.
</issue_to_address>

Sourcery assessment

Approval pending. 5 findings to address first.

Blocking findings: docs/researchers/cli.md:51, docs/researchers/cli.md:52, docs/researchers/cli.md:83, docs/researchers/cli.md:83, docs/researchers/cli.md:51


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread docs/researchers/cli.md Resolved
Comment thread docs/researchers/cli.md Resolved
Comment thread docs/researchers/cli.md Resolved
Comment thread docs/researchers/cli.md Resolved
Comment thread docs/researchers/cli.md Resolved
Download into a new temporary folder, chain every step, require the
archive's line in SHA256SUMS, and delete only the temporary folder.
Point xattr at the installed binary, and check the build provenance
before removing the macOS quarantine.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011FSoqN5w1v5t1QRTKU7ad5

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sourcery assessment

Approved.

@uniqueg
uniqueg merged commit f3c779b into main Nov 25, 2026
12 of 17 checks passed
@uniqueg
uniqueg deleted the docs/196-install-cli-0.1.0 branch November 25, 2026 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: install the released CLI 0.1.0

1 participant