Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
  • Loading branch information
ramanvasi committed Apr 6, 2026
commit 6f56a5cb479d9a4d755b3ed3bcd73bda9a24d3e5
2 changes: 1 addition & 1 deletion docs/pages/_partials/install-cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/versioned_docs/version-5.x/fragments/install-cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```
Expand Down