Skip to content

🎥 Make videos programmatically with React

Remove Fig.io autocomplete from monorepo

Jonny Burgerde6cdd9af74c
diff --git a/packages/cli-autocomplete/.gitignore b/packages/cli-autocomplete/.gitignore
deleted file mode 100644
index 95962ac594..0000000000
--- a/packages/cli-autocomplete/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-src/generatedCompletionSpec.ts
diff --git a/packages/cli-autocomplete/.prettierrc.js b/packages/cli-autocomplete/.prettierrc.js
deleted file mode 100644
index c2154fd187..0000000000
--- a/packages/cli-autocomplete/.prettierrc.js
+++ /dev/null
@@ -1,6 +0,0 @@
-// eslint-disable-next-line no-undef
-module.exports = {
- printWidth: 80,
- trailingComma: "es5",
- useTabs: true,
-};
diff --git a/packages/cli-autocomplete/README.md b/packages/cli-autocomplete/README.md
deleted file mode 100644
index 9e85b5e44e..0000000000
--- a/packages/cli-autocomplete/README.md
+++ /dev/null
@@ -1,5 +0,0 @@
-# @remotion/cli-autocomplete
-
-## Usage
-
-This is an internal package and has no documentation.
diff --git a/packages/cli-autocomplete/eslint.config.mjs b/packages/cli-autocomplete/eslint.config.mjs
deleted file mode 100644
index 123ea81db8..0000000000
--- a/packages/cli-autocomplete/eslint.config.mjs
+++ /dev/null
@@ -1,16 +0,0 @@
-import { dirname } from "path";
-import { fileURLToPath } from "url";
-import { FlatCompat } from "@eslint/eslintrc";
-
-const __filename = fileURLToPath(import.meta.url);
-const __dirname = dirname(__filename);
-
-const compat = new FlatCompat({
- baseDirectory: __dirname,
-});
-import { config } from "@remotion/eslint-config-flat";
-
-export default [
- ...config,
- ...compat.extends("plugin:@withfig/fig-linter/recommended"),
-];
diff --git a/packages/cli-autocomplete/package.json b/packages/cli-autocomplete/package.json
deleted file mode 100644
index 12e2223f84..0000000000
--- a/packages/cli-autocomplete/package.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "repository": {
- "url": "https://github.com/remotion-dev/remotion/tree/main/packages/cli-autocomplete"
- },
- "version": "4.0.273",
- "name": "@remotion/fig-autocomplete",
- "private": true,
- "devDependencies": {
- "@fig/eslint-config-autocomplete": "1.2.1",
- "@withfig/autocomplete-types": "^1.20.0",
- "@remotion/renderer": "workspace:*",
- "eslint": "9.19.0"
- },
- "scripts": {
- "formatting": "prettier src --check",
- "make": "bun src/generate.ts"
- }
-}
diff --git a/packages/cli-autocomplete/src/generate.ts b/packages/cli-autocomplete/src/generate.ts
deleted file mode 100644
index 74de8b8857..0000000000
--- a/packages/cli-autocomplete/src/generate.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-// eslint-disable-next-line @withfig/fig-linter/no-missing-default-export
-import { execSync } from "child_process";
-import completionSpec from "./source";
-import { writeFileSync } from "fs";
-
-const stringified = JSON.stringify(completionSpec, null, 2);
-const output = `const completionSpec: Fig.Spec = ${stringified}; export default completionSpec;`;
-
-writeFileSync("src/generatedCompletionSpec.ts", output);
-
-execSync("bun x prettier --write src/generatedCompletionSpec.ts");
diff --git a/packages/cli-autocomplete/src/source.ts b/packages/cli-autocomplete/src/source.ts
deleted file mode 100644
index 197aeda244..0000000000
--- a/packages/cli-autocomplete/src/source.ts
+++ /dev/null
@@ -1,991 +0,0 @@
-import { uniqueOptions } from "./unique-options";
-import { RenderInternals } from "@remotion/renderer";
-import { BrowserSafeApis } from "@remotion/renderer/client";
-
-const alwaysOptions: Fig.Option[] = [
- {
- name: "--quiet",
- description: "Print less output",
- },
- {
- name: "-q",
- description: "Print less output",
- },
- {
- name: "--log",
- description: 'Log level, "error", "warning", "verbose", "info" (default)',
- args: {
- default: "info",
- suggestions: RenderInternals.logLevels.map((l) => {
- return {
- name: l,
- };
- }),
- },
- },
- {
- name: "--config",
- description: "Custom location for a Remotion config file",
- args: {
- template: "filepaths",
- },
- },
-];
-
-const propsOption: Fig.Option = {
- name: "--props",
- description: "Pass input props as filename or as JSON",
- args: {
- template: ["filepaths"],
- suggestions: [
- {
- type: "arg",
- displayName: "[json string]",
- insertValue: "'{cursor}'",
- },
- ],
- },
-};
-
-const envOption: Fig.Option = {
- name: "--env-file",
- description: "Specify a location for a dotenv file",
- args: {
- template: "filepaths",
- },
-};
-
-const chromeOptions: Fig.Option[] = [
- {
- name: "--disable-headless",
- description: "Run Chrome in normal mode rather than headless",
- },
- {
- name: "--gl",
- description: "Which OpenGL renderer to use",
- args: {
- suggestions: ["angle", "egl", "swiftshader", "swangle", "vulkan"],
- },
- },
- {
- name: "--user-agent",
- description: "User agent to use for Chrome during rendering",
- },
- {
- name: "--ignore-certificate-errors",
- description: "Ignore SSL errors",
- },
- {
- name: "--disable-web-security",
- description: "Disable CORS and other web security features",
- },
-];
-const compositionsOptions: Fig.Option[] = [
- propsOption,
- envOption,
- ...chromeOptions,
-];
-
-const localRenderAndStillOptions: Fig.Option[] = [
- envOption,
- {
- name: "--overwrite",
- description: "Overwrite if file exists, default true",
- },
- {
- name: "--browser-executable",
- description: "Custom path for browser executable",
- args: {
- template: "filepaths",
- },
- },
- {
- name: "--enable-extensions",
- description: "Enable Chrome browser extensions while rendering",
- },
- {
- name: "--ffmpeg-executable",
- description: "Custom path for FFmpeg executable",
- args: {
- template: "filepaths",
- },
- },
- {
- name: "--ffprobe-executable",
- description: "Custom path for FFProbe executable",
- args: {
- template: "filepaths",
- },
- },
- {
- name: "--bundle-cache",
- description: "Cache webpack bundle, boolean, default true",
- },
- {
- name: "--port",
- description: "Custom port to use for the HTTP server",
- args: {
- name: "port",
- default: "3333",
- },
- },
- {
- name: "--public-dir",
- description: "Location of the public/ directory",
- args: {
- template: "folders",
- },
- },
- propsOption,
- ...chromeOptions,
-];
-
-const lambdaRenderAndStillOptions: Fig.Option[] = [
- {
- name: "--max-retries",
- description:
- "How many times a chunk can be retried before the render times out",
- args: {
- name: "numberOfRetries",
- },
- },
- {
- name: "--privacy",
- args: {
- name: "privacy",
- default: "public",
- suggestions: ["public", "private"],
- },
- },
- {
- name: "--frames-per-lambda",
- description: "How many frames should be rendered per chunk",
- args: {
- name: "framesPerLambda",
- },
- },
- propsOption,
- ...chromeOptions,
-];
-
-const lambdaRenderOptions: Fig.Option[] = [
- {
- name: "--concurrency-per-lambda",
- description: "Concurrency with which each Lambda function should render",
- args: {
- name: "concurrencyPerLambda",
- },
- },
- {
- name: "--overwrite",
- description: "Overwrite a video if it already exists in the S3 bucket",
- },
- {
- name: "--function-name",
- description: "Name of the function that should be invoked",
- },
- {
- name: "--renderer-function-name",
- description:
- "Use a different function to render the video. By default, use the same function as the one to start the render",
- },
-];
-
-const localRenderOptions: Fig.Option[] = [
- {
- name: "--sequence",
- description: "Output as an image sequence",
- },
- {
- name: "--concurrency",
- description: "How many frames to render in parallel",
- },
- {
- name: "--enforce-audio-track",
- description: "Include an audio track even if it's silent",
- },
- {
- name: "--muted",
- description: "Mute the output video",
- },
- {
- name: "--repro",
- description:
- "Collect information that you can submit to Remotion if asked for a reproduction",
- },
-];
-
-const stillOptions: Fig.Option[] = [
- {
- name: "--frame",
- description: "Which frame to render (default 0)",
- args: { name: "frame", default: "0" },
- },
- {
- name: "--height",
- description: "Override the composition height",
- args: { name: "height" },
- },
- {
- name: "--width",
- description: "Override the composition width",
- args: { name: "height" },
- },
-];
-
-const renderOptions: Fig.Option[] = [
- ...chromeOptions,
- {
- name: "--timeout",
- description:
- "The time in milisecond that a delayRender() may take before it times out",
- },
- {
- name: "--quality",
- description: "Quality for rendered frames, JPEG only, 0-100",
- args: {
- default: "80",
- suggestions: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100].map((e) => ({
- name: e.toString(),
- })),
- },
- },
- {
- name: "--scale",
- description: "Upscale or downscale or the dimensions of the video",
- args: {
- default: "1",
- suggestions: [0.25, 0.5, 1, 1.5, 2, 4].map((e) => ({
- name: e.toString(),
- })),
- },
- },
- {
- name: "--codec",
- description: "Video or audio codec",
- args: {
- default: "h264",
- suggestions: [
- { name: "h264" },
- { name: "h265" },
- { name: "gif" },
- { name: "vp8" },
- { name: "vp9" },
- { name: "mp3" },
- { name: "aac" },
- { name: "wav" },
- { name: "prores" },
- { name: "h264-mkv" },
- { name: "h264-ts" },
- ],
- },
- },
- {
- name: `--${BrowserSafeApis.options.audioCodecOption.cliFlag}`,
- description: "Codec to be used for the audio",
- args: {
- suggestions: [
- { name: "aac" },
- { name: "mp3" },
- { name: "opus" },
- { name: "pcm-16" },
- ],
- },
- },
- {
- name: "--every-nth-frame",
- description: "Render only every nth frame (only for GIFs)",
- args: {
- default: "1",
- suggestions: [{ name: "2" }, { name: "3" }, { name: "4" }, { name: "5" }],
- },
- },
- {
- name: "--number-of-gif-loops",
- description: "How many times a GIF should loop. 0 = No loop",
- args: {
- default: "1",
- suggestions: [{ name: "0" }, { name: "1" }, { name: "2" }, { name: "3" }],
- },
- },
- {
- name: "--audio-bitrate",
- description: "Customize the output audio bitrate",
- },
- {
- name: "--video-bitrate",
- description:
- "Customize the output video bitrate. Mutually exclusive with --crf",
- exclusiveOn: ["--crf"],
- },
- {
- name: "--crf",
- description: "FFmpeg CRF value, controls quality, see docs for info",
- exclusiveOn: ["--video-bitrate"],
- },
- {
- name: "--frames",
- description: "Render a portion or a still of a video, 0-9, 50",
- args: {
- name: "frames",
- },
- },
- {
- name: "--prores-profile",
- description: "ProRes profile, need --codec=prores to be set",
- args: {
- suggestions: ["4444-xq", "4444", "hq", "standard", "light", "proxy"],
- },
- },
- {
- name: "--x264-preset",
- description:
- "Presets balance encoding speed and compression quality, with slower presets achieving better compression. Needs --codec=h264 to be set",
- args: {
- suggestions: [
- "ultrafast",
- "superfast",
- "veryfast",
- "faster",
- "fast",
- "medium",
- "slow",
- "slower",
- "veryslow",
- "placebo",
- ],
- },
- },
- {
- name: "--image-format",
- description: 'Format to render the frames in, "jpeg" or "png"',
- args: {
- suggestions: [
- {
- name: "jpeg",
- },
- {
- name: "png",
- },
- ],
- },
- },
- {
- name: "--pixel-format",
- description: "Custom pixel format, see docs for available values",
- args: {
- suggestions: [
- { name: "yuv420p" },
- { name: "yuv422p" },
- { name: "yuv444p" },
- { name: "yuv420p10le" },
- { name: "yuv422p10le" },
- { name: "yuv444p10le" },
- { name: "yuva420p" },
- ],
- },
- },
- {
- name: "--muted",
- description: "Outputs no audio",
- },
- {
- name: "--height",
- description: "Override the composition height",
- args: { name: "height" },
- },
- {
- name: "--width",
- description: "Override the composition width",
- args: { name: "height" },
- },
-];
-
-const globalLambdaOptions: Fig.Option[] = [
- ...alwaysOptions,
- {
- name: "--yes",
- description: "Skip confirmation",
- },
- {
- name: "--force",
- hidden: true,
- isDangerous: true,
- description: "Skip confirmation",
- },
- {
- name: "-y",
- isDangerous: true,
- hidden: true,
- description: "Skip confirmation",
- },
- {
- name: "-f",
- isDangerous: true,
- hidden: true,
- description: "Skip confirmation",
- },
- {
- name: "--region",
- description: "The AWS region specifier",
- args: {
- suggestions: [
- {
- name: "us-east-1",
- description: "North Virginia",
- },
- {
- name: "us-east-2",
- description: "Ohio",
- },
- {
- name: "eu-central-1",
- description: "Frankfurt",
- },
- {
- name: "eu-west-1",
- description: "Ireland",
- },
- {
- name: "eu-west-2",
- description: "London",
- },
- {
- name: "us-west-2",
- description: "Oregon",
- },
- {
- name: "ap-south-1",
- description: "Mumbai",
- },
- {
- name: "ap-southeast-1",
- description: "Singapore",
- },
- {
- name: "ap-southeast-2",
- description: "Sydney",
- },
- {
- name: "ap-northeast-1",
- description: "Tokyo",
- },
- ],
- },
- },
-];
-
-const benchmarkOptions: Fig.Option[] = uniqueOptions(
- [
- ...renderOptions,
- ...localRenderOptions,
- ...localRenderAndStillOptions,
- ...alwaysOptions,
- {
- name: "--concurrencies",
- description:
- "Comma-separated list of concurrency values to include in benchmark",
- },
- ].filter((b) => {
- if (b.name === "--overwrite") {
- return false;
- }
-
- if (b.name === "--concurrency") {
- return false;
- }
-
- return true;
- })
-);
-
-const completionSpec: Fig.Spec = {
- name: ["remotion", "remotionb"],
- description: "Create videos programmatically in React",
- subcommands: [
- {
- name: "versions",
- description: "Prints and validates versions of all Remotion packages",
- },
- {
- name: "gpu",
- description: "Prints information about how Chrome uses the GPU",
- },
- {
- name: "compositions",
- description: "Prints the list of available compositions",
- args: {
- name: "entry",
- description: "The entry point of your Remotion app",
- template: ["filepaths"],
- },
- options: compositionsOptions,
- },
- {
- name: "lambda",
- description: "Access functionality of @remotion/lambda",
- subcommands: [
- {
- name: "policies",
- description: "Manage AWS policies",
- subcommands: [
- {
- name: "role",
- description: "Print policy to be added to the AWS role",
- },
- {
- name: "user",
- description: "Print policy to be added to the AWS user",
- },
- {
- name: "validate",
- description: "Validate the user policy was configured correctly",
- },
- ],
- },
- {
- name: "quotas",
- description: "Show current AWS quota",
- options: globalLambdaOptions,
- subcommands: [
- {
- name: "increase",
- description:
- "Send a request to AWS to increase concurrency quotas",
- options: globalLambdaOptions,
- },
- ],
- },
- {
- name: "regions",
- description: "Prints list of supported regions",
- options: [
- {
- name: "--default-only",
- description:
- "Only print the regions enabled by default in a new AWS account",
- },
- ],
- },
- {
- name: "render",
- description: "Render media on Lambda",
- args: [
- {
- name: "serve-url",
- description: "URL or name of the site",
- suggestions: [
- {
- type: "arg",
- displayName: "[serve-url]",
- },
- ],
- },
- {
- name: "composition-id",
- description: "Name of the composition",
- suggestions: [
- {
- type: "arg",
- displayName: "[serve-url]",
- },
- ],
- },
- {
- name: "out-name",
- description:
- "Where the output should be downloaded. No download it omitted",
- suggestions: [
- {
- type: "arg",
- displayName: "[out-name]",
- },
- ],
- isOptional: true,
- },
- ],
- options: uniqueOptions([
- ...lambdaRenderAndStillOptions,
- ...lambdaRenderOptions,
- ...renderOptions,
- ...globalLambdaOptions,
- ...alwaysOptions,
- ]),
- },
- {
- name: "compositions",
- description: "Get the list of available compositions on Lambda",
- args: {
- name: "serve-url",
- description: "URL or name of the site",
- suggestions: [
- {
- type: "arg",
- displayName: "[serve-url]",
- },
- ],
- },
- options: [...globalLambdaOptions, ...compositionsOptions],
- },
- {
- name: "still",
- description: "Render a still on Lambda",
- args: [
- {
- name: "serve-url",
- description: "URL or name of the site",
- suggestions: [
- {
- type: "arg",
- displayName: "[serve-url]",
- },
- ],
- },
- {
- name: "composition-id",
- description: "Name of the composition",
- suggestions: [
- {
- type: "arg",
- displayName: "[composition-id]",
- },
- ],
- },
- {
- name: "out-name",
- description:
- "Where the output should be downloaded. No download it omitted",
- isOptional: true,
- suggestions: [
- {
- type: "arg",
- displayName: "[out-name]",
- },
- ],
- },
- ],
- options: uniqueOptions([
- ...lambdaRenderAndStillOptions,
- ...stillOptions,
- ...globalLambdaOptions,
- ...alwaysOptions,
- ]),
- },
- {
- name: "functions",
- description: "Manage functions on AWS Lambda",
- subcommands: [
- {
- name: "ls",
- description: "List deployed functions",
- options: globalLambdaOptions,
- },
- {
- name: "deploy",
- description:
- "Deploy a function if one with the same parameters doesn't exist",
- options: [
- {
- name: "--memory",
- description: "Amount of memory in MB to allocate",
- args: {
- name: "sizeInMegabytes",
- },
- },
- {
- name: "--disk",
- description: "Amount of disk space in MB to allocate",
- args: {
- name: "diskInMegabytes",
- },
- },
- {
- name: "--architecture",
- description:
- "Type of CPU architecture to use for the Lambda function",
- args: {
- name: "architecture",
- suggestions: [
- { name: "x86_64", icon: "fig://icon?type=cpu" },
- { name: "arm64", icon: "fig://icon?type=cpu" },
- ],
- },
- },
- {
- name: "--disable-cloudwatch",
- description: "Disable CloudWatch logging",
- exclusiveOn: ["--retention-period"],
- },
- {
- name: `--${BrowserSafeApis.options.enableLambdaInsights.cliFlag}`,
- description: "Enable Lambda Insights",
- },
- {
- name: "--custom-role-arn",
- description:
- "Set a custom role ARN to be used instead of the default",
- args: {
- name: "Role ARN",
- },
- },
- {
- name: "--retention-period",
- description: "CloudWatch log retention period in days",
- exclusiveOn: ["--disable-cloudwatch"],
- args: {
- name: "retentionPeriodInDays",
- },
- },
- ...globalLambdaOptions,
- ],
- },
- {
- name: "rmall",
- description: "Remove all functions in a region",
- isDangerous: true,
- options: globalLambdaOptions,
- },
- {
- name: "rm",
- description: "Remove a function",
- args: {
- name: "function-name",
- description: "ID of your function",
- suggestCurrentToken: true,
- },
- options: globalLambdaOptions,
- },
- ],
- options: globalLambdaOptions,
- },
- {
- name: "sites",
-
- options: globalLambdaOptions,
- subcommands: [
- {
- name: "ls",
- description: "List sites",
- options: globalLambdaOptions,
- },
- {
- name: "rmall",
- description: "Remove all sites in a region",
- isDangerous: true,
- options: globalLambdaOptions,
- },
- {
- name: "rm",
-
- description: "Remove a site",
- args: {
- name: "site-name",
- description: "ID of your site",
- suggestCurrentToken: true,
- },
- options: globalLambdaOptions,
- },
- {
- name: "create",
- description: "Create or update a site",
-
- options: [
- ...globalLambdaOptions,
- {
- name: "--site-name",
- args: {
- name: "How the folder in S3 should be named.",
- },
- },
- ],
- args: {
- name: "entry",
- template: ["filepaths"],
- suggestions: [
- {
- type: "arg",
- displayName: "[entry-point]",
- },
- ],
- },
- },
- ],
- },
- ],
- options: globalLambdaOptions,
- },
- {
- name: "bundle",
- priority: 100,
- description: "Bundle a Remotion project",
- args: {
- name: "entry",
- template: ["filepaths"],
- },
- options: [
- ...alwaysOptions,
- {
- name: "--public-dir",
- description: "Location of the public/ directory",
- args: {
- template: "folders",
- },
- },
- {
- name: "--out-dir",
- description: "Define the location of the resulting bundle",
- args: {
- template: "folders",
- },
- },
- ],
- },
- {
- name: "render",
- priority: 60,
- description:
- "Render a video based on the entry point, the composition ID and save it to the output location",
- args: [
- {
- name: "entry",
- template: ["filepaths"],
- },
- {
- name: "comp-id",
- description: "The composition ID",
-
- suggestions: [
- {
- type: "arg",
- displayName: "[comp-id]",
- },
- ],
- },
- {
- name: "output",
- template: ["filepaths"],
- suggestions: ["out.mp4"],
- isOptional: true,
- },
- ],
- options: uniqueOptions([
- ...renderOptions,
- ...localRenderOptions,
- ...localRenderAndStillOptions,
- ...alwaysOptions,
- ]),
- },
- {
- name: "still",
- priority: 55,
- description:
- "Render a still frame based on the entry point, the composition ID and save it to the output location",
- args: [
- {
- name: "entry",
- template: ["filepaths"],
- },
- {
- name: "comp-id",
- description: "The composition ID",
- suggestions: [
- {
- type: "arg",
- displayName: "[comp-id]",
- },
- ],
- },
- {
- name: "output",
- template: ["filepaths"],
- suggestions: ["out.png"],
- isOptional: true,
- },
- ],
- options: [
- ...stillOptions,
- ...localRenderAndStillOptions,
- ...alwaysOptions,
- ],
- },
- {
- name: ["preview", "studio"],
- priority: 50,
- description: "Start the Remotion Studio",
- args: {
- name: "entry",
- template: ["filepaths"],
- },
- options: [
- propsOption,
- {
- name: "--disable-keyboard-shortcuts",
- description: "Disable all keyboard shortcuts",
- },
- {
- name: "--webpack-poll",
- description: "Enable webpack polling instead of file system watchers",
- args: {
- name: "polling-interval",
- description: "Polling interval in milliseconds",
- },
- },
- {
- name: "--number-of-shared-audio-tags",
- description:
- "Set the number of shared audio tags to prevent autoplay issues",
- args: {
- name: "numberOfSharedAudioTags",
- },
- },
- {
- name: "--no-open",
- description:
- "Prevent the browser from opening automatically when the server starts",
- },
- ],
- },
- {
- name: "upgrade",
- description:
- "Upgrade all Remotion-related dependencies to the newest version",
- options: [
- {
- name: "--package-manager",
- description: "Force a specific package manager to be used",
- args: {
- name: "package-manager",
- suggestions: [{ name: "npm" }, { name: "yarn" }, { name: "pnpm" }],
- },
- },
- {
- name: "--version",
- description: "Upgrade to a specific version",
- args: {
- name: "version",
- },
- },
- ],
- },
- {
- name: "benchmark",
- description: "Try different render configurations and compare them",
- options: benchmarkOptions,
- },
- {
- name: "install",
- description: "Ensure Remotion dependencies",
- args: {
- name: "dependency",
- suggestions: [{ name: "ffmpeg" }, { name: "ffprobe" }],
- },
- },
- ],
- options: [
- {
- name: "--help",
- description: "Prints the list of commands and flags for quick lookup",
- },
- ],
-};
-export default completionSpec;
diff --git a/packages/cli-autocomplete/src/unique-options.ts b/packages/cli-autocomplete/src/unique-options.ts
deleted file mode 100644
index e3fce4e265..0000000000
--- a/packages/cli-autocomplete/src/unique-options.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-// eslint-disable-next-line @withfig/fig-linter/no-missing-default-export
-export const uniqueOptions = (options: Fig.Option[]) => {
- const seenOptions: Record<string, Fig.Option> = {};
- const uniqueOptions: Fig.Option[] = [];
-
- for (const option of options) {
- if (typeof option.name !== "string") {
- throw new Error("this script does not support arrays of options");
- }
- if (!seenOptions[option.name]) {
- seenOptions[option.name] = option;
- uniqueOptions.push(option);
- }
- }
-
- return uniqueOptions;
-};
diff --git a/packages/cli-autocomplete/tsconfig.json b/packages/cli-autocomplete/tsconfig.json
deleted file mode 100644
index e376ef2082..0000000000
--- a/packages/cli-autocomplete/tsconfig.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "extends": "../tsconfig.settings.json",
- "compilerOptions": {
- "rootDir": "./src",
- "outDir": "./dist",
- "skipLibCheck": true,
- "jsx": "react-jsx",
- "types": ["@withfig/autocomplete-types"]
- },
- "include": ["./src"],
- "references": [{ "path": "../core" }, { "path": "../renderer" }]
-}
diff --git a/packages/cli/src/list-of-remotion-packages.ts b/packages/cli/src/list-of-remotion-packages.ts
index 6825d15fa8..6bbc3ac682 100644
--- a/packages/cli/src/list-of-remotion-packages.ts
+++ b/packages/cli/src/list-of-remotion-packages.ts
@@ -8,7 +8,6 @@ export const listOfRemotionPackages = [
'@remotion/babel-loader',
'@remotion/bugs',
'@remotion/bundler',
- '@remotion/cli-autocomplete',
'@remotion/cli',
'@remotion/cloudrun',
'@remotion/compositor-darwin-arm64',
diff --git a/packages/create-video/src/list-of-remotion-packages.ts b/packages/create-video/src/list-of-remotion-packages.ts
index 6825d15fa8..6bbc3ac682 100644
--- a/packages/create-video/src/list-of-remotion-packages.ts
+++ b/packages/create-video/src/list-of-remotion-packages.ts
@@ -8,7 +8,6 @@ export const listOfRemotionPackages = [
'@remotion/babel-loader',
'@remotion/bugs',
'@remotion/bundler',
- '@remotion/cli-autocomplete',
'@remotion/cli',
'@remotion/cloudrun',
'@remotion/compositor-darwin-arm64',
diff --git a/packages/docs/docs/cli/cli.mdx b/packages/docs/docs/cli/cli.mdx
index bd56e53661..1482cf50ab 100644
--- a/packages/docs/docs/cli/cli.mdx
+++ b/packages/docs/docs/cli/cli.mdx
@@ -67,11 +67,6 @@ The following commands are available - you can always run them using `npx remoti
npx remotion render --codec=vp8 HelloWorld out/video.webm
```
-## Fig.io autocompletion
-
-Install [Fig](https://fig.io) (macOS only) to add Remotion autocomplete to your terminal.
-Type `npx remotion` to start getting suggestions.
-
## See also
- [Render your video](/docs/render)
diff --git a/packages/docs/docs/contributing/option.mdx b/packages/docs/docs/contributing/option.mdx
index c57e92bca7..3b61ba9188 100644
--- a/packages/docs/docs/contributing/option.mdx
+++ b/packages/docs/docs/contributing/option.mdx
@@ -22,10 +22,14 @@ There are multiple ways to specify an option:
The option should be resolved in the following order:
-<Step>1</Step> Directly passed to the Node.JS API<br/>
-<Step>2</Step> Specified via the render UI in the <a href="/docs/terminology/studio">Remotion Studio</a><br/>
-<Step>3</Step> Specified via <a href="/docs/cli">CLI flag</a><br/>
-<Step>4</Step> Specified via <a href="/docs/config">config file</a><br/>
+<Step>1</Step> Directly passed to the Node.JS API
+<br />
+<Step>2</Step> Specified via the render UI in the <a href="/docs/terminology/studio">Remotion Studio</a>
+<br />
+<Step>3</Step> Specified via <a href="/docs/cli">CLI flag</a>
+<br />
+<Step>4</Step> Specified via <a href="/docs/config">config file</a>
+<br />
<Step>5</Step> Fallback to a default value
## Naming
@@ -44,10 +48,6 @@ Note from which version the option is available.
Check out the [Running the CLI](/docs/contributing) section in the contributing docs.
-## Add CLI autocompletion
-
-In the `cli-autocomplete` package under `src/source.ts`, you can add new options. People who use [Fig](https://fig.io) will then be able to get accurate autocompletion for your feature.
-
## See also
- [Implementing a new feature](/docs/contributing/feature)
diff --git a/packages/studio-shared/src/package-info.ts b/packages/studio-shared/src/package-info.ts
index 6af098026a..ba4946e62a 100644
--- a/packages/studio-shared/src/package-info.ts
+++ b/packages/studio-shared/src/package-info.ts
@@ -7,7 +7,6 @@ export const packages = [
'babel-loader',
'bugs',
'bundler',
- 'cli-autocomplete',
'cli',
'cloudrun',
'compositor-darwin-arm64',
@@ -149,7 +148,6 @@ export const descriptions: {[key in Pkgs]: string | null} = {
'player-example': null,
'ai-improvements': null,
'discord-poster': null,
- 'cli-autocomplete': null,
'docusaurus-plugin': null,
'animated-emoji': 'Google Fonts Animated Emojis as Remotion components',
serverless: 'A runtime for distributed rendering',
@@ -172,7 +170,6 @@ export const installableMap: {[key in Pkgs]: boolean} = {
'babel-loader': false,
bugs: false,
bundler: false,
- 'cli-autocomplete': false,
cli: false,
cloudrun: true,
'lambda-client': false,
@@ -278,7 +275,6 @@ export const apiDocs: {[key in Pkgs]: string | null} = {
'compositor-darwin-x64': null,
'ai-improvements': null,
'discord-poster': null,
- 'cli-autocomplete': null,
'docusaurus-plugin': null,
'animation-utils': 'https://www.remotion.dev/docs/animation-utils/',
'example-without-zod': null,
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index c3673cd98d..9cd8a63130 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -288,21 +288,6 @@ importers:
specifier: 3.22.3
version: 3.22.3
- packages/cli-autocomplete:
- devDependencies:
- '@fig/eslint-config-autocomplete':
- specifier: 1.2.1
- '@remotion/renderer':
- specifier: workspace:*
- version: link:../renderer
- '@withfig/autocomplete-types':
- specifier: ^1.20.0
- version: 1.30.0
- eslint:
- specifier: 9.19.0
- version: 9.19.0
-
packages/cloudrun:
dependencies:
'@google-cloud/artifact-registry':
@@ -10330,21 +10315,6 @@ packages:
'@eslint/core': 0.10.0
levn: 0.4.1
- resolution: {integrity: sha512-ZPmN0QAfsGbLwx3An20iZxSVZrEEPXoCf5V3mTVdDAo90IhD0O9991153n98cCggD7LemPOWei0GRvRso2MKgg==}
- peerDependencies:
- eslint: '>=8'
- dependencies:
- '@typescript-eslint/eslint-plugin': 5.62.0(@typescript-eslint/[email protected])([email protected])([email protected])
- '@typescript-eslint/parser': 5.62.0([email protected])([email protected])
- '@withfig/eslint-plugin-fig-linter': 1.4.1
- eslint: 9.19.0
- eslint-plugin-compat: 4.2.0([email protected])
- transitivePeerDependencies:
- - supports-color
- - typescript
- dev: true
-
/@firebase/[email protected](@firebase/[email protected])(@firebase/[email protected]):
resolution: {integrity: sha512-ohKUrwSoXvyUJdSLuDr82mOqrzgWKyHMUt9/TfYKkyDXnFjNlBcFBpkpl/UHMAOJe0M60YYXiVCZoGQYldCslA==}
peerDependencies:
@@ -11319,10 +11289,6 @@ packages:
resolution: {integrity: sha512-nkalE/f1RvRGChwBnEIoBfSEYOXnCRdleKuv6+lePbMDrMZXeDQnqak5XDOeBgrPPyPfAdcCu/B5z+v3VhplGg==}
dev: false
- resolution: {integrity: sha512-ntKBZtwWCy4XvJosdTJKqIMdmzgbxjopfoiMxgpzsml3dXqA7MIHCE/amidfQc06a6KvmMrpiVuYHIBt2feDog==}
- dev: true
-
resolution: {integrity: sha512-IqsscXh7Q3Rzb+f5DXYk0HU71PK+WuFsEhf+mSV3fOhpLcEpgsHvTQ2h0T6TlZ5gHOaBeFjkXwB52by7ypMyNg==}
peerDependencies:
@@ -15622,34 +15588,6 @@ packages:
dev: false
optional: true
- /@typescript-eslint/[email protected](@typescript-eslint/[email protected])([email protected])([email protected]):
- resolution: {integrity: sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- peerDependencies:
- '@typescript-eslint/parser': ^5.0.0
- eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
- typescript: '*'
- peerDependenciesMeta:
- typescript:
- optional: true
- dependencies:
- '@eslint-community/regexpp': 4.12.1
- '@typescript-eslint/parser': 5.62.0([email protected])([email protected])
- '@typescript-eslint/scope-manager': 5.62.0
- '@typescript-eslint/type-utils': 5.62.0([email protected])([email protected])
- '@typescript-eslint/utils': 5.62.0([email protected])([email protected])
- debug: 4.4.0
- eslint: 9.19.0
- graphemer: 1.4.0
- ignore: 5.3.2
- natural-compare-lite: 1.4.0
- semver: 7.5.3
- tsutils: 3.21.0([email protected])
- typescript: 5.5.4
- transitivePeerDependencies:
- - supports-color
- dev: true
-
resolution: {integrity: sha512-oy9+hTPCUFpngkEZUSzbf9MxI65wbKFoQYsgPdILTfbUldp5ovUuphZVe4i30emU9M/kP+T64Di0mxl7dSw3MA==}
engines: {node: ^16.0.0 || >=18.0.0}
@@ -15729,26 +15667,6 @@ packages:
- supports-color
dev: true
- resolution: {integrity: sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- peerDependencies:
- eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
- typescript: '*'
- peerDependenciesMeta:
- typescript:
- optional: true
- dependencies:
- '@typescript-eslint/scope-manager': 5.62.0
- '@typescript-eslint/types': 5.62.0
- '@typescript-eslint/typescript-estree': 5.62.0([email protected])
- debug: 4.4.0
- eslint: 9.19.0
- typescript: 5.5.4
- transitivePeerDependencies:
- - supports-color
- dev: true
-
resolution: {integrity: sha512-tbsV1jPne5CkFQCgPBcDOt30ItF7aJoZL997JSF7MhGQqOeT3svWRYxiqlfA5RUdlHN6Fi+EI9bxqbdyAUZjYQ==}
engines: {node: ^16.0.0 || >=18.0.0}
@@ -15816,14 +15734,6 @@ packages:
'@typescript-eslint/visitor-keys': 5.19.0
dev: false
- /@typescript-eslint/[email protected]:
- resolution: {integrity: sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- dependencies:
- '@typescript-eslint/types': 5.62.0
- '@typescript-eslint/visitor-keys': 5.62.0
- dev: true
-
/@typescript-eslint/[email protected]:
resolution: {integrity: sha512-OwLUIWZJry80O99zvqXVEioyniJMa+d2GrqpUTqi5/v5D5rOrppJVBPa0yKCblcigC0/aYAzxxqQ1B+DS2RYsg==}
engines: {node: ^16.0.0 || >=18.0.0}
@@ -15847,26 +15757,6 @@ packages:
'@typescript-eslint/visitor-keys': 8.21.0
dev: true
- resolution: {integrity: sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- peerDependencies:
- eslint: '*'
- typescript: '*'
- peerDependenciesMeta:
- typescript:
- optional: true
- dependencies:
- '@typescript-eslint/typescript-estree': 5.62.0([email protected])
- '@typescript-eslint/utils': 5.62.0([email protected])([email protected])
- debug: 4.4.0
- eslint: 9.19.0
- tsutils: 3.21.0([email protected])
- typescript: 5.5.4
- transitivePeerDependencies:
- - supports-color
- dev: true
-
resolution: {integrity: sha512-rZQI7wHfao8qMX3Rd3xqeYSMCL3SoiSQLBATSiVKARdFGCYSRvmViieZjqc58jKgs8Y8i9YvVVhRbHSTA4VBag==}
engines: {node: ^16.0.0 || >=18.0.0}
@@ -15927,11 +15817,6 @@ packages:
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dev: false
- /@typescript-eslint/[email protected]:
- resolution: {integrity: sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- dev: true
-
/@typescript-eslint/[email protected]:
resolution: {integrity: sha512-1kFmZ1rOm5epu9NZEZm1kckCDGj5UJEf7P1kliH4LKu/RkwpsfqqGmY2OOcUs18lSlQBKLDYBOGxRVtrMN5lpg==}
engines: {node: ^16.0.0 || >=18.0.0}
@@ -15967,27 +15852,6 @@ packages:
- supports-color
dev: false
- /@typescript-eslint/[email protected]([email protected]):
- resolution: {integrity: sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- peerDependencies:
- typescript: '*'
- peerDependenciesMeta:
- typescript:
- optional: true
- dependencies:
- '@typescript-eslint/types': 5.62.0
- '@typescript-eslint/visitor-keys': 5.62.0
- debug: 4.4.0
- globby: 11.1.0
- is-glob: 4.0.3
- semver: 7.5.3
- tsutils: 3.21.0([email protected])
- typescript: 5.5.4
- transitivePeerDependencies:
- - supports-color
- dev: true
-
/@typescript-eslint/[email protected]([email protected]):
resolution: {integrity: sha512-6npJTkZcO+y2/kr+z0hc4HwNfrrP4kNYh57ek7yCNlrBjWQ1Y0OS7jiZTkgumrvkX5HkEKXFZkkdFNkaW2wmUQ==}
engines: {node: ^16.0.0 || >=18.0.0}
@@ -16068,26 +15932,6 @@ packages:
- typescript
dev: false
- resolution: {integrity: sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- peerDependencies:
- eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
- dependencies:
- '@eslint-community/eslint-utils': 4.4.0([email protected])
- '@types/json-schema': 7.0.15
- '@types/semver': 7.5.3
- '@typescript-eslint/scope-manager': 5.62.0
- '@typescript-eslint/types': 5.62.0
- '@typescript-eslint/typescript-estree': 5.62.0([email protected])
- eslint: 9.19.0
- eslint-scope: 5.1.1
- semver: 7.5.3
- transitivePeerDependencies:
- - supports-color
- - typescript
- dev: true
-
resolution: {integrity: sha512-NfWVaC8HP9T8cbKQxHcsJBY5YE1O33+jpMwN45qzWWaPDZgLIbo12toGMWnmhvCpd3sIxkpDw3Wv1B3dYrbDQQ==}
engines: {node: ^16.0.0 || >=18.0.0}
@@ -16147,14 +15991,6 @@ packages:
eslint-visitor-keys: 3.4.3
dev: false
- /@typescript-eslint/[email protected]:
- resolution: {integrity: sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- dependencies:
- '@typescript-eslint/types': 5.62.0
- eslint-visitor-keys: 3.4.3
- dev: true
-
/@typescript-eslint/[email protected]:
resolution: {integrity: sha512-JJtkDduxLi9bivAB+cYOVMtbkqdPOhZ+ZI5LC47MIRrDV4Yn2o+ZnW10Nkmr28xRpSpdJ6Sm42Hjf2+REYXm0A==}
engines: {node: ^16.0.0 || >=18.0.0}
@@ -16494,14 +16330,6 @@ packages:
resolution: {integrity: sha512-pUrWq3V5PiSGFLeLxoGqReTZmiiXwY3jRkIG5sLLKjyqNxrwm/04b4nw7LSmGWJcKk59XOM/YRTUwOzo4MMlow==}
- /@withfig/[email protected]:
- resolution: {integrity: sha512-Wl1tC4HQprUtudM+htbxaxFhewiD2PpipKD3UxIqBlnEgT1x/+rETGdgXK8H2lHTLTF/TjDJ7Cw08feHIRWeyg==}
- dev: true
-
- /@withfig/[email protected]:
- resolution: {integrity: sha512-kzPzug7K45U4IztBm4IeeGLPrP9WR3mzdCFFk9V3gQf/35s1IB+nLPAxGP1oZmFCXHBOyjIp0SrfbJ6Bo0g9qQ==}
- dev: true
-
resolution: {integrity: sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==}
@@ -16901,12 +16729,6 @@ packages:
resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==}
dev: true
- resolution: {integrity: sha512-jOMKcHht9LxYIEQu+RVd22vtgrPaVCtDRQ/16IGmurdzxvYbDd5ynxjnyrzLnieG96eTcAyaoj/wN/4/1FyyeA==}
- dependencies:
- '@mdn/browser-compat-data': 5.5.19
- dev: true
-
resolution: {integrity: sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==}
dev: true
@@ -19651,22 +19473,6 @@ packages:
jsx-ast-utils: 2.4.1
dev: false
- resolution: {integrity: sha512-RDKSYD0maWy5r7zb5cWQS+uSPc26mgOzdORJ8hxILmWM7S/Ncwky7BcAtXVY5iRbKjBdHsWU8Yg7hfoZjtkv7w==}
- engines: {node: '>=14.x'}
- peerDependencies:
- eslint: ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0
- dependencies:
- '@mdn/browser-compat-data': 5.5.19
- ast-metadata-inferer: 0.8.0
- browserslist: 4.24.2
- caniuse-lite: 1.0.30001690
- eslint: 9.19.0
- find-up: 5.0.0
- lodash.memoize: 4.1.2
- semver: 7.6.3
- dev: true
-
resolution: {integrity: sha512-ixmkI62Rbc2/w8Vfxyh1jQRTdRTF52VxwRVHl/ykPAmqG+Nb7/kNn+byLP0LxPgI7zWA16Jt82SybJInmMia3A==}
engines: {node: '>=4'}
@@ -22826,6 +22632,7 @@ packages:
resolution: {integrity: sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==}
+ dev: false
resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==}
@@ -24293,10 +24100,6 @@ packages:
resolution: {integrity: sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==}
dev: true
- resolution: {integrity: sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==}
- dev: true
-
resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}
@@ -29383,6 +29186,7 @@ packages:
resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==}
+ dev: false
resolution: {integrity: sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==}
@@ -29403,6 +29207,7 @@ packages:
dependencies:
tslib: 1.14.1
typescript: 5.5.4
+ dev: false
resolution: {integrity: sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==}
diff --git a/tsconfig.json b/tsconfig.json
index 06616c4117..37b7f8950d 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -30,9 +30,6 @@
{
"path": "./packages/cli"
},
- {
- "path": "./packages/cli-autocomplete"
- },
{
"path": "./packages/core"
},