Skip to content

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

Notifications You must be signed in to change notification settings

sebastiaandegeus/domain-wpcli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages