Install-YTdlp
SYNOPSIS
Installs yt-dlp using winget
SYNTAX
Install-YTdlp [-Force] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
The Install-YTdlp function installs yt-dlp using the Windows Package Manager (winget) package [ yt-dlp.yt-dlp ].
The winget package declares FFmpeg & Deno as dependencies so they are installed alongside yt-dlp. FFmpeg is required to merge video & audio streams, convert audio, & embed metadata. A JavaScript runtime is required by some sites.
winget is only available on Windows. On Linux & macOS install yt-dlp with the package manager of the platform, for example [ brew install yt-dlp ].
The current session PATH is not always updated by winget, the module also searches the default winget locations so the other functions work immediately after install.
EXAMPLES
EXAMPLE 1
Install-YTdlp
Installs yt-dlp using winget if it is not already installed
EXAMPLE 2
Install-YTdlp -Force -Verbose
Reinstalls yt-dlp using winget & shows the winget command that is run
EXAMPLE 3
Install-YTdlp -WhatIf
Shows what would happen without installing anything
PARAMETERS
-Force
Reinstall yt-dlp even if it is already installed
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ProgressAction
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
N/A
OUTPUTS
Celerium.YTdlp.Version
NOTES
Copyright 1990-2026 Celerium
NAME: Install-YTdlp Type: Public
AUTHOR: David Schulte
DATE: 2025-11-11
EMAIL: celerium@Celerium.org
TODO: