https://github.com/anjaniux/vercel-deployment-fetcher
A simple Node.js script to fetch and download all files, directories, and serverless functions from a Vercel deployment.
https://github.com/anjaniux/vercel-deployment-fetcher
vercel vercel-api vercel-deployment
Last synced: 2 months ago
JSON representation
A simple Node.js script to fetch and download all files, directories, and serverless functions from a Vercel deployment.
- Host: GitHub
- URL: https://github.com/anjaniux/vercel-deployment-fetcher
- Owner: anjaniux
- License: mit
- Created: 2025-03-21T14:35:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-21T14:56:30.000Z (over 1 year ago)
- Last Synced: 2025-08-21T21:39:43.028Z (10 months ago)
- Topics: vercel, vercel-api, vercel-deployment
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vercel Deployment Fetcher




## π About
**Vercel Deployment Fetcher** allows you to retrieve and restore all files from a Vercel deployment, even if you've lost them locally. Whether you're recovering lost work or need to inspect your deployed files, this script makes it easy.
### π₯ Features
- Fetches all files, directories, and serverless functions from a Vercel deployment.
- Automatically decodes base64-encoded content.
- Saves everything in a structured format.
- Works for **any Vercel user**βjust provide your **Vercel Token** and **Deployment ID**.
## π¦ Installation
```sh
# Clone the repository
git clone https://github.com/anjaniux/vercel-deployment-fetcher.git
cd vercel-deployment-fetcher
# Install dependencies
npm install
```
## β‘ Usage
### 1οΈβ£ Configure your credentials
Create a `.env` file in the project root and add your **Vercel API Token** and **Deployment ID**:
````ini
VERCEL_TOKEN=your_vercel_token
DEPLOYMENT_ID=your_deployment_id
````
### 2οΈβ£ Run the script
```sh
node index.js
```
Once executed, all files will be restored inside the `deployment/` directory.
## π§ Troubleshooting
### Getting `403 Forbidden`?
Ensure your **Vercel Token** has the necessary permissions. Generate a new token from [Vercel's dashboard](https://vercel.com/account/tokens).
### Deployment not found?
Check that the **Deployment ID** is correct. You can find it in the **Vercel dashboard** under your deployment's details.
## π€ Contributing
Contributions are welcome! Feel free to fork this repo, submit issues, or open PRs.
## π License
This project is licensed under the MIT License.