commands / demyx wp
No results for ""
demyx wp
Usage
demyx wp <app> <wp-cli args>
demyx wp all <wp-cli args>Description
Executes WP-CLI commands inside the app's WordPress container. Any arguments after the app name are passed directly to wp.
Examples
# List installed plugins
demyx wp domain.tld plugin list
# Update all plugins
demyx wp domain.tld plugin update --all
# Update all themes
demyx wp domain.tld theme update --all
# Update WordPress core
demyx wp domain.tld core update
# Search and replace in database
demyx wp domain.tld search-replace 'http://domain.tld' 'https://domain.tld'
# Export database
demyx wp domain.tld db export /tmp/backup.sql
# Import database
demyx wp domain.tld db import /tmp/backup.sql
# Create a new admin user
demyx wp domain.tld user create newadmin admin@domain.tld --role=administrator
# Flush rewrite rules
demyx wp domain.tld rewrite flush
# Run on all apps (e.g. update all plugins across all sites)
demyx wp all plugin update --allNotes
- Commands run as the
demyxuser inside the container. - Use
demyx exec domain.tld -rif you need root access for file operations. demyx wp allskips apps that return errors, so it's safe to use on multiple sites.
Related
demyx exec— full shell access to any containerdemyx config --wp-update— enable automatic WP-CLI updates via cron