Skip to content

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

@j-pietrus

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions