Skip to content

Install-DifyPlugin

Warning

This help was primarily created by a generative AI. It may contain partially inaccurate expressions.

SYNOPSIS

Install plugins from the Dify Marketplace into the current workspace.

SYNTAX

Install-DifyPlugin [[-Item] <PSObject[]>] [[-Id] <String[]>] [[-UniqueIdentifier] <String[]>] [-Wait]
 [[-Interval] <Int32>] [[-Timeout] <Int32>] [<CommonParameters>]

DESCRIPTION

The Install-DifyPlugin cmdlet installs plugins from the Dify Marketplace into the current workspace. You can specify plugins to install by their ID, unique identifier, or via pipeline input.

If the -Wait parameter is specified, the cmdlet waits for the installation task to complete and returns the installed plugins. Otherwise, it returns a task object with installation status information.

NOTE: This help was primarily created by a generative AI. It may contain partially inaccurate expressions.

EXAMPLES

Example 1

Install-DifyPlugin -Id "plugin-id-123" -Wait

Install a plugin with the specified ID and wait for the installation to complete.

Example 2

Install-DifyPlugin -UniqueIdentifier "unique-plugin-456" -Interval 10 -Timeout 600 -Wait

Install a plugin using its unique identifier, wait for the installation to complete, and specify custom interval and timeout settings.

Example 3

$Plugins = Find-DifyPlugin -Search "example"
Install-DifyPlugin -Item $Plugins -Wait

Search for plugins using Find-DifyPlugin and install the resulting plugins.

PARAMETERS

-Id

Specifies the IDs of the plugins to install.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Interval

Specifies the interval, in seconds, between status checks when -Wait is used.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: 5
Accept pipeline input: False
Accept wildcard characters: False

-Item

Specifies the plugin objects to install. This parameter can accept pipeline input.

Type: PSObject[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Timeout

Specifies the timeout, in seconds, for the installation task when -Wait is used.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: 300
Accept pipeline input: False
Accept wildcard characters: False

-UniqueIdentifier

Specifies the unique identifiers of the plugins to install.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Wait

Indicates that the cmdlet waits for the installation task to complete before returning.

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, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.Management.Automation.PSObject[]

OUTPUTS

System.Object

NOTES