You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add local development with WordPress Playground and cloud sync
- Local dev: create, clone, start, stop, push, pull, list, delete
- Clone flow: full site clone from InstaWP cloud (files + MySQL→SQLite DB)
- Background mode: --background flag with PID tracking and local stop
- Teams: client-side team switch with team_id injection on all API calls
- Sites list: 50 per page default, --all flag, pagination hints
- Site resolver: 10-minute cache for name→ID lookups
- Rsync: --itemize-changes (only shows changed files)
- Auto-login: finds first admin user, works with cloned sites
- AST SQLite driver: WP_SQLITE_AST_DRIVER=true for WooCommerce compat
- Vendor: mysql2sqlite (MIT, dumblob/mysql2sqlite) for DB conversion
- Terminal: stty sane after Playground exits
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
-**What**: AWK script that converts MySQL dump files to SQLite-compatible SQL
139
+
-**Used by**: `local clone` for database import
140
+
-**Version**: Vendored from master branch (2026-03-23)
141
+
-**Update procedure**: Download latest from `https://raw.githubusercontent.com/dumblob/mysql2sqlite/master/mysql2sqlite` and replace `scripts/mysql2sqlite`. Test with `instawp local clone` on a WooCommerce site to verify compatibility.
142
+
143
+
## Known Limitations
144
+
145
+
### Local clone + SQLite
146
+
-**WP_SQLITE_AST_DRIVER=true** is required for complex plugins (WooCommerce). The new AST-based SQLite driver (v2.2.1+) handles 99% of MySQL queries.
147
+
- Some MySQL-specific queries may still fail at runtime (rare edge cases in complex plugins)
148
+
- PHP deprecation warnings can crash WASM PHP — suppressed via mu-plugin (`error_reporting(E_ERROR | E_PARSE)`)
149
+
-`downloads.w.org` is unreachable on some networks — connectivity pre-check warns the user
81
150
82
151
## API Endpoints Used
83
152
84
153
| Endpoint | Used By |
85
154
|----------|---------|
86
155
|`GET /api/v2/sites`| sites list, site resolver |
87
156
|`GET /api/v2/sites/{id}/details`| site resolver |
88
-
|`POST /api/v2/sites`| sites create |
157
+
|`POST /api/v2/sites`| sites create, local push (auto-create)|
0 commit comments