Get PodeVersion - mdaneri/Pode GitHub Wiki
external help file: Pode-help.xml Module Name: Pode online version: PodeType: Utilities schema: 2.0.0
Retrieves the version of the Pode module.
Get-PodeVersion [-Raw]
The `Get-PodeVersion` function checks the version of the Pode module as specified in the module manifest. If the module version is not the placeholder value (`'$version$'`), it returns the actual version prefixed with `'v'`. If the module version is the placeholder value, indicating the development branch, it returns `"[dev]"`.
Get-PodeVersion
Returns the Pode module version, e.g., `'v1.2.3'` for release versions or `"[dev]"` if in development.
Get-PodeVersion -Raw
Returns the raw version number, e.g., `'1.2.3'`, without the `'v'` prefix.
If specified, the function returns only the raw module version without the `'v'` prefix. By default, the function formats the version as `'vX.Y.Z'` unless the module is in development mode.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
- If the module version is a placeholder (`'$version$'`), the function assumes it's running from the development branch.