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.169
Language: C# Updated: 2026-10-13

API Reference

Command

New-ConfigurationPublish

Namespace PSPublishModule
Inputs
None

Provides a way to configure publishing to PowerShell Gallery, GitHub, JFrog Artifactory, or other private PowerShell module repositories.

Remarks

This cmdlet emits publish configuration consumed by Invoke-ModuleBuild / Build-Module. Use -Type to choose a destination. For repository publishing, -Tool selects the provider (PowerShellGet/PSResourceGet/ManagedModule/Auto). For private repositories (for example Azure DevOps Artifacts, JFrog Artifactory, GitHub Packages, or private NuGet v3 feeds), provide repository URIs and (optionally) credentials, or use provider-specific preset parameters to resolve those URIs automatically. To avoid secrets in source control, pass API keys/tokens via -FilePath or environment-specific tooling. JFrog Artifactory can be configured directly with -JFrogBaseUri and -JFrogRepository. For PAT/basic-auth feeds, use repository credentials only. Add -FilePath or -ApiKey only when the feed requires a separate NuGet API key for package push.

Examples

Authored help example

Publish to PowerShell Gallery (API key from file)


New-ConfigurationPublish -Type PowerShellGallery -FilePath "$env:USERPROFILE\.secrets\psgallery.key" -Enabled
        

Publish to GitHub Releases (token from file)


New-ConfigurationPublish -Type GitHub -FilePath "$env:USERPROFILE\.secrets\github.token" -UserName 'EvotecIT' -RepositoryName 'MyModule' -Enabled
        

Publish to Azure Artifacts (private feed preset)


New-ConfigurationPublish -ProfileName 'Company' -Enabled
        

Publish to JFrog Artifactory with PAT/basic authentication


New-ConfigurationPublish -JFrogBaseUri 'https://company.jfrog.io/artifactory' -JFrogRepository 'powershell-virtual' -RepositoryName 'JFrogPS' -Tool PSResourceGet -RepositoryCredentialUserName 'name@company.com' -RepositoryCredentialSecretFilePath "$env:USERPROFILE\.secrets\jfrog-pat.txt" -Enabled
        

Publish to JFrog Artifactory with a clear-text PAT for local testing


New-ConfigurationPublish -JFrogBaseUri 'https://company.jfrog.io/artifactory' -JFrogRepository 'powershell-virtual' -RepositoryName 'JFrogPS' -Tool PSResourceGet -RepositoryCredentialUserName 'name@company.com' -RepositoryCredentialSecret 'temporary-pat' -Enabled
        

Publish to JFrog Artifactory with a separate NuGet API key


New-ConfigurationPublish -JFrogBaseUri 'https://company.jfrog.io/artifactory' -JFrogRepository 'powershell-virtual' -RepositoryName 'JFrogPS' -Tool PSResourceGet -FilePath "$env:USERPROFILE\.secrets\jfrog-nuget-api-key.txt" -RepositoryCredentialUserName 'name@company.com' -RepositoryCredentialSecretFilePath "$env:USERPROFILE\.secrets\jfrog-pat.txt" -Enabled
        

Publish to JFrog Artifactory with a PAT/access token stored in an environment variable


New-ConfigurationPublish -JFrogBaseUri 'https://company.jfrog.io/artifactory' -JFrogRepository 'powershell-virtual' -RepositoryName 'JFrogPS' -Tool PSResourceGet -RepositoryCredentialUserName 'name@company.com' -RepositoryCredentialSecretEnvironmentVariable 'JFROG_ACCESS_TOKEN' -Enabled
        

Publish to JFrog Artifactory with CI OIDC token exchange


New-ConfigurationPublish -JFrogBaseUri 'https://company.jfrog.io/artifactory' -JFrogRepository 'powershell-virtual' -RepositoryName 'JFrogPS' -Tool PSResourceGet -JFrogOidcProvider 'azure-oidc' -JFrogOidcProviderType Azure -JFrogOidcTokenIdEnvironmentVariable 'JFROG_CLI_OIDC_EXCHANGE_TOKEN_ID' -Enabled
        

Publish missing RequiredModules into a private repository before publishing the module


