Cmdlet
Start-ConsoleDemo
Presents a scripted demo one command at a time in a real shell.
Syntax
Start-ConsoleDemo
[-Height <Int32>]
[-IdleLimit <Double>]
[-Path] <String>
[-Record <String>]
[-Redact <String[]>]
[-Seed <Int32>]
[-Shell <String>]
[-StepTimeoutSeconds <Int32>]
[-Width <Int32>]
[<CommonParameters>]#Parameter set:
All Parameter SetsDescription
Enter types and runs; Space types without running; b moves back without undoing side effects; s skips; q quits. The terminal title shows the step counter. Optional -Record saves the same child output as asciicast; without it temporary capture files are removed on exit. Stop or cancellation terminates only the owned child and restores the title.
Examples
Example 1
Start-ConsoleDemo -Path ./demo.ps1 -Record ./talk.castPresent and record
Parameters
- -Height Int32
- Terminal height in cells.
- -IdleLimit Double
- Longest recorded idle gap in seconds; zero preserves actual timing.
- -Path String
- Plain PowerShell demo file with optional # demo: directives.
- -Record String
- Optional asciicast recording path.
- -Redact String[]
- Output patterns redacted before recording.
- -Seed Int32
- Seed for repeatable character timing.
- -Shell String
- Child PowerShell executable. Defaults to the current PowerShell.
- -StepTimeoutSeconds Int32
- Maximum wait for a semantic prompt or output pattern.
- -Width Int32
- 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.