Vercel Deployment Source Downloader

Created a package to download the source files directly from a vercel deployment, there were som existing ones but didn’t work well / lacking logs. Also published this to npm and setup npx command, so it can be directly ran via npx vercel-deploy-source-downloader <your-vercel-token>. For more details, please see the repo on github GitHub - numanaral/vercel-deploy-source-downloader: Download source code from Vercel deployments - A CLI tool to backup and download source files from your Vercel projects.

Created this as there was an accident that caused stashed changes to be lost due to .git folder removal, but thankfully had a temporary deployment which I was able to recover from, so thought I would share the script in case anyone else falls into a similar situation!

4 Likes

That’s a really useful tool you’ve created! It’s great that you turned a challenging situation into something that can help the community. Having a reliable way to download source files from Vercel deployments can definitely be a lifesaver for backup and recovery scenarios. :slight_smile:

1 Like

thx this has saved my day

2 Likes

Glad to help!

Btw just released v1.1.0. :fire:

Some bugfixes and other improvements to make usage easier and more informative!

The CLI is fully interactive when run without arguments like:

npx vercel-deploy-source-downloader

It walks you through token, deployment ID, project, and team step by step. Plus auto-detection, resume support, and retry for failed downloads. Lots of changes, please take a look at the changelog for more details.

1 Like

bloody brilliant!! just saved another project @numan

this should be part of the official Vercel CLI

2 Likes

signed up to this community just to say thanks for making the tool!!

you saved my day @numan :raising_hands:

2 Likes

We love to see it!

1 Like

ahhh love seeing these comments!!! :heart:

i still remember the scary day I had to build this, takes one wrong call to mess something up when you working on 10 different things… super happy that it’s helping out other folks!! :folded_hands:

1 Like