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
Command-line interface for Local WordPress development.
Architecture
graph LR
subgraph "Your Terminal"
CLI[lwp CLI]
end
subgraph "Local App"
GQL[GraphQL Server]
Addon[CLI Addon]
Sites[(WordPress Sites)]
end
CLI -->|GraphQL| GQL
GQL --> Addon
Addon -->|Manages| Sites
Loading
Installation
npm install -g @local-labs-jpollock/local-cli
AI Assistant Integration (Claude Code)
lwp skill install
This installs a Claude Code skill so AI assistants can manage your Local sites.
Quick Start
# List all sites
lwp sites list
# Start a site
lwp sites start my-blog
# Run WP-CLI commands
lwp wp my-blog plugin list
# Export database
lwp db export my-blog
# Push to WP Engine
lwp wpe push my-blog
Features
Site Management: Create, start, stop, delete, clone, export/import sites
WP-CLI Integration: Run any WP-CLI command against your sites
Database Operations: Export, import, open Adminer
Cloud Backups: Create, restore, list backups (Dropbox, Google Drive)
lwp wp <site><command...># Examples
lwp wp my-blog plugin list
lwp wp my-blog option get siteurl
lwp wp my-blog user list --format=json
Database
Command
Description
lwp db export <site>
Export database to SQL
lwp db import <site> <sqlFile>
Import SQL file
lwp db adminer <site>
Open Adminer UI
Backups
Command
Description
lwp backups status
Check backup service status
lwp backups list <site>
List backups
lwp backups create <site>
Create backup
lwp backups restore <site> <id>
Restore backup
lwp backups delete <site> <id>
Delete backup
WP Engine
Command
Description
lwp wpe status
Check WPE connection
lwp wpe login
Authenticate with WPE
lwp wpe logout
Logout from WPE
lwp wpe sites
List WPE sites
lwp wpe link <site>
Show WPE connection
lwp wpe push <site>
Push to WPE
lwp wpe pull <site>
Pull from WPE
lwp wpe history <site>
View sync history
lwp wpe diff <site>
Show file differences
Blueprints
Command
Description
lwp blueprints list
List blueprints
lwp blueprints save <site> <name>
Save as blueprint
Services
Command
Description
lwp services list
List available services
System
Command
Description
lwp info
Show Local app info
lwp update
Update CLI to latest version
lwp analytics show
Show analytics status
lwp skill install
Install Claude Code skill
Global Options
Option
Description
--json
Output in JSON format
--quiet
Minimal output
--no-color
Disable colors
Development
# Clone the repository
git clone https://github.com/jpollock/local-addon-cli.git
cd local-addon-cli
# Install dependencies
npm install
# Build
npm run build
# Run tests
npm test# Run E2E tests (requires Local running)
npm run test:e2e -w packages/cli