Skip to content

A simple Node.js script to fetch and download all files, directories, and serverless functions from a Vercel deployment.

License

Notifications You must be signed in to change notification settings

anjaniux/vercel-deployment-fetcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vercel Deployment Fetcher

GitHub stars GitHub forks GitHub issues GitHub license

🚀 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

# 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:

VERCEL_TOKEN=your_vercel_token
DEPLOYMENT_ID=your_deployment_id

2️⃣ Run the script

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.

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.

About

A simple Node.js script to fetch and download all files, directories, and serverless functions from a Vercel deployment.

Topics

Resources

License

Stars

Watchers

Forks