Home

Awesome

WP CLI Faker

This package introduces two new WP CLI commands to generate fake data.

Install as WordPress package

This command can be installed for WP CLI by running:

wp package install yoast/wp-cli-faker.

In many cases the default memory limit will not be enough to run composer so running the following instead is generally recommended:

php -d memory_limit=512M "$(which wp)" package install yoast/wp-cli-faker

Install as WordPress Plugin

Clone the repo into your WordPress plugins folder.

This repo requires composer 1+ in order to be compatible with WP cli, so to use it as a plugin you must install dependencies with composer 1+. For ease of use composer 1 is shipped as a .phar file.

Run php composer.phar install.

Core

The wp faker core content command generates authors, attachments, categories, tags, posts and pages. It supports the following flags:

WooCommerce

The wp faker woocommerce products command generates attachments, product categories, brands ( if Perfect WooCommerce Brands is installed ), products and review. It supports the following flags: