Skip to content
ConsoleMonster
Cmdlet

Invoke-ConsoleDemo

Module
ConsoleMonster
Inputs
None
Outputs
System.IO.FileInfo

Types a scripted PowerShell demo into a real terminal and records it.

Syntax

Invoke-ConsoleDemo
[-Destination] <String>
[-Height <Int32>]
[-IdleLimit <Double>]
[-Path] <String>
[-Redact <String[]>]
[-Seed <Int32>]
[-Shell <String>]
[-StepTimeoutSeconds <Int32>]
[-Width <Int32>]
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

Runs plain PowerShell with optional chapter, pause, setup, type-only, narration, WPM and output-wait directives. Uses OSC 133 readiness marks independent of visible prompt text and operating system. Character jitter uses a fixed seed; use fixed data and environment for repeatable output.

Examples

Example 1

Invoke-ConsoleDemo -Path ./demo.ps1 -Destination ./talk.cast -Seed 42

Record a talk

Parameters

-Destination String requiredposition: 1
Destination asciicast v2 recording. Existing recordings are never overwritten.
-Height Int32 optional
Terminal height in cells.
-IdleLimit Double optional
Longest recorded idle gap in seconds; zero preserves actual timing.
-Path String requiredposition: 0
Plain PowerShell demo file with optional # demo: directives.
-Redact String[] optional
Output patterns redacted before recording.
-Seed Int32 optional
Seed for repeatable character timing.
-Shell String optional
Child PowerShell executable. Defaults to the current PowerShell.
-StepTimeoutSeconds Int32 optional
Maximum wait for a semantic prompt or output pattern.
-Width Int32 optional
Terminal width in cells.

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.