Skip to content

Windows PowerShell install command fails with ambiguous -o parameter #3199

Closed

Description

@j-pietrus

Bug

Using PowerShell 7.6.0.

The Windows PowerShell installation command in the docs uses -o as a shorthand for -OutFile:
Link to referenced docs

Invoke-WebRequest -URI "https://github.com/loft-sh/devspace/releases/latest/download/devspace-windows-amd64.exe" -o $Env:APPDATA\devspace\devspace.exe

This fails with:

Invoke-WebRequest: Parameter cannot be processed because the parameter name 'o' is ambiguous.
Possible matches include: -OperationTimeoutSeconds -OutFile -OutVariable -OutBuffer.

Fix

Replace -o with the full -OutFile parameter:

Invoke-WebRequest -URI "https://github.com/loft-sh/devspace/releases/latest/download/devspace-windows-amd64.exe" -OutFile $Env:APPDATA\devspace\devspace.exe

Activity

  1. changed the title [-]Fix PowerShell install command: ambiguous -o parameter[/-] [+]Windows PowerShell PowerShell install command fails with ambiguous -o parameter[/+] on Mar 30, 2026
  2. changed the title [-]Windows PowerShell PowerShell install command fails with ambiguous -o parameter[/-] [+]Windows PowerShell install command fails with ambiguous -o parameter[/+] on Mar 30, 2026
  3. added a commit that references this issue on Apr 6, 2026
    6f56a5c
  4. deniseschannon commented on May 1, 2026

    @deniseschannon

    PRs are welcome since you've identified the problem as well as how to fix it. Thank you in advance!

  5. deniseschannon commented on May 1, 2026

    @deniseschannon

    I didn't see that @raman1236 had already submitted a PR. I've commented on that. Thanks @raman1236!

  6. added a commit that references this issue on May 1, 2026
    702ef03
  7. j-pietrus commented on Jun 24, 2026

    @j-pietrus
    Author

    Closing issue as pr already created: #3206

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions