API Reference
Get-PowerShellAssemblyMetadata
Gets the cmdlets and aliases in a .NET assembly by scanning for cmdlet-related attributes.
Remarks
This is typically used by module build tooling to determine which cmdlets and aliases should be exported for binary modules (compiled cmdlets). The cmdlet delegates scanning to a typed PowerForge service so the metadata logic can be reused outside the PowerShell surface.
Examples
Inspect a compiled PowerShell module assembly
PS>
Get-PowerShellAssemblyMetadata -Path '.\bin\Release\net8.0\MyModule.dll'
Returns discovered cmdlet and alias names based on PowerShell attributes.
Inspect an assembly in a build artifact folder
PS>
Get-PowerShellAssemblyMetadata -Path 'C:\Artifacts\MyModule\Bin\MyModule.dll'
Useful when validating what will be exported before publishing.
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
Get-PowerShellAssemblyMetadata -Path <String> [<CommonParameters>]
#
All Parameter SetsParameters
- Path String
- The assembly to inspect.
Outputs
System.Object