
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
web-clone-cli
Advanced tools
🤖 A powerful command-line tool to clone websites and apply AI-powered changes with ease!
🎯 Clone websites quickly and easily
Downloads the HTML, CSS, JavaScript, and images of any website with a single command
🤖 AI-powered website modifications
Uses OpenAI's GPT models to intelligently modify cloned websites based on your natural language instructions
💬 Interactive command-line interface
Provides an intuitive, user-friendly interface that makes website cloning accessible to everyone
🛠️ Comprehensive file manipulation tools
Offers a complete suite of tools for creating, reading, writing, and manipulating files and directories
🔄 Iterative refinement
Apply changes step-by-step, refining the output until you achieve exactly what you envision
🌍 Environment-based configuration
Simple setup using environment variables for API keys and model preferences
Before you begin, ensure you have the following installed:
Requirement | Version | Download Link |
---|---|---|
🟢 Node.js | 18+ | nodejs.org |
🥖 Bun | 1.2.18+ | bun.sh |
🔑 OpenAI API Key | - | OpenAI Platform |
npm i -g web-clone-cli
# Clone the repository
git clone https://github.com/ashu-dwd/web-clone-cli.git
# Navigate to the project directory
cd web-clone-cli
# Install dependencies
bun install
Create environment file:
touch .env
Add your API credentials:
# 🔑 Required: OpenAI Configuration
OPENAI_API_KEY=your_openai_api_key_here
OPENAI_MODEL_NAME=gpt-4o-mini
# 🌟 Optional: Gemini Configuration (Future Updates)
GEMINI_API_KEY=your_gemini_api_key_here
GEMINI_MODEL_NAME=your_gemini_model_name
Variable | Description | Status |
---|---|---|
OPENAI_API_KEY | Your OpenAI API key for AI-powered modifications | ✅ Required |
OPENAI_MODEL_NAME | OpenAI model to use (recommended: gpt-4o-mini ) | ✅ Required |
GEMINI_API_KEY | Gemini API key for future features | 🔮 Optional |
GEMINI_MODEL_NAME | Gemini model name for future features | 🔮 Optional |
💡 Pro Tip: Get your OpenAI API key from platform.openai.com
Launch the CLI and start creating:
webclone-cli
The interactive interface will guide you through the process! 🎯
Here are some inspiring examples to get you started:
🎨 Design Changes |
---|
"Clone https://example.com and change the title to 'My Awesome Website'" |
"Clone https://example.com and make the background a beautiful gradient" |
"Clone https://example.com and add a modern dark theme" |
🔧 Interactive Elements |
---|
"Clone https://example.com and add a button that says 'Click Me'" |
"Clone https://example.com and add a contact form with validation" |
"Clone https://example.com and create a responsive navigation menu" |
🎪 Advanced Modifications |
---|
"Clone https://example.com and add smooth scrolling animations" |
"Clone https://example.com and integrate a modern card layout" |
"Clone https://example.com and add interactive hover effects" |
Our comprehensive toolkit includes:
Tool | Purpose | Input | Output |
---|---|---|---|
📂 readDir | Browse directory contents | Directory path | File/folder list |
📄 createFile | Create new files | File path | Success confirmation |
✍️ writeFile | Write content to files | File path + content | Updated file |
📁 createFolder | Create new directories | Folder path | New directory |
📖 readFile | Read file contents | File path | File content |
🌐 cloneWebsite | Clone entire websites | Website URL | Cloned site path |
# 📂 Explore cloned website structure
readDir ./cloned-website
# ✍️ Modify specific files
writeFile ./cloned-website/index.html "<updated content>"
# 🌐 Clone your favorite website
cloneWebsite https://your-favorite-site.com
Problem | Solution |
---|---|
🔴 CLI not working | ✅ Verify all prerequisites are installed and environment variables are configured |
🤖 AI not generating desired output | 💡 Try rephrasing your request with more specific instructions or examples |
🔑 Authentication errors | 🔧 Double-check your API keys in the .env file |
📦 Installation failures | 🔄 Try clearing npm cache: npm cache clean --force |
We welcome contributions from the community! 🎉
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)Thanks to all the amazing people who have contributed to this project!
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ by Raghvendra Dwivedi
🐛 Report Bug • ✨ Request Feature • 💬 Discussions
Happy cloning! 🚀
FAQs
A CLI tool to clone websites
The npm package web-clone-cli receives a total of 10 weekly downloads. As such, web-clone-cli popularity was classified as not popular.
We found that web-clone-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.