API Reference
Command
Update-ManagedModuleCatalog
Refreshes package metadata in a local managed module catalog.
Remarks
Refreshes package metadata in a local managed module catalog.
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.
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 SetsParameters
- Credential PSCredential
- Optional repository credential.
- CredentialSecret String
- Optional repository credential secret.
- CredentialSecretFilePath String
- Optional path to a file containing the repository credential secret.
- CredentialUserName String
- Optional repository credential username.
- IncludePrerelease Boolean
- Override the catalog's prerelease refresh setting for this run.
- Name String
- Catalog name. Defaults to PSGallery.
- PackageName String[]
- Package/module names to refresh. When omitted, existing catalog packages are refreshed.
- Scope ModuleRepositoryProfileScope
- Catalog storage scope.
- Possible values:
User,Machine,All
Outputs
PowerForge.ManagedModuleCatalogUpdateResult