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