| name | setup |
| description | Use when initializing a new Remotion project or adding Remotion to an existing project. Triggers on "set up Remotion", "create a new Remotion project", "initialize Remotion", "add Remotion to my app", or when needing Remotion project configuration. |
Remotion Setup
Initializes a new Remotion project or adds Remotion to an existing React project with proper configuration.
Usage
/remotion-max:setup
/remotion-max:setup --new-project my-video
/remotion-max:setup --add-to-existing
/remotion-max:setup --quick
Arguments received: $ARGUMENTS
What This Command Does
For New Projects
- Checks environment: Verifies Node.js and npm versions
- Creates project: Runs
npm init video or equivalent
- Configures tooling: Sets up TypeScript, ESLint
- Installs extras: Optional packages (Tailwind, Three.js, Lottie)
- Sets up structure: Creates recommended directories
For Existing Projects
- Installs Remotion: Adds core packages
- Adds scripts: Updates package.json
- Creates Root.tsx: Sets up composition registry
- Configures remotion.config.ts: Basic configuration
- Updates tsconfig: TypeScript settings
Project Structure Created
my-video/
├── src/
│ ├── Root.tsx # Composition registry
│ ├── compositions/ # Video compositions
│ │ └── Main.tsx
│ ├── components/ # Reusable components
│ ├── utils/ # Helper functions
│ └── assets/ # Media files
│ ├── images/
│ ├── videos/
│ └── audio/
├── public/
├── package.json
├── remotion.config.ts
└── tsconfig.json
Optional Packages
The command can install:
Essential:
remotion - Core library
@remotion/cli - Command-line tools
react and react-dom - React
Media:
@remotion/media-utils - Audio/video utilities
@remotion/captions - Subtitle support
3D & Animation:
@remotion/three - Three.js integration
@remotion/lottie - Lottie animations
Styling:
tailwindcss - Utility CSS
autoprefixer and postcss - CSS processing
Cloud:
@remotion/lambda - AWS Lambda rendering
Configuration Files
package.json Scripts
{
"scripts": {
"start": "remotion studio",
"build": "remotion render Main out/video.mp4",
"upgrade": "remotion upgrade",
"server": "remotion server"
}
}
remotion.config.ts
import {Config} from '@remotion/cli/config';
Config.setVideoImageFormat('jpeg');
Config.setOverwriteOutput(true);
Config.setConcurrency(50);
Config.setCodec('h264');
tsconfig.json
{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"jsx": "react-jsx",
"strict": true
}
}
Interactive Setup Flow
When run without flags, the command asks:
-
New or existing project?
- Create new
- Add to existing
-
Project name?
-
Additional packages?
- Tailwind CSS
- Three.js
- Lottie
- Captions
-
Video defaults?
- Resolution (1920x1080, 1280x720, etc.)
- FPS (30, 60)
- Duration
Verification Steps
After setup completes:
- Dependencies installed
- Scripts available
- TypeScript configured
- Studio runs:
npm start
- Can render:
npm run build
Examples
New Project with Tailwind
/remotion-max:setup --new-project social-media-video
Add to Existing Next.js Project
/remotion-max:setup --add-to-existing
Troubleshooting
The command handles:
- Node version too old: Suggests upgrade
- Port conflict: Uses alternative port
- TypeScript errors: Fixes tsconfig
- Missing dependencies: Installs automatically
After Setup
Run these to verify:
npm start
npm run build
Then you can:
- Explore the studio UI
- Modify compositions
- Add your own components
- Start building your video!