Bunny Uploader Command

We have a page on our website that can be used to upload videos to your account at BunnyCDN. If you do not want to use that, you can use a command-line uploader described below.

  1. Download this zip file and extract the contents into a new folder.
  2. The file you need to use is uploadBunny.exe This has to be run using the command line of Windows.
  3. Type cmd in the main Windows search bar and press enter. It will open the command line in Windows (usually a window with black colored background)
  4. Inside that window make sure you have changed the current folder to the exact folder where you have extracted the files from the aforementioned zip file.
  5. Type uploadBunny.exe on the command line. If it gives a pithy help on what it is expecting; it means that the application is available and ready. But if it says “uploadBunny.exe is not recognized as an internal or external command, operable program or batch file.” or “bad command or filename”, then make sure you are indeed in the same folder where uploadBunny.exe was present. Double-check if you have indeed extracted the aforesaid zip file to the folder you are currently inside; at the very least.
  6. Now to upload a video to your account at Bunny Stream, you would need to first create your own account at Bunny. Go here for doing that. The usually give a trial period too. Read their pricing page. As of Jan 2026, they are still continuing with a modified version of “pay-as-you-go” system. We found their pricing very generous and realistic.
  7. Bunny is a CDN (Content Delivery Network) with impeccable and large set of capabilities. We are; however, only interested in their Stream section. Go to the left sidebar of your account dashboard and select Stream.
  8. There you create a new library. Give it a suitable name. Before Bunny creates your library, it will ask you the regions where you wish your video should load quickly. Being a CDN (Content Delivery Network), it distributes your video to different locations in the world (the ones that you choose) so that people in those regions you had selected can get to see that video quickly – often, without buffering. Be very thoughtful about the locations you provide, because it can increase the price you need to pay to Bunny.
  9. Click on the API section of that library.
  10. Note down the Video Library ID of that library.
  11. Note down the API Key.
  12. Note down the CDN Hostname.
  13. Open a text editor in your computer (Notepad.exe is good for this) and load the file auth.txt (this was also included in the zip file)
  14. Enter the Video Library ID and API key and the CDN Hostname in the places shown
  15. The auth.txt file is usually needed to be edited only once. Of course, if you have multiple Libraries, you would need to change it to suit each such library at Bunny Stream. Keep this file (auth.txt) private – as it contains information that will allow anyone to upload videos.
  16. Now for each video you have to upload, you should make one special “job” file per video. This file should be made as per the file sample.txt that was supplied in the zip file. Do not overwrite sample.txt as you would need that sample later for creating files required to upload other videos. Save the edited sample.txt as job1.txt
  17. Lastly, type this command in that cmd window and press ENTER
 uploadBunny.exe auth.txt job1.txt
 

The above command will upload the video file mentioned in job.txt into your account at Bunny Stream. On successful upload, it will show you the URL of the .m3u8 (i.e HLS format) url.

After the video is uploaded, Bunny will process it and that can take even a few minutes – depends on the size of the video file you had uploaded.

What if you do NOT use Windows?

Not to worry. The same zip file actually has the BUN source code for uploadBunny.exe You can install BUN (A Javascript interpreter) in your computer (Say Mac or Linux) and ask BUN to run that uploadBunny.ts script But before that you need to install a couple of additional modules into the installed BUN environment by giving this command:

bun add tus-js-client yaml

For Authors

bunnyuploader.txt · Last modified: by admin