Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 484 Bytes

File metadata and controls

15 lines (8 loc) · 484 Bytes

domain-wpcli

Switch domains for a WordPress single site or network from the command line with WP CLI

##usage

Its's easy update the database with the new domain by using the following command. It uses 2 parameters and . http or https doesn't have to be added. The command is protocol independent.

wp domain move <old> <new>

wp domain move dev.domain.com test.domain.com

Remember to update vhost configuration and hosts files if necessary.