Installation
- npx (Recommended)
- npm Global Install
- From Source
Zero install required. Just prefix any command with
npx:Quickstart
Setup
You need API credentials from both Vimeo and bunny.net.1. Get your Vimeo Access Token
- Go to the Vimeo Developer Portal and log in.
- Click Create an app (or select an existing one).
- Enter any app name — avoid including “Vimeo” in the name as it will be rejected.
- Add a brief description (e.g.
Video migration tool). - Select No for “Will people besides you be able to access your app?”
- Accept the terms and click Create App.
- On your app’s page, go to the Authentication section in the left sidebar.
- Under Generate an access token, select Authenticated (you) and check these scopes:
- Click Generate your personal access token will appear under Personal Access Tokens.
- Copy the token immediately; you won’t be able to see it again.
2. Get your bunny.net Stream Credentials
- Log in to bunny.net.
- Open your Stream library → API section.
- Copy the Library ID and Library API Key.
This uses the library-specific API key, not the account-level key.
3. Configure the CLI
.env file):
Usage
List your Vimeo content
Migrate videos
Check migration status
How It Works
1
Discover
Fetches all videos and folders from your Vimeo account.
2
Map Folders
Creates bunny.net collections matching your Vimeo folder structure.
3
Transfer
For each video, gets a download URL from Vimeo and sends it to bunny.net’s fetch endpoint. bunny.net downloads directly from Vimeo.
4
Metadata
Copies title, description, and tags to the bunny.net video.
5
Track
Saves progress to
~/.vimeo2bunny/migration-state.json so migrations can be resumed.What Gets Migrated
Troubleshooting
"No download link available"
"No download link available"
Your Vimeo plan must be Standard or above to access download links.
"URL expired"
"URL expired"
Vimeo download URLs expire after 24 hours. The tool fetches fresh URLs, but very long pauses may require restarting the migration.
"Rate limited"
"Rate limited"
When Vimeo or Bunny asks it to slow down (HTTP 429), vimeo2bunny waits the time the server gives, up to 5 minutes, and tries again, up to 5 times per request. If the limit persists, the video fails with “rate limit exceeded after 5 retries”. Wait a while, then run the migration again with a lower
--concurrency, as described in Retrying failed videos."Video fetch failed: Request failed with status code 422" or 503
"Video fetch failed: Request failed with status code 422" or 503
Bunny could not fetch some videos partway through the migration, which usually happens when a large migration runs too fast. Slow it down and retry:For a large library, migrate one folder at a time with
- Wait a while before retrying.
- Run the migration again with fewer parallel transfers:
--folder <vimeo-folder-id> (find the IDs with vimeo2bunny list --folders), and keep --concurrency at 1 or 2.Retrying failed videos
Retrying failed videos
Run
vimeo2bunny migrate again, without --resume. It is safe to run as often as you need: every migrated video carries a vimeoId metatag, so videos already on Bunny are skipped (“Already synced”) and only the rest are migrated. Add --dry-run first to see how many are left.A video is tagged as soon as Bunny accepts it, before encoding. If Bunny accepted a video but then failed to encode it, the re-run skips it as already synced. Delete that video from your library in the bunny.net dashboard first, then run the migration again to retry it.The migration was interrupted
The migration was interrupted
If the migration stopped partway through, for example because you pressed Ctrl+C or the connection dropped, continue where it left off:
--resume only continues a migration that was still running. Once a migration finishes, even with some failures, --resume starts a fresh one, which skips everything already migrated, the same as running vimeo2bunny migrate again.Requests or processing time out
Requests or processing time out
Give slow requests and long encodes more time:
--request-timeout is in seconds (default 30, up to 3600). --processing-timeout is in minutes (default 60, up to 1440) and sets how long to wait for Bunny to encode each video.Your Responsibilities
By using this tool, you acknowledge and agree that:- You are migrating your own content. You must not use this tool to access, download, or transfer content you do not own or have permission to use, or to circumvent Vimeo’s terms or technical restrictions.
- You are responsible for compliance with Vimeo’s terms. You are using your own Vimeo credentials and acting on your own behalf. To the fullest extent permitted by law, bunny.net shall not be liable for any indirect or consequential damages, loss of data, loss of business, or any actions taken by Vimeo or other third parties as a result of your use of this tool.
- You are solely responsible for how you use this tool and for ensuring that your use does not violate any third-party terms or laws.