From 8d669745b74f0c764c7d8903f9329b117ed9fcaa Mon Sep 17 00:00:00 2001 From: Eric Searcy Date: Fri, 28 Aug 2026 15:20:04 -0700 Subject: [PATCH] docs: document install.ps1 for native Windows installs Cross-reference the new gh-pages install.ps1 companion script so Windows users on native PowerShell (no sh interpreter) know how to install lfx, alongside the existing install.sh instructions for macOS/Linux/Git Bash/WSL. Assisted-by: github-copilot:claude-sonnet-5 Signed-off-by: Eric Searcy --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9d215a2..ccf3eb1 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,19 @@ This downloads the correct prebuilt binary for your OS/architecture from the [Releases](https://github.com/linuxfoundation/lfx-cli/releases) page, verifies its checksum, and installs it to `/usr/local/bin` (or `~/.local/bin` if that's not writable). Set `LFX_CLI_VERSION` to pin a specific release, or -`LFX_CLI_INSTALL_DIR` to override the install location. +`LFX_CLI_INSTALL_DIR` to override the install location. This works out of +the box on macOS and Linux, and on Windows under Git Bash or WSL. + +On native Windows (PowerShell), use `install.ps1` instead, since Windows has +no `sh` interpreter by default: + +```powershell +irm https://linuxfoundation.github.io/lfx-cli/install.ps1 | iex +``` + +This installs to `%LOCALAPPDATA%\lfx-cli\bin` by default (or +`LFX_CLI_INSTALL_DIR` if set), and honors `LFX_CLI_VERSION` the same way as +`install.sh`. Alternatively, install with Go: