GithubHelp home page GithubHelp logo

wp-cli-faker's Introduction

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 [email protected]:Yoast/wp-cli-faker.git.

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 [email protected]:Yoast/wp-cli-faker.git

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:

  • authors: The number of authors to generate, by default 10.
  • attachments: The number of attachments to generate, by default 10.
  • attachment-keyword: The keyword to search for on loremflickr.com, by default wordpress.
  • categories: The number of categories to generate, by default 10.
  • tags: The number of tags to generate, by default 25.
  • posts: The number of posts to generate, by default 100.
  • pages: The number of pages to generate, by default 5.

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:

  • attachments: The number of attachments to generate, by default 10.
  • attachment-keyword: The keyword to search for on loremflickr.com, by default jewelry.
  • categories: The number of product categories to generate, by default 25.
  • brands: The number of brands to generate, by default 25.
  • products: The number of products to generate, by default 300.
  • min-reviews: The minimum number of reviews to generate per product, by default 3.
  • max-reviews: The maximum number of reviews to generate per product, by default 8.

wp-cli-faker's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.