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

Update-ManagedModuleCatalog

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

Refreshes package metadata in a local managed module catalog.

Remarks

Refreshes package metadata in a local managed module catalog.

Examples

Authored help example

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.

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

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

Parameters

Credential PSCredential optionalposition: namedpipeline: False
Optional repository credential.
CredentialSecret String optionalposition: namedpipeline: Falsealiases: Password, Token
Optional repository credential secret.
CredentialSecretFilePath String optionalposition: namedpipeline: Falsealiases: CredentialPath, TokenPath
Optional path to a file containing the repository credential secret.
CredentialUserName String optionalposition: namedpipeline: Falsealiases: UserName
Optional repository credential username.
IncludePrerelease Boolean optionalposition: namedpipeline: False
Override the catalog's prerelease refresh setting for this run.
Name String optionalposition: 0pipeline: Falsealiases: 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 optionalposition: namedpipeline: Falsevalues: 3
Catalog storage scope.
Possible values: User, Machine, All

Outputs

PowerForge.ManagedModuleCatalogUpdateResult