external help file: Builtin-help.xml Module Name: Builtin online version: schema: 2.0.0
Update-Plugin
SYNOPSIS
Updates an existing plugin to a newer version.
SYNTAX
Update-Plugin -Bot <Object> [-Name] <String[]> [[-Version] <String>] [-RemoveOldVersions] [<CommonParameters>]
DESCRIPTION
{{ Fill in the Description }}
EXAMPLES
EXAMPLE 1
!update-plugin --name myplugin
Update the [myplugin] plugin to the latest available.
EXAMPLE 2
!update-plugin --name myplugin --version 1.2.3
Update the [myplugin] plugin to version [1.2.3].
EXAMPLE 3
!update-plugin --name myplugin --removeoldversions
Update the [myplugin] plugin and remove any old versions.
PARAMETERS
-Bot
{{ Fill Bot Description }}
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Name
The name of the plugin to update.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Version
The version to update to.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-RemoveOldVersions
Remove all previous versions of the plugin after update.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
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.