New-ConfigurationPublish -JFrogBaseUri 'https://company.jfrog.io/artifactory' -JFrogRepository 'powershell-virtual' -RepositoryName 'JFrogPS' -Tool PSResourceGet -RepositoryCredentialUserName 'name@company.com' -RepositoryCredentialSecretEnvironmentVariable 'JFROG_ACCESS_TOKEN' -PublishRequiredModules -RequiredModuleSourceRepository PSGallery -Enabled
        

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-ConfigurationPublish [-DoNotMarkAsPreRelease] [-Enabled] [-EnsureRepositoryRegistered <Boolean>] [-FilePath <String>] [-Force] [-GenerateReleaseNotes] [-ID <String>] [-OverwriteTagName <String>] [-PublishRequiredModules] [-ReplaceExistingAssets] [-RepositoryApiVersion <Auto>] [-RepositoryCredentialSecret <String>] [-RepositoryCredentialSecretEnvironmentVariable <String>] [-RepositoryCredentialSecretFilePath <String>] [-RepositoryCredentialUserName <String>] [-RepositoryName <String>] [-RepositoryPriority <Int32>] [-RepositoryPublishUri <String>] [-RepositorySourceUri <String>] [-RepositoryTrusted <Boolean>] [-RepositoryUri <String>] [-RequiredModuleSourceRepository <String>] [-RequiredModuleSourceRepositoryUri <String>] [-ReuseExistingRelease] [-Tool <Auto|PSResourceGet|PowerShellGet|ManagedModule>] -Type <PowerShellGallery|GitHub> [-UnregisterRepositoryAfterPublish] [-UseAsDependencyVersionSource] [-UserName <String>] [<CommonParameters>]
#
Parameter set: ApiFromFile

Parameters

