Skip to content
ConsoleMonster
Cmdlet

Show-ConsoleHelp

Module
ConsoleMonster
Inputs
System.Management.Automation.PSObject
Outputs
System.String

Shows a command's help: synopsis, highlighted syntax, a parameter table and highlighted examples.

Syntax

Show-ConsoleHelp
[-AsWidget]
[[-Name] <PSObject>]
[-NoExamples]
[-NoPager]
[-NoParameters]
[-Width <Int32>]
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

Reads the available Get-Help -Full content, including cmdlet help files, comment-based help and PowerShell's generated help. It includes syntax by parameter set, parameter details, highlighted PowerShell examples, inputs, outputs, notes and related links. About topics use the shared Markdown reader, retaining literal HTML and safe link handling. The help is available in Windows PowerShell 5.1 and PowerShell 7.

Help viewer -----------

On an interactive terminal, help longer than the screen can open a document viewer. The Overview, Parameters, Examples and Related tabs organize the help. Use the outline and folding sections to navigate, / to find text, or Ctrl+K to jump to a section or parameter. Open related command help in the same viewer and use Alt+Left or Alt+Right to move through the history. Press q to close the viewer and return to PowerShell.

Direct help output ------------------

NoPager writes the help directly. When you pipe the output to another command such as more, Out-Host -Paging or Out-File, it emits plain lines suitable for that destination.

Examples

Example 1

$helpOptions = @{
    Name = 'Get-ChildItem'
}
Show-ConsoleHelp @helpOptions

A cmdlet

Example 2

$helpOptions = @{
    AsWidget = $true
    Name = 'Show-ConsoleTable'
}
Show-ConsoleHelp @helpOptions | Export-ConsoleFrame -Format Text

Through a pager

Parameters

-AsWidget SwitchParameter optional
Returns the view widget without drawing or acquiring input.
-Name PSObject optionalposition: 0pipeline: True (ByValue)
The command (a cmdlet, function, alias or script path), or an about topic.
-NoExamples SwitchParameter optional
Leaves out the examples.
-NoPager SwitchParameter optional
Writes the help to the console instead of opening the document viewer, also on an interactive terminal.
-NoParameters SwitchParameter optional
Leaves out the detailed parameter reference.
-Width Int32 optional
The width in columns (default: the console's width).

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.