Add CLI-only install script (scripts/install-cli.sh)#281
Open
jarugupj wants to merge 4 commits into
Open
Conversation
Add scripts/install-cli.sh, which installs only the hypeman CLI from kernel/hypeman-cli releases without attempting the server install. It detects OS/arch, resolves the latest CLI release, downloads the matching archive, and installs the hypeman binary to a PATH directory (/usr/local/bin, falling back to ~/.local/bin). This lets get.hypeman.sh/cli install the CLI on machines where the server install is unavailable. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Run the CLI-only installer into a temp directory on the macOS runner and assert the installed binary reports its version, exercising the macOS download/extract path end to end. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
Created a monitoring plan for this PR. What this PR does: Adds a standalone CLI install script ( Intended effect:
Risks:
Status updates will be posted automatically on this PR as monitoring progresses. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4ec6656. Configure here.
Use sudo only when neither the target dir nor its parent is writable, so a creatable path under a writable parent is made and owned by the user instead of root. Warn before falling back to ~/.local/bin rather than relocating an unwritable INSTALL_DIR silently. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
rgarcia
approved these changes
Jun 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Adds
scripts/install-cli.sh, a CLI-only installer that installs only thehypemanCLI fromkernel/hypeman-clireleases — without attempting the server install.This is the script side of fixing the
get.hypeman.sh/clipath: today/cliredirects to the fullinstall.sh, which installs the server first and aborts on macOS (nodarwin_arm64server release artifact exists), so the CLI never installs. A standalone CLI installer lets/cliinstall the CLI on any supported machine regardless of server availability.The redirect flip (pointing
get.hypeman.sh/cliat this script) is a separate change in thekernel/hypeman-wwwrepo and should land only after this is merged tomain.What it does
darwin→macos,.zip; otherwise<os>,.tar.gz).kernel/hypeman-clirelease that has a matching artifact (reusing the samefind_release_with_artifacthelper used byinstall.sh).hypemanbinary to/usr/local/bin— usingsudoonly when neither the target dir nor its parent is writable, otherwise falling back to~/.local/bin(and warning before it does). Warns if the install dir isn't onPATH.e2e-installCI job runs the script end-to-end (into a tempINSTALL_DIR) and assertshypeman --version.It deliberately does not generate
~/.config/hypeman/cli.yaml(that needs the server's token tooling) and does not carry the server installer's "Intel Macs not supported" guard (the CLI runs fine on Intel and amacos_amd64build is published).Test plan
e2e-installCI step — downloads the macOS.zip, installs, andhypeman --versionpasses.kernel/hypeman-clirelease: installshypeman,--version/--helpwork, and the not-on-PATH warning fires when installing outsidePATH.hypeman_<ver>_macos_arm64.zip) exists on the current release.Note
Low Risk
Installer and docs/CI only; no server runtime or auth changes, though the script downloads and executes a release binary from GitHub.
Overview
Adds
scripts/install-cli.sh, acurl | bashinstaller that downloads only thehypemanbinary fromkernel/hypeman-cliGitHub releases (OS/arch detection,macos+.zipon Darwin, latest release with a matching artifact via the samefind_release_with_artifactpattern as the server installer). It installs to/usr/local/binor~/.local/binwhen needed and does not touch the server, Docker, or CLI config.README remote-access docs now describe that install script for Linux and macOS (not Linux-only). CI runs the script in the macOS e2e-install job with a temp
INSTALL_DIRand checkshypeman --version.Reviewed by Cursor Bugbot for commit 78f3e88. Bugbot is set up for automated code reviews on this repo. Configure here.