DoNotMarkAsPreRelease SwitchParameter optionalposition: namedpipeline: False
Publish GitHub release as a release even if module prerelease is set.
Enabled SwitchParameter optionalposition: namedpipeline: False
Enable publishing to the chosen destination.
EnsureRepositoryRegistered Boolean optionalposition: namedpipeline: False
When true, registers/updates the repository before publishing. Default: true.
FilePath String optionalposition: namedpipeline: False
API key to be used for publishing in clear text in a file. For JFrog, use this only when the feed requires a separate NuGet API key.
Force SwitchParameter optionalposition: namedpipeline: False
Allow publishing lower version of a module on a PowerShell repository.
GenerateReleaseNotes SwitchParameter optionalposition: namedpipeline: False
When set, asks GitHub to generate release notes automatically.
ID String optionalposition: namedpipeline: False
Optional ID of the artefact used for publishing.
OverwriteTagName String optionalposition: namedpipeline: False
Override tag name used for GitHub publishing.
PublishRequiredModules SwitchParameter optionalposition: namedpipeline: False
When set, publishes missing manifest RequiredModules to the target repository before publishing the main module.
ReplaceExistingAssets SwitchParameter optionalposition: namedpipeline: False
Replace same-name assets when deliberately reusing an existing GitHub release.
RepositoryApiVersion RepositoryApiVersion optionalposition: namedpipeline: Falsevalues: 6
Repository API version for PSResourceGet registration (v2/v3).
Possible values: Auto, V2, V3, ContainerRegistry, Local, NugetServer
RepositoryCredentialSecret String optionalposition: namedpipeline: False
Repository credential secret (password/token) in clear text. For JFrog PAT/basic-auth flows, this is the PAT or access token.
RepositoryCredentialSecretEnvironmentVariable String optionalposition: namedpipeline: False
Environment variable containing the repository credential secret (password/token). For JFrog PAT/access-token flows, this can be JFROG_ACCESS_TOKEN or a CI secret variable.
RepositoryCredentialSecretFilePath String optionalposition: namedpipeline: False
Repository credential secret (password/token) in a clear-text file. For JFrog PAT/basic-auth flows, prefer this over inline token values.
RepositoryCredentialUserName String optionalposition: namedpipeline: False
Repository credential username (basic auth). For JFrog PAT/basic-auth flows, this is the JFrog user name or email.
RepositoryName String optionalposition: namedpipeline: False
Repository name override (GitHub or PowerShell repository name).
RepositoryPriority Int32 optionalposition: namedpipeline: False
Repository priority for PSResourceGet (lower is higher priority).
RepositoryPublishUri String optionalposition: namedpipeline: False
Repository publish URI (PowerShellGet PublishLocation).
RepositorySourceUri String optionalposition: namedpipeline: False
Repository source URI (PowerShellGet SourceLocation).
RepositoryTrusted Boolean optionalposition: namedpipeline: False
Whether to mark the repository as trusted (avoids prompts). Default: true.
RepositoryUri String optionalposition: namedpipeline: False
Repository base URI (used for both source and publish unless overridden).
RequiredModuleSourceRepository String optionalposition: namedpipeline: False
Repository used as the source for publishing missing RequiredModules. Defaults to PSGallery.
RequiredModuleSourceRepositoryUri String optionalposition: namedpipeline: False
Repository URL or local feed path used by managed publishing as the source for missing RequiredModules.
ReuseExistingRelease SwitchParameter optionalposition: namedpipeline: False
Explicitly reuse an existing GitHub release when its tag is already occupied.
Tool PublishTool optionalposition: namedpipeline: Falsevalues: 4
Publishing tool/provider used for repository publishing. Ignored for GitHub publishing.
Possible values: Auto, PSResourceGet, PowerShellGet, ManagedModule
Type PublishDestination requiredposition: namedpipeline: Falsevalues: 2
Choose between PowerShellGallery and GitHub.
Possible values: PowerShellGallery, GitHub
UnregisterRepositoryAfterPublish SwitchParameter optionalposition: namedpipeline: False
When set, unregisters the repository after publish if it was created by this run.
UseAsDependencyVersionSource SwitchParameter optionalposition: namedpipeline: False
Use this PowerShell repository as the source for resolving Auto/Latest dependency versions.
UserName String optionalposition: namedpipeline: False
GitHub username (required for GitHub publishing).
New-ConfigurationPublish [-ApiKey <String>] [-DoNotMarkAsPreRelease] [-Enabled] [-EnsureRepositoryRegistered <Boolean>] [-Force] [-GenerateReleaseNotes] [-ID <String>] [-OverwriteTagName <String>] [-PublishRequiredModules] [-ReplaceExistingAssets] [-RepositoryApiVersion <Auto>] [-RepositoryCredentialSecret <String>] [-RepositoryCredentialSecretEnvironmentVariable <String>] [-RepositoryCredentialSecretFilePath <String>] [-RepositoryCredentialUserName <String>] [-RepositoryName <String>] [-RepositoryPriority <Int32>] [-RepositoryPublishUri <String>] [-RepositorySourceUri <String>] [-RepositoryTrusted <Boolean>] [-RepositoryUri <String>] [-RequiredModuleSourceRepository <String>] [-RequiredModuleSourceRepositoryUri <String>] [-ReuseExistingRelease] [-Tool <Auto|PSResourceGet|PowerShellGet|ManagedModule>] -Type <PowerShellGallery|GitHub> [-UnregisterRepositoryAfterPublish] [-UseAsDependencyVersionSource] [-UserName <String>] [<CommonParameters>]
#
Parameter set: ApiKey

Parameters

