Project

PSPublishModule

Build, test, version, sign, and publish PowerShell modules with reusable PowerForge pipelines.

Stars 48
Forks 16
PowerShell Gallery downloads 17,213
Release v3.0.186
Language: C# Updated: 2026-11-04
Command

Set-AppStoreConnectVersionBuild

Module
PSPublishModule
Inputs
None
Outputs
PowerForge.AppStoreConnectReleasePreparationResult

Creates or finds an App Store version and selects a processed build for Distribution.

Syntax

Set-AppStoreConnectVersionBuild
[-AllowUnprocessedBuild]
-AppId <String>
-BuildNumber <String>
-IssuerId <String>
-KeyId <String>
[-NoCreateVersion]
[-NoSelectBuild]
-Platform <ApplePlatform>
[-PrivateKey <String>]
[-PrivateKeyPath <String>]
[-TokenLifetimeMinutes <Int32>]
-VersionString <String>
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Example 1

Set-AppStoreConnectVersionBuild -IssuerId 'Value' -KeyId 'Value' -AppId 'Value' -VersionString 'Value' -BuildNumber 'Value'

Parameters

-AllowUnprocessedBuild SwitchParameter optional
Allow selecting a build before App Store Connect reports VALID processing state.
-AppId String required
App Store Connect app id.
-BuildNumber String required
Uploaded build number to select.
-IssuerId String required
Issuer ID from App Store Connect API keys.
-KeyId String required
Key ID associated with the private key.
-NoCreateVersion SwitchParameter optional
Do not create the App Store version when it is missing.
-NoSelectBuild SwitchParameter optional
Do not attach the build to the App Store version.
-Platform ApplePlatform required
Apple platform for the App Store version and build.
Possible values: iOS, iPadOS, macOS, tvOS, watchOS, visionOS
-PrivateKey String optional
Private key text in PEM format.
-PrivateKeyPath String optional
Path to a private key file in PEM format.
-TokenLifetimeMinutes Int32 optional
Token lifetime in minutes, up to 20.
-VersionString String required
App Store marketing version to create or update.

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.