{"repo":"nlemoine/wp-cli-fixtures","free":true,"listed":false,"github":"https://github.com/nlemoine/wp-cli-fixtures","clone":"git clone https://github.com/nlemoine/wp-cli-fixtures.git","description":"Easily generate custom fake data for WordPress using YAML and WP-CLI","language":"PHP","stars":102,"topics":["wp-cli","fixtures","fake","wordpress","fake-content","wp-cli-package"],"license":"GPL-3.0","category":"cli-tools","readme_excerpt":"wp-cli-fixtures ========================= Inspired by Faker, this package provides an easy way to create massive and custom fake data for your WordPress installation. This package is based on nelmio/alice and fzaninotto/Faker. Please refer to these packages docs for advanced usage. WARNING: This package is mostly intented to be used for development purposes. Use it at your own risk, don't run it on a production database or make sure to back it up first. Quick links: Install Usage Contribute Install Requires PHP ^7.3 . Usage Create fixtures At the root of your project, create a fixtures.yml file (you can download it here): The example above will generate: - 10 users - 15 attachments - 10 categories - 40 tags - 30 posts with a thumbnail, 3 categories and 5 tags - 10 pages - 15 custom post types named 'product' - 50 comments associated with post and user - 1 nav menu - 6 nav menu items IMPORTANT: Make sure referenced IDs are placed BEFORE they are used. Example: Term or Attachment objects must be placed before Post if you're referencing them in your fixtures. Load fixtures You can also specify a custom file by using the --file argument: Delete fixtures You also can delete a single fixture type: Valid types are post , attachment , comment , term , user . Add fake data to existing content wp-cli-fixtures allows you to add/update content to existing entities by passing the ID as a constructor argument. Add/update data to post ID 1: Add/update data to 10 random existing posts: Entit","default_branch":null,"files":null,"tree":[],"storefront":"/r/nlemoine","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nlemoine/wp-cli-fixtures/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}