create-video: Add --yes flag for non-interactive mode#6884
Merged
JonnyBurger merged 4 commits intomainfrom Mar 20, 2026
Merged
Conversation
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>
create-video: Add --yes flag for non-interactive mode
…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>
Contributor
There was a problem hiding this comment.
The implementation is solid. All scenarios from the test plan are handled correctly:
--yeswith--tmpand a directory argument:--tmptakes precedence (directory is ignored) - acceptable edge case--yeswithout template: throws descriptive error--yeswithout directory (and no--tmp): throws descriptive error--yesinside git repo: throws descriptive error- Tailwind default with
--yes: enabled by default, disabled with--no-tailwind - Skills/editor: skipped when
--yesis 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
--yes(-y) flag tonpx create-videofor fully non-interactive project scaffolding--yesis used: installs TailwindCSS by default (disable with--no-tailwind), skips agent skills, skips editor opening, fails hard if inside an existing Git repo--blank) and a directory argument when using--yesnpx create-videounder CLI Reference in the sidebarCloses #6880
Test plan
npx create-video --yes --blank my-videooutside a git repo — should scaffold with Tailwind, no promptsnpx create-video --yes --blank --no-tailwind my-video— should scaffold without Tailwindnpx create-video --yes --blank --tmp— should scaffold in a temp directorynpx create-video --yes --blank my-videoinside a git repo — should fail with errornpx create-video --yes my-videowithout a template flag — should fail with errornpx create-video --yes --blankwithout a directory — should fail with errornpx create-video(no flags) — interactive mode should work as before/docs/cli/create-video🤖 Generated with Claude Code