ApiKey String optionalposition: namedpipeline: False
API key to be used for publishing in clear text. For JFrog, use this only when the feed requires a separate NuGet API key.
DoNotMarkAsPreRelease SwitchParameter optionalposition: namedpipeline: False
Publish GitHub release as a release even if module prerelease is set.
Enabled SwitchParameter optionalposition: namedpipeline: False
Enable publishing to the chosen destination.
EnsureRepositoryRegistered Boolean optionalposition: namedpipeline: False
When true, registers/updates the repository before publishing. Default: true.
Force SwitchParameter optionalposition: namedpipeline: False
Allow publishing lower version of a module on a PowerShell repository.
GenerateReleaseNotes SwitchParameter optionalposition: namedpipeline: False
When set, asks GitHub to generate release notes automatically.
ID String optionalposition: namedpipeline: False
Optional ID of the artefact used for publishing.
OverwriteTagName String optionalposition: namedpipeline: False
Override tag name used for GitHub publishing.
PublishRequiredModules SwitchParameter optionalposition: namedpipeline: False
When set, publishes missing manifest RequiredModules to the target repository before publishing the main module.
ReplaceExistingAssets SwitchParameter optionalposition: namedpipeline: False
Replace same-name assets when deliberately reusing an existing GitHub release.
RepositoryApiVersion RepositoryApiVersion optionalposition: namedpipeline: Falsevalues: 6
Repository API version for PSResourceGet registration (v2/v3).
Possible values: Auto, V2, V3, ContainerRegistry, Local, NugetServer
RepositoryCredentialSecret String optionalposition: namedpipeline: False
Repository credential secret (password/token) in clear text. For JFrog PAT/basic-auth flows, this is the PAT or access token.
RepositoryCredentialSecretEnvironmentVariable String optionalposition: namedpipeline: False
Environment variable containing the repository credential secret (password/token). For JFrog PAT/access-token flows, this can be JFROG_ACCESS_TOKEN or a CI secret variable.
RepositoryCredentialSecretFilePath String optionalposition: namedpipeline: False
Repository credential secret (password/token) in a clear-text file. For JFrog PAT/basic-auth flows, prefer this over inline token values.
RepositoryCredentialUserName String optionalposition: namedpipeline: False
Repository credential username (basic auth). For JFrog PAT/basic-auth flows, this is the JFrog user name or email.
RepositoryName String optionalposition: namedpipeline: False
Repository name override (GitHub or PowerShell repository name).
RepositoryPriority Int32 optionalposition: namedpipeline: False
Repository priority for PSResourceGet (lower is higher priority).
RepositoryPublishUri String optionalposition: namedpipeline: False
Repository publish URI (PowerShellGet PublishLocation).
RepositorySourceUri String optionalposition: namedpipeline: False
Repository source URI (PowerShellGet SourceLocation).
RepositoryTrusted Boolean optionalposition: namedpipeline: False
Whether to mark the repository as trusted (avoids prompts). Default: true.
RepositoryUri String optionalposition: namedpipeline: False
Repository base URI (used for both source and publish unless overridden).
RequiredModuleSourceRepository String optionalposition: namedpipeline: False
Repository used as the source for publishing missing RequiredModules. Defaults to PSGallery.
RequiredModuleSourceRepositoryUri String optionalposition: namedpipeline: False
Repository URL or local feed path used by managed publishing as the source for missing RequiredModules.
ReuseExistingRelease SwitchParameter optionalposition: namedpipeline: False
Explicitly reuse an existing GitHub release when its tag is already occupied.
Tool PublishTool optionalposition: namedpipeline: Falsevalues: 4
Publishing tool/provider used for repository publishing. Ignored for GitHub publishing.
Possible values: Auto, PSResourceGet, PowerShellGet, ManagedModule
Type PublishDestination requiredposition: namedpipeline: Falsevalues: 2
Choose between PowerShellGallery and GitHub.
Possible values: PowerShellGallery, GitHub
UnregisterRepositoryAfterPublish SwitchParameter optionalposition: namedpipeline: False
When set, unregisters the repository after publish if it was created by this run.
UseAsDependencyVersionSource SwitchParameter optionalposition: namedpipeline: False
Use this PowerShell repository as the source for resolving Auto/Latest dependency versions.
UserName String optionalposition: namedpipeline: False
GitHub username (required for GitHub publishing).
New-ConfigurationPublish [-ApiKey <String>] [-Enabled] [-EnsureRepositoryRegistered <Boolean>] [-FilePath <String>] [-Force] [-ID <String>] -JFrogBaseUri <String> [-JFrogOidcProvider <String>] [-JFrogOidcProviderType <GitHub|Azure|GenericOidc>] [-JFrogOidcTokenId <String>] [-JFrogOidcTokenIdEnvironmentVariable <String>] [-JFrogPlatformUri <String>] -JFrogRepository <String> [-PublishRequiredModules] [-RepositoryApiVersion <Auto>] [-RepositoryCredentialSecret <String>] [-RepositoryCredentialSecretEnvironmentVariable <String>] [-RepositoryCredentialSecretFilePath <String>] [-RepositoryCredentialUserName <String>] [-RepositoryName <String>] [-RepositoryPriority <Int32>] [-RepositoryPublishUri <String>] [-RepositorySourceUri <String>] [-RepositoryTrusted <Boolean>] [-RepositoryUri <String>] [-RequiredModuleSourceRepository <String>] [-RequiredModuleSourceRepositoryUri <String>] [-Tool <Auto|PSResourceGet|PowerShellGet|ManagedModule>] [-Type <PowerShellGallery|GitHub>] [-UnregisterRepositoryAfterPublish] [-UseAsDependencyVersionSource] [<CommonParameters>]
#
Parameter set: JFrog

