New-PSScriptBuilderReleaseData¶
Creates a new release data file with default values.
Description¶
Creates psscriptbuilder.releasedata.json (path read from the loaded PSScriptBuilder
configuration) with SemVer's starting defaults — 0.1.0, build number 0, and every
timestamp/Git field left $null until explicitly refreshed. See
Set Up the Release Data File
for the full resulting file and what each field means.
Fails with an error if the file already exists, unless -Force is specified.
This cmdlet also supports -WhatIf and -Confirm (PowerShell's ShouldProcess pattern).
Parameters¶
| Name | Type | Description |
|---|---|---|
-Force |
switch | Overwrite the release data file if it already exists. |
Examples¶
Create the release data file¶
Preview without writing¶
Reinitialize an existing project¶
Output¶
Returns the same hierarchical structure
Get-PSScriptBuilderReleaseData returns by default,
describing the newly created release data.