Back to Help

cli

Using SlideVids CLI With Codex

Codex-oriented workflow templates for prompt-to-command execution.

Audience: developer
Use the SlideVids CLI and execute cautiously.
Goal: render timeline tmpl_123 and save output to ./artifacts/render.mp4.
Requirements:
- Print each command before execution.
- Verify auth first.
- Use --json where useful.
- Stop and summarize on failure.

Execution Template

slidevids whoami --json
slidevids timelines get tmpl_123 --json
slidevids renders create --timeline-id tmpl_123 --no-wait --json
slidevids renders wait render_xxx --interval 3 --timeout 900 --json
slidevids renders download render_xxx --output ./artifacts/render.mp4

Codex Reliability Tips

  1. Request explicit timeout/retry behavior before execution.
  2. Keep commands idempotent where possible.
  3. Persist terminal output for debugging in CI artifacts.

Canonical deck workflow, 1.1.0

CLI 1.1.0 is published on npm and includes the native deck commands below. Upgrade from 1.0.2 with npm install -g @slidevids/[email protected]. Existing v1 commands remain available.

Work through Properties, Slides and Preview. Native deck commands use JWT login and UUIDs; API-key-only users retain v1 decks get/save with public IDs and snake_case request files. Native request files use camelCase.

# Replace TIMELINE_UUID with the owned UUID returned by decks create.
slidevids decks create --file create.json --json
slidevids decks open TIMELINE_UUID --json
slidevids decks properties TIMELINE_UUID --json
slidevids decks profiles TIMELINE_UUID --json
slidevids decks set-properties TIMELINE_UUID --file properties.json --json
slidevids decks set-settings TIMELINE_UUID --file settings.json --json
slidevids decks write TIMELINE_UUID --file save.json --json
slidevids decks generate TIMELINE_UUID --file save.json --receipt generation.json --no-wait --json
slidevids decks generate TIMELINE_UUID --receipt generation.json --resume --json
slidevids decks state TIMELINE_UUID --json
slidevids decks history TIMELINE_UUID --json

Create files contain requestId, title and description. A save file contains a retained requestId, the expectedRevisionId you read, and the complete returned envelope. Preserve Notes, asset references, font substitutions, narration identity and timing in milliseconds. Properties/settings writes require expectedHash from their respective reads. Read the configured profile identity rather than selecting a hardcoded voice.

Saved deck width/height supports 16:9, 4:3 and 9:16 separately from legacy landscape/portrait format. New output choices are 720p, 1080p or 4K with H.264, H.265 or ProRes where entitled. Historical 540p remains readable. ProRes downloads use MOV.

A receipt contains unpublished deck content; keep it private. Resume the same receipt after interruption. Missing receipts after a prior submission attempt fail closed because queue retention may have expired. Failed jobs are never automatically restarted. Review jobs/history before starting a new operation. Conflicts and auth/tier/quota errors exit nonzero without automatic overwrite or retry.

Use decks download TIMELINE_UUID JOB_UUID for authenticated private output and decks export TIMELINE_UUID --revision REVISION_UUID for pinned PPTX export, followed by export-status/export-download. Downloads refuse redirects and existing destination files.

PPTX import uses import-upload, import-report, import-prepare and import-commit. Preparation requires an externally prepared SlideKit document because conversion currently runs in the browser. Review report warnings and font substitutions, then submit the reviewed report hash and explicit acknowledgments. Upload alone does not convert the file.

Create, save, generate, export and download never publish. Only decks share TIMELINE_UUID --render-id JOB_UUID --confirm or explicit re-share publishes a pinned completed output. decks revoke TIMELINE_UUID revokes it. Later draft edits do not change the published pin.

Run slidevids --help for the full native command map. The source repository’s docs/cli-canonical-contracts.md documents exact routes, payloads, compatibility and remaining contract gaps. Legacy renders create remains the prepared-audio workflow; it does not perform canonical combined generation.