Parameters

ApiKey String optionalposition: namedpipeline: False
API key to be used for publishing in clear text. For JFrog, use this only when the feed requires a separate NuGet API key.
Enabled SwitchParameter optionalposition: namedpipeline: False
Enable publishing to the chosen destination.
EnsureRepositoryRegistered Boolean optionalposition: namedpipeline: False
When true, registers/updates the repository before publishing. Default: true.
FilePath String optionalposition: namedpipeline: False
API key to be used for publishing in clear text in a file. For JFrog, use this only when the feed requires a separate NuGet API key.
Force SwitchParameter optionalposition: namedpipeline: False
Allow publishing lower version of a module on a PowerShell repository.
ID String optionalposition: namedpipeline: False
Optional ID of the artefact used for publishing.
JFrogBaseUri String requiredposition: namedpipeline: False
JFrog Artifactory base URI, for example https://company.jfrog.io/artifactory. PowerShellGet and PSResourceGet URLs are derived automatically.
JFrogOidcProvider String optionalposition: namedpipeline: False
JFrog OIDC provider name configured in Artifactory. Enables runtime token exchange through JFrog CLI.
JFrogOidcProviderType JFrogOidcProviderType optionalposition: namedpipeline: Falsevalues: 3
JFrog OIDC provider implementation passed to JFrog CLI. Use Azure for Azure DevOps or Entra-backed OIDC mappings.
Possible values: GitHub, Azure, GenericOidc
JFrogOidcTokenId String optionalposition: namedpipeline: False
CI-issued OIDC token value used by JFrog CLI token exchange. Prefer JFrogOidcTokenIdEnvironmentVariable in CI.
JFrogOidcTokenIdEnvironmentVariable String optionalposition: namedpipeline: False
Environment variable containing the CI-issued OIDC token value used by JFrog CLI token exchange.
JFrogPlatformUri String optionalposition: namedpipeline: False
JFrog Platform URL used for JFrog CLI OIDC token exchange. Defaults from JFrogBaseUri when omitted.
JFrogRepository String requiredposition: namedpipeline: False
JFrog NuGet repository key used to derive PowerShellGet and PSResourceGet endpoints, for example powershell-virtual.
PublishRequiredModules SwitchParameter optionalposition: namedpipeline: False
When set, publishes missing manifest RequiredModules to the target repository before publishing the main module.
RepositoryApiVersion RepositoryApiVersion optionalposition: namedpipeline: Falsevalues: 6
Repository API version for PSResourceGet registration (v2/v3).
Possible values: Auto, V2, V3, ContainerRegistry, Local, NugetServer
RepositoryCredentialSecret String optionalposition: namedpipeline: False
Repository credential secret (password/token) in clear text. For JFrog PAT/basic-auth flows, this is the PAT or access token.
RepositoryCredentialSecretEnvironmentVariable String optionalposition: namedpipeline: False
Environment variable containing the repository credential secret (password/token). For JFrog PAT/access-token flows, this can be JFROG_ACCESS_TOKEN or a CI secret variable.
RepositoryCredentialSecretFilePath String optionalposition: namedpipeline: False
Repository credential secret (password/token) in a clear-text file. For JFrog PAT/basic-auth flows, prefer this over inline token values.
RepositoryCredentialUserName String optionalposition: namedpipeline: False
Repository credential username (basic auth). For JFrog PAT/basic-auth flows, this is the JFrog user name or email.
RepositoryName String optionalposition: namedpipeline: False
Repository name override (GitHub or PowerShell repository name).
RepositoryPriority Int32 optionalposition: namedpipeline: False
Repository priority for PSResourceGet (lower is higher priority).
RepositoryPublishUri String optionalposition: namedpipeline: False
Repository publish URI (PowerShellGet PublishLocation).
RepositorySourceUri String optionalposition: namedpipeline: False
Repository source URI (PowerShellGet SourceLocation).
RepositoryTrusted Boolean optionalposition: namedpipeline: False
Whether to mark the repository as trusted (avoids prompts). Default: true.
RepositoryUri String optionalposition: namedpipeline: False
Repository base URI (used for both source and publish unless overridden).
RequiredModuleSourceRepository String optionalposition: namedpipeline: False
Repository used as the source for publishing missing RequiredModules. Defaults to PSGallery.
RequiredModuleSourceRepositoryUri String optionalposition: namedpipeline: False
Repository URL or local feed path used by managed publishing as the source for missing RequiredModules.
Tool PublishTool optionalposition: namedpipeline: Falsevalues: 4
Publishing tool/provider used for repository publishing. Ignored for GitHub publishing.
Possible values: Auto, PSResourceGet, PowerShellGet, ManagedModule
Type PublishDestination optionalposition: namedpipeline: Falsevalues: 2
Choose between PowerShellGallery and GitHub.
Possible values: PowerShellGallery, GitHub
UnregisterRepositoryAfterPublish SwitchParameter optionalposition: namedpipeline: False
When set, unregisters the repository after publish if it was created by this run.
UseAsDependencyVersionSource SwitchParameter optionalposition: namedpipeline: False
Use this PowerShell repository as the source for resolving Auto/Latest dependency versions.
New-ConfigurationPublish -AzureArtifactsFeed <String> -AzureDevOpsOrganization <String> [-AzureDevOpsProject <String>] [-Enabled] [-EnsureRepositoryRegistered <Boolean>] [-Force] [-ID <String>] [-PublishRequiredModules] [-RepositoryApiVersion <Auto>] [-RepositoryCredentialSecret <String>] [-RepositoryCredentialSecretEnvironmentVariable <String>] [-RepositoryCredentialSecretFilePath <String>] [-RepositoryCredentialUserName <String>] [-RepositoryName <String>] [-RepositoryPriority <Int32>] [-RepositoryTrusted <Boolean>] [-RequiredModuleSourceRepository <String>] [-RequiredModuleSourceRepositoryUri <String>] [-Tool <Auto|PSResourceGet|PowerShellGet|ManagedModule>] [-UnregisterRepositoryAfterPublish] [-UseAsDependencyVersionSource] [<CommonParameters>]
#
Parameter set: AzureArtifacts

