API Reference
Set-ManagedModuleCatalog
Creates or updates local managed module catalog cache settings.
Remarks
The catalog stores local repository metadata only. It does not mirror package blobs unless a later package cache feature is explicitly enabled. Managed module commands can use this metadata as an opt-in fallback when live repository metadata is unavailable.
Examples
Enable a fallback catalog for PowerShell Gallery metadata
Set-ManagedModuleCatalog -Name PSGallery -Mode Fallback -MaxStaleness 14.00:00:00
Stores user-local catalog settings for the canonical PowerShell Gallery source.
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
Set-ManagedModuleCatalog [-IncludePrerelease <Boolean>] [-MaxStaleness <TimeSpan>] [-Mode <Off|ReadThrough|Fallback|PreferCache|Offline>] [-Name <String>] [-RepositoryKind <Auto|NuGetV3|NuGetV2|LocalFolder>] [-Scope <User|Machine|All>] [-Source <String>] [<CommonParameters>]#All Parameter SetsParameters
- IncludePrerelease Boolean
- Include prerelease versions during catalog refresh.
- MaxStaleness TimeSpan
- Maximum age accepted for stale catalog fallback decisions.
- Mode ManagedModuleCatalogCacheMode
- Local catalog cache mode.
- Possible values:
Off,ReadThrough,Fallback,PreferCache,Offline - Name String
- Catalog name, usually the repository name. Defaults to PSGallery.
- RepositoryKind ManagedModuleRepositoryKind
- Repository kind used by the catalog refresh path.
- Possible values:
Auto,NuGetV3,NuGetV2,LocalFolder - Scope ModuleRepositoryProfileScope
- Catalog storage scope.
- Possible values:
User,Machine,All - Source String
- Repository source URL used to refresh metadata.
Outputs
PowerForge.ManagedModuleCatalog