docs(windows): avoid piping installer directly into iex
This commit is contained in:
@@ -43,7 +43,7 @@ curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scri
|
|||||||
Run this in PowerShell:
|
Run this in PowerShell:
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1 | iex
|
iex (irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1)
|
||||||
```
|
```
|
||||||
|
|
||||||
The installer handles everything: uv, Python 3.11, Node.js, ripgrep, ffmpeg, **and a portable Git Bash** (MinGit, unpacked to `%LOCALAPPDATA%\hermes\git` — no admin required, completely isolated from any system Git install). Hermes uses this bundled Git Bash to run shell commands.
|
The installer handles everything: uv, Python 3.11, Node.js, ripgrep, ffmpeg, **and a portable Git Bash** (MinGit, unpacked to `%LOCALAPPDATA%\hermes\git` — no admin required, completely isolated from any system Git install). Hermes uses this bundled Git Bash to run shell commands.
|
||||||
|
|||||||
@@ -664,7 +664,7 @@ def run_uninstall(args):
|
|||||||
print()
|
print()
|
||||||
print("To reinstall later with your existing settings:")
|
print("To reinstall later with your existing settings:")
|
||||||
if _is_windows():
|
if _is_windows():
|
||||||
print(color(" irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1 | iex", Colors.DIM))
|
print(color(" iex (irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1)", Colors.DIM))
|
||||||
else:
|
else:
|
||||||
print(color(" curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash", Colors.DIM))
|
print(color(" curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash", Colors.DIM))
|
||||||
print()
|
print()
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ REM Usage:
|
|||||||
REM curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.cmd -o install.cmd && install.cmd && del install.cmd
|
REM curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.cmd -o install.cmd && install.cmd && del install.cmd
|
||||||
REM
|
REM
|
||||||
REM Or if you're already in PowerShell, use the direct command instead:
|
REM Or if you're already in PowerShell, use the direct command instead:
|
||||||
REM irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1 | iex
|
REM iex (irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1)
|
||||||
REM ============================================================================
|
REM ============================================================================
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
@@ -16,12 +16,12 @@ echo Hermes Agent Installer
|
|||||||
echo Launching PowerShell installer...
|
echo Launching PowerShell installer...
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
powershell -ExecutionPolicy ByPass -NoProfile -Command "irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1 | iex"
|
powershell -ExecutionPolicy ByPass -NoProfile -Command "iex (irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1)"
|
||||||
|
|
||||||
if %ERRORLEVEL% NEQ 0 (
|
if %ERRORLEVEL% NEQ 0 (
|
||||||
echo.
|
echo.
|
||||||
echo Installation failed. Please try running PowerShell directly:
|
echo Installation failed. Please try running PowerShell directly:
|
||||||
echo powershell -ExecutionPolicy ByPass -c "irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1 | iex"
|
echo powershell -ExecutionPolicy ByPass -c "iex (irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1)"
|
||||||
echo.
|
echo.
|
||||||
pause
|
pause
|
||||||
exit /b 1
|
exit /b 1
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
# Uses uv for fast Python provisioning and package management.
|
# Uses uv for fast Python provisioning and package management.
|
||||||
#
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
# irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1 | iex
|
# iex (irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1)
|
||||||
#
|
#
|
||||||
# Or download and run with options:
|
# Or download and run with options:
|
||||||
# .\install.ps1 -NoVenv -SkipSetup
|
# .\install.ps1 -NoVenv -SkipSetup
|
||||||
|
|||||||
@@ -337,7 +337,7 @@ detect_os() {
|
|||||||
OS="windows"
|
OS="windows"
|
||||||
DISTRO="windows"
|
DISTRO="windows"
|
||||||
log_error "Windows detected. Please use the PowerShell installer:"
|
log_error "Windows detected. Please use the PowerShell installer:"
|
||||||
log_info " irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1 | iex"
|
log_info " iex (irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1)"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ Native Windows support is **early beta**. It installs and works for the common p
|
|||||||
Open PowerShell and run:
|
Open PowerShell and run:
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1 | iex
|
iex (irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1)
|
||||||
```
|
```
|
||||||
|
|
||||||
The installer handles **everything**: `uv`, Python 3.11, Node.js 22, `ripgrep`, `ffmpeg`, **and a portable Git Bash** (PortableGit — a self-contained Git-for-Windows distribution that ships `bash.exe` and the full POSIX toolchain Hermes uses for shell commands; on 32-bit Windows the installer falls back to MinGit, which lacks bash and disables terminal-tool / agent-browser features). It clones the repo under `%LOCALAPPDATA%\hermes\hermes-agent`, creates a virtualenv, and adds `hermes` to your **User PATH**. Restart your terminal (or open a new PowerShell window) after the install so PATH picks up.
|
The installer handles **everything**: `uv`, Python 3.11, Node.js 22, `ripgrep`, `ffmpeg`, **and a portable Git Bash** (PortableGit — a self-contained Git-for-Windows distribution that ships `bash.exe` and the full POSIX toolchain Hermes uses for shell commands; on 32-bit Windows the installer falls back to MinGit, which lacks bash and disables terminal-tool / agent-browser features). It clones the repo under `%LOCALAPPDATA%\hermes\hermes-agent`, creates a virtualenv, and adds `hermes` to your **User PATH**. Restart your terminal (or open a new PowerShell window) after the install so PATH picks up.
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scri
|
|||||||
**Windows (native, PowerShell)** — *early beta, [details →](/docs/user-guide/windows-native)*
|
**Windows (native, PowerShell)** — *early beta, [details →](/docs/user-guide/windows-native)*
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1 | iex
|
iex (irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1)
|
||||||
```
|
```
|
||||||
|
|
||||||
**Android (Termux)** — same curl one-liner as Linux; the installer auto-detects Termux.
|
**Android (Termux)** — same curl one-liner as Linux; the installer auto-detects Termux.
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ If you prefer a real POSIX environment (for the dashboard's embedded terminal, `
|
|||||||
Open **PowerShell** (or Windows Terminal) and run:
|
Open **PowerShell** (or Windows Terminal) and run:
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1 | iex
|
iex (irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1)
|
||||||
```
|
```
|
||||||
|
|
||||||
No admin rights required. The installer goes to `%LOCALAPPDATA%\hermes\` and adds `hermes` to your **User PATH** — open a new terminal after it finishes.
|
No admin rights required. The installer goes to `%LOCALAPPDATA%\hermes\` and adds `hermes` to your **User PATH** — open a new terminal after it finishes.
|
||||||
|
|||||||
Reference in New Issue
Block a user