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

Update-ManagedModuleCatalog

Module
PSPublishModule
Inputs
System.String[]
Outputs
PowerForge.ManagedModuleCatalogUpdateResult

Refreshes package metadata in a local managed module catalog.

Syntax

Update-ManagedModuleCatalog
[-Credential <PSCredential>]
[-CredentialSecret <String>]
[-CredentialSecretFilePath <String>]
[-CredentialUserName <String>]
[-IncludePrerelease <Boolean>]
[[-Name] <String>]
[[-PackageName] <String[]>]
[-Scope <User|Machine|All>]
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Refresh selected PowerShell Gallery packages

Update-ManagedModuleCatalog -Name PSGallery -PackageName Pester, Microsoft.Graph.Authentication

Queries live metadata and stores the known versions, dependency metadata, hashes, sizes, and package URLs locally.

Parameters

-Credential PSCredential optional
Optional repository credential.
-CredentialSecret String optionalaliases: Password, Token
Optional repository credential secret.
-CredentialSecretFilePath String optionalaliases: CredentialPath, TokenPath
Optional path to a file containing the repository credential secret.
-CredentialUserName String optionalaliases: UserName
Optional repository credential username.
-IncludePrerelease Boolean optional
Override the catalog's prerelease refresh setting for this run.
-Name String optionalposition: 0aliases: Repository, RepositoryName
Catalog name. Defaults to PSGallery.
-PackageName String[] optionalposition: 1pipeline: True (ByValue, ByPropertyName)aliases: Module, ModuleName, Package
Package/module names to refresh. When omitted, existing catalog packages are refreshed.
-Scope ModuleRepositoryProfileScope optional
Catalog storage scope.
Possible values: User, Machine, All

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.