database - tetloose/tetloose-wp GitHub Wiki
yarn db:push
Follow the prompts:
This will do the following:
- Export local database via wp-cli
- Rsync the database to server
- Import the database via wp-cli
- Search and replace urls
- Remove database local + server
yarn db:pull
Follow the prompts:
This will do the following:
- Export server database via wp-cli
- Rsync the database to local
- Import the database via wp-cli
- Search and replace urls
- Remove database local + server