| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Deployed something to Vercel and later needed to grab the source files? Vercel's dashboard doesn't let you do that. vercel-sdl fixes that!
Browse your Vercel deployments interactively and download the source files. Simple as that.
You'll need a Vercel API token to use this tool. Here's what you need to know about token scoping before creating one:
Vercel lets you create tokens at different levels. Go to https://vercel.com/account/settings/tokens and you'll see options for:
Important
If you create a token scoped to a specific team, you won't be able to access deployments from your personal Vercel account or other teams with that token. Choose based on what you need to download.
Keep that token safe. You'll need it for every command.
Now that you have your token, you can proceed to install:
Install globally:
npm install -g vercel-sdlOr run directly with npx (no installation needed):
npx vercel-sdl --token YOUR_TOKENIf you want to contribute or modify the code:
git clone <repository-url>
cd vercel-source-downloader
npm install
npm run buildvercel-sdl --token YOUR_TOKEN
# or with npx
npx vercel-sdl --token YOUR_TOKENThis shows your recent deployments. Use arrow keys to browse through them - you'll see all the details (git info, status, timestamps) as you navigate. Hit Enter when you find the one you want.
# Only production deployments
vercel-sdl --token xxx --target production
# Only ready deployments
vercel-sdl --token xxx --state READY
# Specific project
vercel-sdl --token xxx --project prj_abc123
# Get more results
vercel-sdl --token xxx --limit 20# By team ID
vercel-sdl --token xxx --team team_abc123
# By team slug
vercel-sdl --token xxx --slug my-teamWhen you select a deployment and choose to download:
Progress bar shows what's happening in real-time.
Vercel's UI doesn't give you a way to download deployment source. Sometimes you need that - maybe for debugging production issues, recovering files, or just keeping local backups.
I kept the dependencies minimal (just minimist for args and prompts for the interactive UI). Everything else uses standard Node APIs.
lib/ types.ts - TypeScript types from Vercel API spec vercel-api.ts - API client wrapper formatter.ts - Terminal output with colors interactive-selector.ts - Arrow-key navigation progress-display.ts - Download progress bar file-downloader.ts - Handles the actual downloads main.ts - CLI entry point
| Back | FazBrowse Home | New Git URL |