create-video-zh
v4.0.448-zh.2
Published
Create a new Remotion project with optional Chinese fork package aliases
Readme
create-video-zh
Create a new Remotion project using the create-video-zh CLI.
Usage
npx create-video-zh@latest my-videoBy default, the generated project uses the official Remotion packages, so npm install works without publishing a full forked package set.
If you explicitly enable fork mode, the generated project keeps the official dependency keys like remotion and @remotion/cli, but rewrites them to npm:@junwan666/... alias packages and writes a scoped .npmrc.
When the official package mode is used, the generated project also writes a local postinstall helper that can copy the localized Studio frontend from a nearby remotion-zh checkout. By default it looks for ../Work/remotion-zh/packages/studio/dist and ../remotion-zh/packages/studio/dist, or you can set REMOTION_ZH_STUDIO_DIST.
Environment variables
REMOTION_USE_FORK: Enable fork package aliases. Default: disabledREMOTION_FORK_SCOPE: Override the published fork scope. Default:@junwan666REMOTION_FORK_VERSION: Override the fork package version. Default:4.0.448-zh.0REMOTION_FORK_REGISTRY: Write a scoped.npmrcentry for a custom registry. Default:https://registry.npmjs.orgREMOTION_TEMPLATE_ORG: Override the GitHub org used to clone templates. Default:remotion-devREMOTION_ZH_STUDIO_DIST: Absolute or relative path toremotion-zh/packages/studio/distfor applying the localized Studio frontend in official package mode
Example:
```bashREMOTION_USE_FORK=1 npx create-video-zh@latest my-video
If `npx create-video-zh@latest my-video` cannot be found because your npm registry mirror has not synced the package yet, run:
```bash
npx --registry=https://registry.npmjs.org create-video-zh@latest my-videoPublish
Use the root-level helper:
bun run fork:pack
bun run fork:publish