API Reference
Get-ModuleInformation
Gets module manifest information from a project directory.
Remarks
This is a lightweight helper used by build/publish commands. It finds the module manifest (*.psd1) under -Path and returns a structured object containing common fields such as module name, version, required modules, and the manifest path. Use it in build scripts to avoid re-implementing manifest discovery logic.
Examples
Read module information from a module folder
PS>
Get-ModuleInformation -Path 'C:\Git\MyModule\Module'
Returns the parsed manifest and convenience properties such as module name and version.
Use in a build script (relative to the script root)
PS>
$moduleInfo = Get-ModuleInformation -Path $PSScriptRoot; $moduleInfo.ManifestPath
Loads the manifest from the folder where the build script resides.
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-ModuleInformation -Path <String> [<CommonParameters>]
#
All Parameter SetsParameters
- Path String
- The path to the directory containing the module manifest file.
Outputs
System.Object