Quick Start Guide
Get a WordPress site running with AI-powered development.
Quick Setup
bash
# 1. Clone and enter directory (30 seconds)
git clone https://github.com/wdgdc/wdg-ai-dev.git && cd wdg-ai-dev
# 2. Run installer (2-3 minutes)
./install.sh
# 3. Create your site (30 seconds)
wdg create my-site
# 4. Start it (30 seconds)
wdg my-site start
# 5. Open in browser
open http://localhost:8880You now have a fully functional WordPress site with AI code search capabilities.
What You've Set Up
Your installation includes:
- ✅ WordPress with Wikit framework
- ✅ MySQL database
- ✅ Vector database for AI search
- ✅ Custom theme from template
- ✅ Local AI embeddings (no external API dependencies)
Essential Commands
Search Your Code with AI
bash
# Index your project for AI search
wdg my-site index
# List all indexed collections
wdg collections listManage Your Project
bash
# Check status
wdg status
# View logs
wdg my-site logs
# Stop the project
wdg my-site stop
# List all projects
wdg listConnect Claude Desktop (Optional)
Add to your Claude Desktop config:
json
{
"mcpServers": {
"wdg": {
"command": "curl",
"args": ["-X", "POST", "http://localhost:8765/"],
"env": {}
}
}
}Claude can now search your codebase through the MCP protocol.
Troubleshooting
Check project status
bash
# See if your project is running
wdg status
# Start project if it's not running
wdg my-site startRestart a project
bash
# If the project is running but having issues
wdg my-site restartView logs
bash
# Check logs for errors
wdg my-site logs
# Follow logs in real-time
wdg my-site logs --followReset database
bash
# Reset to fresh WordPress installation (keeps project)
wdg my-site db resetDelete and recreate project
bash
# Complete project removal and recreation
wdg my-site delete --force
wdg create my-siteRun diagnostics
bash
# Check system health
wdg doctorNext Steps
Continue Learning:
Advanced Topics:
You've successfully set up an AI-powered WordPress development environment with local code indexing.