Skip to main content

npx remotion elements add-libraryv4.0.547

Adds an Element Library to your Remotion config file, so it appears in Browse Elements in Studio.

npx remotion elements add-library <url>

Example​

npx remotion elements add-library https://example.com/elements

The URL is the library's gallery page. The command:

  1. Fetches the page to check that it is reachable and to read its name
  2. Adds a Config.addElementLibrary() call to the end of remotion.config.ts, keeping the rest of the file unchanged
remotion.config.ts
Config.addElementLibrary({ url: 'https://example.com/elements', displayName: 'Acme Elements', });

If the page has a <meta property="og:site_name"> tag, the command uses its content as the display name. Otherwise, Studio shows the URL host and path.

If the library is already in the config, the command does not change any files. The command normalizes URLs before comparing them, so https://EXAMPLE.com/elements and https://example.com/elements are the same library.

The command requires a remotion.config.ts or remotion.config.js file.

After adding the library, install Elements from its pages with npx remotion elements use.

Flags​

--display-name​

The name of the library in Studio. Overrides the name from the page.

--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.

See also​