Parameters

AzureArtifactsFeed String requiredposition: namedpipeline: False
Azure Artifacts feed name for the private gallery preset.
AzureDevOpsOrganization String requiredposition: namedpipeline: False
Azure DevOps organization name for the Azure Artifacts preset.
AzureDevOpsProject String optionalposition: namedpipeline: False
Optional Azure DevOps project name for project-scoped feeds.
Enabled SwitchParameter optionalposition: namedpipeline: False
Enable publishing to the chosen destination.
EnsureRepositoryRegistered Boolean optionalposition: namedpipeline: False
When true, registers/updates the repository before publishing. Default: true.
Force SwitchParameter optionalposition: namedpipeline: False
Allow publishing lower version of a module on a PowerShell repository.
ID String optionalposition: namedpipeline: False
Optional ID of the artefact used for publishing.
PublishRequiredModules SwitchParameter optionalposition: namedpipeline: False
When set, publishes missing manifest RequiredModules to the target repository before publishing the main module.
RepositoryApiVersion RepositoryApiVersion optionalposition: namedpipeline: Falsevalues: 6
Repository API version for PSResourceGet registration (v2/v3).
Possible values: Auto, V2, V3, ContainerRegistry, Local, NugetServer
RepositoryCredentialSecret String optionalposition: namedpipeline: False
Repository credential secret (password/token) in clear text. For JFrog PAT/basic-auth flows, this is the PAT or access token.
RepositoryCredentialSecretEnvironmentVariable String optionalposition: namedpipeline: False
Environment variable containing the repository credential secret (password/token). For JFrog PAT/access-token flows, this can be JFROG_ACCESS_TOKEN or a CI secret variable.
RepositoryCredentialSecretFilePath String optionalposition: namedpipeline: False
Repository credential secret (password/token) in a clear-text file. For JFrog PAT/basic-auth flows, prefer this over inline token values.
RepositoryCredentialUserName String optionalposition: namedpipeline: False
Repository credential username (basic auth). For JFrog PAT/basic-auth flows, this is the JFrog user name or email.
RepositoryName String optionalposition: namedpipeline: False
Repository name override (GitHub or PowerShell repository name).
RepositoryPriority Int32 optionalposition: namedpipeline: False
Repository priority for PSResourceGet (lower is higher priority).
RepositoryTrusted Boolean optionalposition: namedpipeline: False
Whether to mark the repository as trusted (avoids prompts). Default: true.
RequiredModuleSourceRepository String optionalposition: namedpipeline: False
Repository used as the source for publishing missing RequiredModules. Defaults to PSGallery.
RequiredModuleSourceRepositoryUri String optionalposition: namedpipeline: False
Repository URL or local feed path used by managed publishing as the source for missing RequiredModules.
Tool PublishTool optionalposition: namedpipeline: Falsevalues: 4
Publishing tool/provider used for repository publishing. Ignored for GitHub publishing.
Possible values: Auto, PSResourceGet, PowerShellGet, ManagedModule
UnregisterRepositoryAfterPublish SwitchParameter optionalposition: namedpipeline: False
When set, unregisters the repository after publish if it was created by this run.
UseAsDependencyVersionSource SwitchParameter optionalposition: namedpipeline: False
Use this PowerShell repository as the source for resolving Auto/Latest dependency versions.
New-ConfigurationPublish [-ApiKey <String>] [-Enabled] [-FilePath <String>] [-Force] [-ID <String>] -ProfileName <String> [-PublishRequiredModules] [-RepositoryCredentialSecret <String>] [-RepositoryCredentialSecretEnvironmentVariable <String>] [-RepositoryCredentialSecretFilePath <String>] [-RepositoryCredentialUserName <String>] [-RequiredModuleSourceRepository <String>] [-RequiredModuleSourceRepositoryUri <String>] [<CommonParameters>]
#
Parameter set: Profile

