API Reference
Get-ModuleDocumentation
Gets module documentation (README, CHANGELOG, LICENSE, Intro/Upgrade) and renders it in the console.
Remarks
Gets module documentation (README, CHANGELOG, LICENSE, Intro/Upgrade) and renders it in the console. 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
Get-ModuleDocumentation -DocsPath 'C:\Path'
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-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 <Default>] [-Upgrade] [<CommonParameters>]#ByNameParameters
- All SwitchParameter
- Convenience switch to show Intro, README, CHANGELOG and LICENSE in order.
- Changelog SwitchParameter
- Show CHANGELOG.*.
- DefaultCodeLanguage String
- Default language for unlabeled code fences (Auto, PowerShell, Json, None).
- Possible values:
Auto,PowerShell,Json - File String
- Show a specific file by name (relative to module root or Internals) or full path.
- Intro SwitchParameter
- Show configured IntroText/IntroFile (from Delivery metadata).
- JsonRenderer String
- Select JSON renderer for fenced JSON blocks: Auto, Spectre, or System.
- Possible values:
Auto,Spectre,System - License SwitchParameter
- Show LICENSE.*.
- Links SwitchParameter
- Show configured ImportantLinks from Delivery metadata.
- List SwitchParameter
- List discovered documentation files (without rendering).
- Name String
- Module name to display documentation for.
- Online SwitchParameter
- Enable repository access for remote documentation fallback and repository path enumeration.
- PreferInternals SwitchParameter
- Prefer Internals folder over module root when both contain the same file kind.
- Raw SwitchParameter
- Print raw file content without Markdown rendering.
- Readme SwitchParameter
- Show README.*.
- RepositoryBranch String
- Branch name to use when fetching remote docs. If omitted, the provider default branch is used.
- RepositoryPaths String[]
- Repository-relative folders to enumerate and display (e.g., 'docs', 'articles'). Only .md/.markdown/.txt files are rendered.
- RepositoryToken String
- Personal Access Token for private repositories. Env fallbacks: PG_GITHUB_TOKEN/GITHUB_TOKEN or PG_AZDO_PAT/AZURE_DEVOPS_EXT_PAT.
- RequiredVersion Version
- Exact version to select when multiple module versions are installed.
- Type DocumentationSelection
- 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
- Show configured UpgradeText/UpgradeFile (from Delivery metadata or UPGRADE.*).
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 <Default>] [-Upgrade] [<CommonParameters>]#ByModuleParameters
- All SwitchParameter
- Convenience switch to show Intro, README, CHANGELOG and LICENSE in order.
- Changelog SwitchParameter
- Show CHANGELOG.*.
- DefaultCodeLanguage String
- Default language for unlabeled code fences (Auto, PowerShell, Json, None).
- Possible values:
Auto,PowerShell,Json - File String
- Show a specific file by name (relative to module root or Internals) or full path.
- Intro SwitchParameter
- Show configured IntroText/IntroFile (from Delivery metadata).
- JsonRenderer String
- Select JSON renderer for fenced JSON blocks: Auto, Spectre, or System.
- Possible values:
Auto,Spectre,System - License SwitchParameter
- Show LICENSE.*.
- Links SwitchParameter
- Show configured ImportantLinks from Delivery metadata.
- List SwitchParameter
- List discovered documentation files (without rendering).
- Module PSModuleInfo
- Module object to display documentation for. Alternative to -Name.
- Online SwitchParameter
- Enable repository access for remote documentation fallback and repository path enumeration.
- PreferInternals SwitchParameter
- Prefer Internals folder over module root when both contain the same file kind.
- Raw SwitchParameter
- Print raw file content without Markdown rendering.
- Readme SwitchParameter
- Show README.*.
- RepositoryBranch String
- Branch name to use when fetching remote docs. If omitted, the provider default branch is used.
- RepositoryPaths String[]
- Repository-relative folders to enumerate and display (e.g., 'docs', 'articles'). Only .md/.markdown/.txt files are rendered.
- RepositoryToken String
- Personal Access Token for private repositories. Env fallbacks: PG_GITHUB_TOKEN/GITHUB_TOKEN or PG_AZDO_PAT/AZURE_DEVOPS_EXT_PAT.
- RequiredVersion Version
- Exact version to select when multiple module versions are installed.
- Type DocumentationSelection
- 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
- Show configured UpgradeText/UpgradeFile (from Delivery metadata or UPGRADE.*).
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 <Default>] [-Upgrade] [<CommonParameters>]#ByPathParameters
- All SwitchParameter
- Convenience switch to show Intro, README, CHANGELOG and LICENSE in order.
- Changelog SwitchParameter
- Show CHANGELOG.*.
- DefaultCodeLanguage String
- Default language for unlabeled code fences (Auto, PowerShell, Json, None).
- Possible values:
Auto,PowerShell,Json - DocsPath String
- Direct path to a documentation folder containing README/CHANGELOG/etc.
- File String
- Show a specific file by name (relative to module root or Internals) or full path.
- Intro SwitchParameter
- Show configured IntroText/IntroFile (from Delivery metadata).
- JsonRenderer String
- Select JSON renderer for fenced JSON blocks: Auto, Spectre, or System.
- Possible values:
Auto,Spectre,System - License SwitchParameter
- Show LICENSE.*.
- Links SwitchParameter
- Show configured ImportantLinks from Delivery metadata.
- List SwitchParameter
- List discovered documentation files (without rendering).
- Online SwitchParameter
- Enable repository access for remote documentation fallback and repository path enumeration.
- PreferInternals SwitchParameter
- Prefer Internals folder over module root when both contain the same file kind.
- Raw SwitchParameter
- Print raw file content without Markdown rendering.
- Readme SwitchParameter
- Show README.*.
- RepositoryBranch String
- Branch name to use when fetching remote docs. If omitted, the provider default branch is used.
- RepositoryPaths String[]
- Repository-relative folders to enumerate and display (e.g., 'docs', 'articles'). Only .md/.markdown/.txt files are rendered.
- RepositoryToken String
- Personal Access Token for private repositories. Env fallbacks: PG_GITHUB_TOKEN/GITHUB_TOKEN or PG_AZDO_PAT/AZURE_DEVOPS_EXT_PAT.
- Type DocumentationSelection
- 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
- Show configured UpgradeText/UpgradeFile (from Delivery metadata or UPGRADE.*).
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 <Default>] [-Upgrade] [<CommonParameters>]#ByBaseParameters
- All SwitchParameter
- Convenience switch to show Intro, README, CHANGELOG and LICENSE in order.
- Changelog SwitchParameter
- Show CHANGELOG.*.
- DefaultCodeLanguage String
- Default language for unlabeled code fences (Auto, PowerShell, Json, None).
- Possible values:
Auto,PowerShell,Json - File String
- Show a specific file by name (relative to module root or Internals) or full path.
- Intro SwitchParameter
- Show configured IntroText/IntroFile (from Delivery metadata).
- JsonRenderer String
- Select JSON renderer for fenced JSON blocks: Auto, Spectre, or System.
- Possible values:
Auto,Spectre,System - License SwitchParameter
- Show LICENSE.*.
- Links SwitchParameter
- Show configured ImportantLinks from Delivery metadata.
- List SwitchParameter
- List discovered documentation files (without rendering).
- ModuleBase String
- Path to a module root (folder that contains the module manifest). Useful for unpacked builds.
- Online SwitchParameter
- Enable repository access for remote documentation fallback and repository path enumeration.
- PreferInternals SwitchParameter
- Prefer Internals folder over module root when both contain the same file kind.
- Raw SwitchParameter
- Print raw file content without Markdown rendering.
- Readme SwitchParameter
- Show README.*.
- RepositoryBranch String
- Branch name to use when fetching remote docs. If omitted, the provider default branch is used.
- RepositoryPaths String[]
- Repository-relative folders to enumerate and display (e.g., 'docs', 'articles'). Only .md/.markdown/.txt files are rendered.
- RepositoryToken String
- Personal Access Token for private repositories. Env fallbacks: PG_GITHUB_TOKEN/GITHUB_TOKEN or PG_AZDO_PAT/AZURE_DEVOPS_EXT_PAT.
- Type DocumentationSelection
- 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
- Show configured UpgradeText/UpgradeFile (from Delivery metadata or UPGRADE.*).