Skip to content

victor-gabou/wordpress-replace-host-database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wordpress-replace-host-database

Node.js command to replace host in WordPress database

Simple usage

cd /path/to/wordpress-replace-host-database
node index.js https://example.com http://example.local wp_example.sql

Using a config file

cd /path/to/wordpress-replace-host-database
node index.js --config config.json wp_example.sql

config.json

[
  {
    "from": "https://fr.example.com",
    "to": "http://fr.example.local"
  },
  {
    "from": "https://example.com",
    "to": "http://example.local"
  }
]

About

Node.js command to replace host in WordPress database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published