Export-ConsoleRecording
Exports a dashboard recording to an HTML player, an animated SVG or asciicast.
Syntax
Export-ConsoleRecording [-Dashboard] <IWidget> [[-Destination] <String>] [-Format <Html|Svg|Asciicast|PlayerData>] [-FramesPerSecond <Double>] [-Height <Int32>] [-PassThru] [-Path] <String> [-Speed <Double>] [-Theme <Auto|Dark|Light>] [-Title <String>] [-Width <Int32>] [-WindowChrome] [<CommonParameters>]#All Parameter SetsDescription
Exports a dashboard recording to an HTML player, an animated SVG or asciicast.
Recordings (written by Start-ConsoleDashboard -RecordPath) hold updates, not pictures, so they are played into the same dashboard definition at a fixed size and frame rate. Html writes a self-contained page with a small player (play/pause, speed, scrubbing; add #t=30000 to the address to open at 30 seconds). Svg writes an animated image with CSS keyframes and no script, for READMEs. Asciicast writes asciicast v3 for asciinema and other players (output events only). Identical frames are merged; a long recording is sampled less often.
Examples
EXAMPLE 1
Export-ConsoleRecording -Dashboard 'Value' -Path 'C:\Path'Parameters
- -Dashboard IWidget
- The dashboard (or widget tree) the recording was made with.
- -Destination String
- The file to write. Without it the document goes to the pipeline.
- -Format String
- Html, Svg, Asciicast or PlayerData (default: from the -Destination extension, .json for PlayerData, else Html). PlayerData is the JSON the native player script plays, for sites that include the script once (see ConsoleExporter.PlayerScript).
- Possible values:
Html,Svg,Asciicast,PlayerData - -FramesPerSecond Double
- Frames per second sampled from the recording (default 10).
- -Height Int32
- Screen height in cells (default 30).
- -PassThru SwitchParameter
- With -Destination, also writes the file to the pipeline.
- -Path String
- The recording (.jsonl).
- -Speed Double
- Playback speed baked into the export (default 1).
- -Theme ExportTheme
- Dark (default) or Light.
- Possible values:
Auto,Dark,Light - -Title String
- The title (page title, title bar, asciicast title).
- -Width Int32
- Screen width in cells (default 100).
- -WindowChrome SwitchParameter
- Draws a window frame with a title bar (Html and Svg).
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.