# Get-ModuleDocumentation

Gets module documentation (README, CHANGELOG, LICENSE, Intro/Upgrade) and renders it in the console.

Project

PSPublishModule

Build, test, version, sign, and publish PowerShell modules with reusable PowerForge pipelines.

[View on GitHub](https://github.com/EvotecIT/PSPublishModule) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSPublishModule/releases/tag/v3.0.124) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSPublishModule/2.0.27)

Stars **48**

Forks **15**

Open issues **1**

PowerShell Gallery downloads **17,213**

Release **v3.0.195**

Language: C# Updated: 2026-11-25

Command 

**Module**

`PSPublishModule`

**Inputs**

`System.Management.Automation.PSModuleInfo` `System.String`

Gets module documentation (README, CHANGELOG, LICENSE, Intro/Upgrade) and renders it in the console.

## Syntax

```
Get-ModuleDocumentation
[-All]
[-Changelog]
[-DefaultCodeLanguage <Auto|PowerShell|Json>]
[-File <String>]
[-Intro]
[-JsonRenderer <Auto|Spectre|System>]
[-License]
[-Links]
[-List]
[[-Name] <String>]
[-Online]
[-PreferInternals]
[-Raw]
[-Readme]
[-RepositoryBranch <String>]
[-RepositoryPaths <String[]>]
[-RepositoryToken <String>]
[-RequiredVersion <Version>]
[-Type <DocumentationSelection>]
[-Upgrade]
[<CommonParameters>]
```

[#](#member-b4a621943703868a73f99f98)

Parameter set: `ByName`

```
Get-ModuleDocumentation
[-All]
[-Changelog]
[-DefaultCodeLanguage <Auto|PowerShell|Json>]
[-File <String>]
[-Intro]
[-JsonRenderer <Auto|Spectre|System>]
[-License]
[-Links]
[-List]
[-Module <PSModuleInfo>]
[-Online]
[-PreferInternals]
[-Raw]
[-Readme]
[-RepositoryBranch <String>]
[-RepositoryPaths <String[]>]
[-RepositoryToken <String>]
[-RequiredVersion <Version>]
[-Type <DocumentationSelection>]
[-Upgrade]
[<CommonParameters>]
```

[#](#member-5a7d41ab0b1c47a3ada35283)

Parameter set: `ByModule`

```
Get-ModuleDocumentation
[-All]
[-Changelog]
[-DefaultCodeLanguage <Auto|PowerShell|Json>]
[-DocsPath <String>]
[-File <String>]
[-Intro]
[-JsonRenderer <Auto|Spectre|System>]
[-License]
[-Links]
[-List]
[-Online]
[-PreferInternals]
[-Raw]
[-Readme]
[-RepositoryBranch <String>]
[-RepositoryPaths <String[]>]
[-RepositoryToken <String>]
[-Type <DocumentationSelection>]
[-Upgrade]
[<CommonParameters>]
```

[#](#member-88327682641a52b5eeed2bfd)

Parameter set: `ByPath`

```
Get-ModuleDocumentation
[-All]
[-Changelog]
[-DefaultCodeLanguage <Auto|PowerShell|Json>]
[-File <String>]
[-Intro]
[-JsonRenderer <Auto|Spectre|System>]
[-License]
[-Links]
[-List]
[-ModuleBase <String>]
[-Online]
[-PreferInternals]
[-Raw]
[-Readme]
[-RepositoryBranch <String>]
[-RepositoryPaths <String[]>]
[-RepositoryToken <String>]
[-Type <DocumentationSelection>]
[-Upgrade]
[<CommonParameters>]
```

[#](#member-40ad00d5cad1f841d32a792b)

Parameter set: `ByBase`

## Description

Resolves documentation files from an installed module (root or Internals folder) and renders them with Spectre.Console. When local files are absent, it will backfill from the module's repository specified by PrivateData.PSData.ProjectUri (GitHub or Azure DevOps), using a token when necessary.

## Examples

### Example 1

```powershell
Get-ModuleDocumentation -DocsPath 'C:\Path'
```

## Parameters

**-All SwitchParameter optional**

Convenience switch to show Intro, README, CHANGELOG and LICENSE in order.

**-Changelog SwitchParameter optional**

Show CHANGELOG.*.

**-DefaultCodeLanguage String optional**

Default language for unlabeled code fences (Auto, PowerShell, Json, None).

Possible values: `Auto`, `PowerShell`, `Json`

**-File String optional**

Show a specific file by name (relative to module root or Internals) or full path.

**-Intro SwitchParameter optional**

Show configured IntroText/IntroFile (from Delivery metadata).

**-JsonRenderer String optional**

Select JSON renderer for fenced JSON blocks: Auto, Spectre, or System.

Possible values: `Auto`, `Spectre`, `System`

**-License SwitchParameter optional**

Show LICENSE.*.

**-Links SwitchParameter optional**

Show configured ImportantLinks from Delivery metadata.

**-List SwitchParameter optional**

List discovered documentation files (without rendering).

**-Name String optionalposition: 0pipeline: True (ByValue, ByPropertyName)aliases: ModuleNamesets: ByName**

Module name to display documentation for.

**-Online SwitchParameter optional**

Enable repository access for remote documentation fallback and repository path enumeration.

**-PreferInternals SwitchParameter optional**

Prefer Internals folder over module root when both contain the same file kind.

**-Raw SwitchParameter optional**

Print raw file content without Markdown rendering.

**-Readme SwitchParameter optional**

Show README.*.

**-RepositoryBranch String optional**

Branch name to use when fetching remote docs. If omitted, the provider default branch is used.

**-RepositoryPaths String[] optional**

Repository-relative folders to enumerate and display (e.g., 'docs', 'articles'). Only .md/.markdown/.txt files are rendered.

**-RepositoryToken String optional**

Personal Access Token for private repositories. Env fallbacks: PG_GITHUB_TOKEN/GITHUB_TOKEN or PG_AZDO_PAT/AZURE_DEVOPS_EXT_PAT.

**-RequiredVersion Version optionalsets: ByName, ByModule**

Exact version to select when multiple module versions are installed.

**-Type DocumentationSelection optional**

High-level selection of which documents to show. Overrides granular switches when specified.

Possible values: `Default`, `Intro`, `Readme`, `Changelog`, `License`, `Upgrade`, `All`, `Links`

**-Upgrade SwitchParameter optional**

Show configured UpgradeText/UpgradeFile (from Delivery metadata or UPGRADE.*).

**-Module PSModuleInfo optionalpipeline: True (ByValue)aliases: InputObject, ModuleInfosets: ByModule**

Module object to display documentation for. Alternative to -Name.

**-DocsPath String optionalsets: ByPath**

Direct path to a documentation folder containing README/CHANGELOG/etc.

**-ModuleBase String optionalsets: ByBase**

Path to a module root (folder that contains the module manifest). Useful for unpacked builds.

## 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:1FC7F67ED5285BED36B5EC3E08E99AFBC3A468BBDEC5DB1B9E7F871F1EABE56C -->
