< Back

Save-PodeState

Sat Jan 18, 2020 7:19 pm

NAME Save-PodeState



SYNOPSIS

Saves the current shared state to a supplied JSON file.





SYNTAX

Save-PodeState [-Path] <String> [<CommonParameters>]





DESCRIPTION

Saves the current shared state to a supplied JSON file. When using this function, it's recommended to wrap it in a

Lock-PodeObject block.





PARAMETERS

-Path <String>

The path to a JSON file which the current state will be saved to.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Save-PodeState -Path './state.json'















RELATED LINKS