Skip to main content

Clear-PsakeCache

This page was generated

Contributions are welcome in Psake-repo.

Since Psake 5.0

This command was introduced in Psake 5.0 and is not available in earlier versions.

SYNOPSIS

Clears the psake build cache.

SYNTAX

__AllParameterSets

Clear-PsakeCache [[-Path] <string>] [[-TaskName] <string>] [<CommonParameters>]

DESCRIPTION

Removes cached task state from the .psake/cache/ directory. This forces all tasks to re-execute on the next build.

EXAMPLES

EXAMPLE 1

Clear-PsakeCache

Clears all cached task state in the current directory.

EXAMPLE 2

Clear-PsakeCache -TaskName 'Build'

Clears cached state for the 'Build' task only.

PARAMETERS

-Path

The directory containing the .psake/cache/ folder. Defaults to the current directory.

Type: System.String
DefaultValue: .
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-TaskName

Optional: clear cache for a specific task only.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

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

OUTPUTS

NOTES

VERSION

This page was generated using comment-based help in Psake 5.0.4.