Add CLI-only install script (scripts/install-cli.sh)#281
Draft
jarugupj wants to merge 2 commits into
Draft
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>
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(falling back to~/.local/binwhen not writable), and warns if the target dir isn't onPATH.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
kernel/hypeman-clirelease: installshypemanandhypeman --version/--helpwork; the not-on-PATH warning fires when installing outside PATH.hypeman_<ver>_macos_arm64.zip) exists on the current release.