Evotec

Project

PSPublishModule

PSPublishModule is an open-source PowerShell and .NET project with packages, release history, and technical documentation.

Stars 43
Forks 13
Open issues 1
PowerShell Gallery downloads 13,876
Release v3.0.3
Language: C# Updated: 2026-04-14

API Reference

Command

Invoke-PowerForgePluginPack

Namespace PSPublishModule
Inputs
None
Outputs
System.Object

Packs plugin-related NuGet packages from a reusable PowerForge plugin catalog configuration.

Remarks

This cmdlet is the PowerShell entry point for the same generic plugin package workflow used by powerforge plugin pack. It selects package groups from the shared catalog, runs dotnet pack, and can optionally push only the packages produced by the current run.

Examples

Authored help example

Plan package output without running dotnet pack


Invoke-PowerForgePluginPack -Plan
        

Pack and push public plugin packages


Invoke-PowerForgePluginPack -ConfigPath '.\Build\powerforge.plugins.json' -Group pack-public -Push -Source https://api.nuget.org/v3/index.json -ApiKey $env:NUGET_API_KEY -ExitCode
        

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

Invoke-PowerForgePluginPack [-ApiKey <String>] [-ConfigPath <String>] [-Configuration <Release|Debug>] [-ExitCode] [-Group <String[]>] [-IncludeSymbols] [-NoBuild] [-OutputRoot <String>] [-PackageVersion <String>] [-Plan] [-ProjectRoot <String>] [-Push] [-Source <String>] [-VersionSuffix <String>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

ApiKey String optionalposition: namedpipeline: False
API key used with Push.
ConfigPath String optionalposition: namedpipeline: False
Path to the plugin catalog configuration file. When omitted, the cmdlet searches the current directory and its parents for standard PowerForge plugin config names.
Configuration String optionalposition: namedpipeline: Falsevalues: 2
Optional configuration override.
Possible values: Release, Debug
ExitCode SwitchParameter optionalposition: namedpipeline: False
Sets host exit code: 0 on success, 1 on failure.
Group String[] optionalposition: namedpipeline: Falsealiases: Groups
Optional package group filter. When omitted, all catalog entries are selected.
IncludeSymbols SwitchParameter optionalposition: namedpipeline: False
Includes symbol packages in the pack output.
NoBuild SwitchParameter optionalposition: namedpipeline: False
Skips the build step when running dotnet pack.
OutputRoot String optionalposition: namedpipeline: False
Optional output root override for packed NuGet packages.
PackageVersion String optionalposition: namedpipeline: False
Optional package version override.
Plan SwitchParameter optionalposition: namedpipeline: False
Builds and emits the resolved package plan without executing dotnet pack.
ProjectRoot String optionalposition: namedpipeline: False
Optional project root override for resolving plugin project paths.
Push SwitchParameter optionalposition: namedpipeline: False
Pushes packages after a successful pack run.
Source String optionalposition: namedpipeline: False
Package source URL or name used with Push.
VersionSuffix String optionalposition: namedpipeline: False
Optional package version suffix override.

Outputs

System.Object