Parameters

ApiKey String optionalposition: namedpipeline: False
API key to be used for publishing in clear text. For JFrog, use this only when the feed requires a separate NuGet API key.
Enabled SwitchParameter optionalposition: namedpipeline: False
Enable publishing to the chosen destination.
FilePath String optionalposition: namedpipeline: False
API key to be used for publishing in clear text in a file. For JFrog, use this only when the feed requires a separate NuGet API key.
Force SwitchParameter optionalposition: namedpipeline: False
Allow publishing lower version of a module on a PowerShell repository.
ID String optionalposition: namedpipeline: False
Optional ID of the artefact used for publishing.
ProfileName String requiredposition: namedpipeline: Falsealiases: Profile
Saved private gallery profile name for Azure Artifacts publishing.
PublishRequiredModules SwitchParameter optionalposition: namedpipeline: False
When set, publishes missing manifest RequiredModules to the target repository before publishing the main module.
RepositoryCredentialSecret String optionalposition: namedpipeline: False
Repository credential secret (password/token) in clear text. For JFrog PAT/basic-auth flows, this is the PAT or access token.
RepositoryCredentialSecretEnvironmentVariable String optionalposition: namedpipeline: False
Environment variable containing the repository credential secret (password/token). For JFrog PAT/access-token flows, this can be JFROG_ACCESS_TOKEN or a CI secret variable.
RepositoryCredentialSecretFilePath String optionalposition: namedpipeline: False
Repository credential secret (password/token) in a clear-text file. For JFrog PAT/basic-auth flows, prefer this over inline token values.
RepositoryCredentialUserName String optionalposition: namedpipeline: False
Repository credential username (basic auth). For JFrog PAT/basic-auth flows, this is the JFrog user name or email.
RequiredModuleSourceRepository String optionalposition: namedpipeline: False
Repository used as the source for publishing missing RequiredModules. Defaults to PSGallery.
RequiredModuleSourceRepositoryUri String optionalposition: namedpipeline: False
Repository URL or local feed path used by managed publishing as the source for missing RequiredModules.