Skip to content

Commit 6f56a5c

Browse files
committed
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
1 parent a91772b commit 6f56a5c

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/pages/_partials/install-cli.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ curl -L -o devspace "https://github.com/loft-sh/devspace/releases/latest/downloa
6363

6464
```powershell
6565
md -Force "$Env:APPDATA\devspace"; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]'Tls,Tls11,Tls12';
66-
Invoke-WebRequest -URI "https://github.com/loft-sh/devspace/releases/latest/download/devspace-windows-amd64.exe" -o $Env:APPDATA\devspace\devspace.exe;
66+
Invoke-WebRequest -URI "https://github.com/loft-sh/devspace/releases/latest/download/devspace-windows-amd64.exe" -OutFile $Env:APPDATA\devspace\devspace.exe;
6767
$env:Path += ";" + $Env:APPDATA + "\devspace";
6868
[Environment]::SetEnvironmentVariable("Path", $env:Path, [System.EnvironmentVariableTarget]::User);
6969
```

docs/versioned_docs/version-4.x/getting-started/installation.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ curl -L -o devspace "https://github.com/loft-sh/devspace/releases/latest/downloa
4848

4949
```powershell {4}
5050
md -Force "$Env:APPDATA\loft"; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]'Tls,Tls11,Tls12';
51-
Invoke-WebRequest -URI "https://github.com/loft-sh/devspace/releases/latest/download/devspace-windows-amd64.exe" -o $Env:APPDATA\loft\devspace.exe;
51+
Invoke-WebRequest -URI "https://github.com/loft-sh/devspace/releases/latest/download/devspace-windows-amd64.exe" -OutFile $Env:APPDATA\loft\devspace.exe;
5252
$env:Path += ";" + $Env:APPDATA + "\loft";
5353
[Environment]::SetEnvironmentVariable("Path", $env:Path, [System.EnvironmentVariableTarget]::User);
5454
```

docs/versioned_docs/version-5.x/fragments/install-cli.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ curl -L -o devspace "https://github.com/loft-sh/devspace/releases/latest/downloa
6262

6363
```powershell {4}
6464
md -Force "$Env:APPDATA\devspace"; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]'Tls,Tls11,Tls12';
65-
Invoke-WebRequest -URI "https://github.com/loft-sh/devspace/releases/latest/download/devspace-windows-amd64.exe" -o $Env:APPDATA\devspace\devspace.exe;
65+
Invoke-WebRequest -URI "https://github.com/loft-sh/devspace/releases/latest/download/devspace-windows-amd64.exe" -OutFile $Env:APPDATA\devspace\devspace.exe;
6666
$env:Path += ";" + $Env:APPDATA + "\devspace";
6767
[Environment]::SetEnvironmentVariable("Path", $env:Path, [System.EnvironmentVariableTarget]::User);
6868
```

0 commit comments

Comments
 (0)