Skip to content

Get-DifyDSLContent

Warning

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

SYNOPSIS

Retrieve content from a DSL file as a string in UTF-8 format without BOM.

SYNTAX

Get-DifyDSLContent [[-Path] <String>] [<CommonParameters>]

DESCRIPTION

Get-DifyDSLContent retrieves the content of a specified DSL file and ensures it is read in UTF-8 format without BOM. This cmdlet is useful for reading files and processing their content as a string.

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

EXAMPLES

Example 1

$RawContent = Get-DifyDSLContent -Path "DSLs/old.yml"

Retrieve content from DSL file.

Example 2

$RawContent = Get-DifyDSLContent -Path "DSLs/old.yml"
$RawContent -replace "8b960203-299d-4345-b953-3308663dd790", "574d9556-189a-4d35-b296-09231b859667" | Import-DifyApp -Content

Import an app by modifying the content of the DSL file programmatically and piping it directly to the cmdlet.

PARAMETERS

-Path

Specifies the path to the DSL file from which the content is to be retrieved.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 0
Default value: None
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

None

OUTPUTS

System.Object

NOTES