agattitech/wpcli-sanitize-db

从您的本地数据库中删除敏感数据

dev-master 2022-04-30 11:01 UTC

This package is not auto-updated.

Last update: 2024-09-22 03:57:24 UTC


README

通过替换为随机数据从您的本地数据库中删除敏感数据。

警告:这将覆盖您的本地数据库中的数据。

安装

作为wp-cli包安装

#!bash

wp package install git@bitbucket.org:freshconsulting/wpcli-sanitize-db.git

或者手动安装,克隆此仓库并将 sanitize-db.php 文件的路径添加到 ~/.wp-cli/config.yml 文件的 require 部分(有关详细信息,请参阅 https://make.wordpress.org/cli/handbook/config/#config-files)。

使用方法

#!bash

wp sanitize db