npx remotion addv4.0.368
Adds one or more Remotion packages to your project with the same version as your other Remotion packages.
Also supports adding auxiliary packages such as zod, mediabunny, and @huggingface/transformers with the recommended version for your Remotion installation.
npx remotion add <package-name...>Examples
Add a single package:
npx remotion add @remotion/transitionsAdd multiple packages at once:
npx remotion add @remotion/transitions @remotion/three @remotion/lottieThis command will:
- Verify that all package names are valid Remotion packages or supported auxiliary packages
- Check which packages are already installed (and skip them)
- Detect the version of your currently installed Remotion packages
- Install the specified packages with the matching version
Flags
--package-managerv4.0.367
Forces a specific package manager to be used. By default, Remotion will auto-detect the package manager based on your lockfile.Acceptable values are
npm, yarn, pnpm, bun and nub.
--config
Specify a location for the Remotion config file.
--log
One of trace, verbose, info, warn, error.Determines how much info is being logged to the console.
Default
info.
Package manager support
npm, yarn and pnpm are all supported.
Additional arguments
Put package-manager flags and their values after --. Remotion forwards them in order before the packages it installs.
npx remotion add @remotion/transitions -- --ignore-scriptsUse case
This command is useful when you want to add new Remotion packages to your project and ensure they're installed with the same version as your other Remotion packages. This helps avoid version mismatches that could cause compatibility issues.
For example, if you have remotion@4.0.100 installed and you want to add @remotion/transitions, running npx remotion add @remotion/transitions will install @remotion/transitions@4.0.100.
When adding multiple packages, the command will install all of them in a single operation with the same version number.