API Reference
Command
New-PowerForgeReleaseConfig
Scaffolds a starter unified release.json configuration file.
Remarks
Use this cmdlet to assemble a repository-level release config from the build configs the repo already has, typically Build/project.build.json and Build/powerforge.dotnetpublish.json.
Examples
Create a starter unified release config from the current repository root
New-PowerForgeReleaseConfig -ProjectRoot '.' -PassThru
Generate config from explicit package and DotNet publish config files
New-PowerForgeReleaseConfig -PackagesConfigPath '.\Build\project.build.json' -DotNetPublishConfigPath '.\Build\powerforge.dotnetpublish.json' -Force
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
New-PowerForgeReleaseConfig [-Configuration <Release|Debug>] [-DotNetPublishConfigPath <String>] [-Force] [-NoSchema] [-OutputPath <String>] [-PackagesConfigPath <String>] [-PassThru] [-ProjectRoot <String>] [-SkipPackages] [-SkipTools] [<CommonParameters>]
#
Parameter set:
All Parameter SetsParameters
- Configuration String
- Release configuration value written into the tool section.
- Possible values:
Release,Debug - DotNetPublishConfigPath String
- Optional path to an existing DotNet publish config file.
- Force SwitchParameter
- Overwrite an existing config file.
- NoSchema SwitchParameter
- Omits the $schema property from generated JSON.
- OutputPath String
- Output config path (default: Build\release.json).
- PackagesConfigPath String
- Optional path to an existing project-build config file.
- PassThru SwitchParameter
- Returns detailed scaffold metadata instead of only the config path.
- ProjectRoot String
- Project root used to resolve relative paths.
- SkipPackages SwitchParameter
- Skips package config discovery.
- SkipTools SwitchParameter
- Skips tool/app config discovery.
Outputs
System.String PowerForge.PowerForgeReleaseConfigScaffoldResult