Skip to content

slidestage-pack · cli-reference

slidestage-pack CLI Reference

Mirrored docs keep the language used by their source repo. Site chrome stays in your selected language.

slidestage-pack converts HTML decks, HTML files, zips, or existing .stage files into verified .stage packages.

Recommended flow:

detect -> pack -> verify

detect

node scripts/detect_framework.mjs <source>

Returns the detected kind, root HTML, hints, and recommended mode.

pack

node scripts/pack_stage.mjs \
  --src ./my-deck \
  --out ./my-deck.stage

Common options:

OptionPurpose
--srcSource folder, HTML, zip, or .stage.
--outOutput .stage path.
--modesplit, wrap, single, or passthrough.
--titleOverride manifest title.
--authorSet manifest author.
--idOverride manifest id.
--versionOverride manifest version.
--thumbnailsGenerate thumbnails with Playwright.
--fallbackAdd local fallback playback files.
--strictTreat warnings as errors.
--strict-schemaValidate with @slidestage/spec.
--use-coreDelegate to @slidestage/core/converter.

verify

node scripts/verify_stage.mjs ./my-deck.stage

Verification checks archive structure, manifest fields, paths, slide files, size limits, and slide ordering.

Modes

  • split: one HTML file per slide.
  • wrap: preserve source runtime.
  • single: plain HTML as one slide.
  • passthrough: validate/re-emit existing .stage.

Use automatic mode unless you know the tradeoff.

Reporting

After packing, report output path, size, SHA-256, slide count, source kind, mode, and warnings.