Skip to content

create-video: Add --yes flag for non-interactive mode#6884

Merged
JonnyBurger merged 4 commits intomainfrom
feature/create-video-yes-flag
Mar 20, 2026
Merged

create-video: Add --yes flag for non-interactive mode#6884
JonnyBurger merged 4 commits intomainfrom
feature/create-video-yes-flag

Conversation

@JonnyBurger
Copy link
Copy Markdown
Member

Summary

  • Adds --yes (-y) flag to npx create-video for fully non-interactive project scaffolding
  • When --yes is used: installs TailwindCSS by default (disable with --no-tailwind), skips agent skills, skips editor opening, fails hard if inside an existing Git repo
  • Requires a template flag (e.g. --blank) and a directory argument when using --yes
  • Adds a dedicated docs page for npx create-video under CLI Reference in the sidebar

Closes #6880

Test plan

  • Run npx create-video --yes --blank my-video outside a git repo — should scaffold with Tailwind, no prompts
  • Run npx create-video --yes --blank --no-tailwind my-video — should scaffold without Tailwind
  • Run npx create-video --yes --blank --tmp — should scaffold in a temp directory
  • Run npx create-video --yes --blank my-video inside a git repo — should fail with error
  • Run npx create-video --yes my-video without a template flag — should fail with error
  • Run npx create-video --yes --blank without a directory — should fail with error
  • Run npx create-video (no flags) — interactive mode should work as before
  • Verify docs page renders correctly at /docs/cli/create-video

🤖 Generated with Claude Code

Adds `--yes` (`-y`) and `--no-tailwind` flags to `npx create-video` so it can be used non-interactively (e.g. by AI agents like Claude Code).

When `--yes` is used:
- TailwindCSS is installed by default (skip with `--no-tailwind`)
- Agent skills are not installed
- Editor is not opened
- Fails hard if already inside a Git repo
- Requires a template flag and directory argument

Also adds a dedicated docs page for `npx create-video` under CLI Reference.

Closes #6880

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Mar 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
bugs Ready Ready Preview, Comment Mar 20, 2026 10:29am
remotion Ready Ready Preview, Comment Mar 20, 2026 10:29am

Request Review

@JonnyBurger JonnyBurger changed the title create-video: Add --yes flag for non-interactive mode create-video: Add --yes flag for non-interactive mode Mar 20, 2026
…tags

- Move non-interactive examples into a dedicated "Non-interactive mode" section for linkability
- Explain that agent skills can be installed manually via `npx skills add remotion-dev/skills`
- Add AvailableFrom v4.0.439 tags to --yes, -y, and --no-tailwind flags

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Use CreateVideoInternals.FEATURED_TEMPLATES to render the list of
available template flags instead of hardcoding them.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Link --no-tailwind reference to its flag section
- Link skills command to /docs/cli/skills
- Add AvailableFrom v4.0.214 to --tmp flag

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@pullfrog pullfrog bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The implementation is solid. All scenarios from the test plan are handled correctly:

  • --yes with --tmp and a directory argument: --tmp takes precedence (directory is ignored) - acceptable edge case
  • --yes without template: throws descriptive error
  • --yes without directory (and no --tmp): throws descriptive error
  • --yes inside git repo: throws descriptive error
  • Tailwind default with --yes: enabled by default, disabled with --no-tailwind
  • Skills/editor: skipped when --yes is used

The documentation is accurate, version constraints are correct (4.0.439 based on current 4.0.438), and code follows existing patterns.

One minor suggestion: isFlagSelected (line 35-37) is evaluated once at module load time, unlike the other flag check functions which are methods. Consider making it a function for API consistency.

Pullfrog  | Fix it ➔View workflow runpullfrog.com𝕏

@JonnyBurger JonnyBurger merged commit 8279346 into main Mar 20, 2026
19 checks passed
@JonnyBurger JonnyBurger deleted the feature/create-video-yes-flag branch March 20, 2026 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a non-interactive mode for npx create-video

1 participant