Repository navigation
Install ipmicli with one command: curl | sh, irm | iex (#163) - #177
Merged
bertysentry merged 1 commit intoOct 14, 2026
Merged
bertysentry merged 1 commit into
bertysentry merged 1 commit into
Conversation
Port Jawk's installers to the documentation site:
- src/site/resources/get (POSIX sh): downloads the standalone jar of the
latest release (or IPMICLI_VERSION), verifies its SHA-256 checksum in a
temporary directory before touching an existing installation, installs
it under ${XDG_DATA_HOME:-~/.local/share}/ipmicli and an ipmicli
launcher in ~/.local/bin (IPMICLI_INSTALL_DIR), and prints the PATH line
when needed.
- src/site/resources/get.ps1 (PowerShell): the same under
%LOCALAPPDATA%\ipmicli, with an ipmicli.cmd shim added to the user PATH.
- The launchers find Java 8 or later at run time (IPMICLI_JAVA_HOME,
JAVA_HOME, PATH, java_home on macOS, sdkman, /usr/lib/jvm), exit 127
with a pointer to adoptium.net without one, and export
IPMICLI_PROGRAM_NAME so the usage names ipmicli.
Unlike Jawk, the checksum is mandatory and there is no fallback for
releases without the version-less alias: no release before 2.0.00 has the
command-line client.
release.yml gets a job after the shared release workflow that uploads the
ipmi-java-standalone.jar alias and the .sha256 checksums of both jars.
installers.yml runs both installers against the latest release on pull
requests that touch them and weekly; it skips with a notice while the
latest release has no standalone jar (1.2.02).
Tested against a local copy of the release layout: WSL Ubuntu (dash) and
Windows PowerShell 5.1 (install, --version, --help, pinned reinstall,
tampered jar leaves the installation untouched, missing release, no Java).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
bertysentry
deleted the
163-one-command-installation-of-the-ipmicli-command-curl-sh-irm-iex
branch
October 14, 2026 17:57
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.
Closes #163.
What changed
src/site/resources/get(Linux/macOS) andget.ps1(Windows), ported from Jawk with theIPMICLI_*names. They download the standalone jar of the latest release (orIPMICLI_VERSION) and verify its SHA-256 in a temporary location, so a mismatch leaves an existing installation untouched. Then they install anipmiclilauncher:${XDG_DATA_HOME:-~/.local/share}/ipmicli, the launcher in~/.local/bin(IPMICLI_INSTALL_DIR); the installer prints the PATH line when that directory is not on the PATH.%LOCALAPPDATA%\ipmicli, with anipmicli.cmdshim whose directory is added to the user PATH.IPMICLI_JAVA_HOME,JAVA_HOME,javaon the PATH, then on Linux/macOS/usr/libexec/java_home, sdkman and/usr/lib/jvm. Without one they exit with code 127 and point to adoptium.net. They exportIPMICLI_PROGRAM_NAME, so the usage namesipmicliand notjava -jar ....release.yml: astandalone-assetsjob runs after the shared release workflow, which uploads the versioned jars only. It adds theipmi-java-standalone.jaralias and the.sha256checksums of both jars to the GitHub release, soreleases/latest/download/ipmi-java-standalone.jaris a stable URL that needs no API call.installers.yml: smoke tests of both installers against the real latest release (Ubuntu; Windows PowerShell 5.1 and PowerShell 7). They run on pull requests that touch the installers and weekly, and check: install,--version= the release version,--helpnamingipmicli, a pinned reinstall in place, and exit 127 + adoptium without Java. On Windows they also checkIPMICLI_JAVA_HOMEand the refusal of a fake Java 7.installation.mdandcli.mdnow lead with the one-liners (tabs, then how to inspect the script first, then the manual download). The CLI page usesipmiclithroughout and lists the launcher's exit code 127. The README CLI section,index.md,upgrading.mdand the README release instructions are updated too..gitattributeskeepsgetin LF.Differences from Jawk
sha256sum/shasumis available. Every release that has the jar publishes one.*_DATA_DIRor*_CLASSPATHsetting: no release before 2.0.00 has the command-line client.For the reviewer
probejob ends with a notice and the installer jobs don't run. They start running on their own once 2.0.00 is released; triggerinstallers.ymlby hand after that release.standalone-assets(about a minute), the "latest" installers fail with a clear message. If that job fails, re-run it.https://metricshub.org/ipmi-java/get,get.ps1) go live with the site of the next release. Both scripts are shipped unchanged intarget/site./bin/shis dash.--version/--help, pinned reinstall, a missing release, a tampered jar (aborts, existing jar unchanged), and no Java (exit 127).IPMICLI_INSTALL_DIRand the PATH note. Windows only:IPMICLI_JAVA_HOMEalone.mvn clean verify sitepasses.🤖 Generated with Claude Code