From 6f56a5cb479d9a4d755b3ed3bcd73bda9a24d3e5 Mon Sep 17 00:00:00 2001 From: rvasikarla Date: Mon, 6 Apr 2026 12:25:13 -0500 Subject: [PATCH] fix: use -OutFile instead of ambiguous -o in PowerShell install command In PowerShell 7.6.0+, the -o shorthand for Invoke-WebRequest is ambiguous because it matches multiple parameters (-OperationTimeoutSeconds, -OutFile, -OutVariable, -OutBuffer), causing the install command to fail. Replace -o with the full -OutFile parameter in all installation documentation files. Fixes #3199 --- docs/pages/_partials/install-cli.mdx | 2 +- .../versioned_docs/version-4.x/getting-started/installation.mdx | 2 +- docs/versioned_docs/version-5.x/fragments/install-cli.mdx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/pages/_partials/install-cli.mdx b/docs/pages/_partials/install-cli.mdx index 35ea691f01..15472521bb 100644 --- a/docs/pages/_partials/install-cli.mdx +++ b/docs/pages/_partials/install-cli.mdx @@ -63,7 +63,7 @@ curl -L -o devspace "https://github.com/loft-sh/devspace/releases/latest/downloa ```powershell md -Force "$Env:APPDATA\devspace"; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]'Tls,Tls11,Tls12'; -Invoke-WebRequest -URI "https://github.com/loft-sh/devspace/releases/latest/download/devspace-windows-amd64.exe" -o $Env:APPDATA\devspace\devspace.exe; +Invoke-WebRequest -URI "https://github.com/loft-sh/devspace/releases/latest/download/devspace-windows-amd64.exe" -OutFile $Env:APPDATA\devspace\devspace.exe; $env:Path += ";" + $Env:APPDATA + "\devspace"; [Environment]::SetEnvironmentVariable("Path", $env:Path, [System.EnvironmentVariableTarget]::User); ``` diff --git a/docs/versioned_docs/version-4.x/getting-started/installation.mdx b/docs/versioned_docs/version-4.x/getting-started/installation.mdx index 1f103eb926..9f8574f086 100644 --- a/docs/versioned_docs/version-4.x/getting-started/installation.mdx +++ b/docs/versioned_docs/version-4.x/getting-started/installation.mdx @@ -48,7 +48,7 @@ curl -L -o devspace "https://github.com/loft-sh/devspace/releases/latest/downloa ```powershell {4} md -Force "$Env:APPDATA\loft"; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]'Tls,Tls11,Tls12'; -Invoke-WebRequest -URI "https://github.com/loft-sh/devspace/releases/latest/download/devspace-windows-amd64.exe" -o $Env:APPDATA\loft\devspace.exe; +Invoke-WebRequest -URI "https://github.com/loft-sh/devspace/releases/latest/download/devspace-windows-amd64.exe" -OutFile $Env:APPDATA\loft\devspace.exe; $env:Path += ";" + $Env:APPDATA + "\loft"; [Environment]::SetEnvironmentVariable("Path", $env:Path, [System.EnvironmentVariableTarget]::User); ``` diff --git a/docs/versioned_docs/version-5.x/fragments/install-cli.mdx b/docs/versioned_docs/version-5.x/fragments/install-cli.mdx index 4168b75a7b..264286d5b4 100644 --- a/docs/versioned_docs/version-5.x/fragments/install-cli.mdx +++ b/docs/versioned_docs/version-5.x/fragments/install-cli.mdx @@ -62,7 +62,7 @@ curl -L -o devspace "https://github.com/loft-sh/devspace/releases/latest/downloa ```powershell {4} md -Force "$Env:APPDATA\devspace"; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]'Tls,Tls11,Tls12'; -Invoke-WebRequest -URI "https://github.com/loft-sh/devspace/releases/latest/download/devspace-windows-amd64.exe" -o $Env:APPDATA\devspace\devspace.exe; +Invoke-WebRequest -URI "https://github.com/loft-sh/devspace/releases/latest/download/devspace-windows-amd64.exe" -OutFile $Env:APPDATA\devspace\devspace.exe; $env:Path += ";" + $Env:APPDATA + "\devspace"; [Environment]::SetEnvironmentVariable("Path", $env:Path, [System.EnvironmentVariableTarget]::User); ```