A Library of WP-CLI Commands for BuddyPress

wp-cli-bpBuddyPress developers, here’s something new for your toolbox. Boone Gorges has created a WP-CLI community package of BuddyPress commands. This collection includes just a few commands that have helped him with BuddyPress development but he welcomes your pull requests.

So far, the commands include:

  • bp activate — Activate a component.
  • bp activity_create — Create a single activity item.
  • bp activity_generate — Generate a large number of random activity items.
  • bp deactivate — Deactivate a component.
  • bp group_create — Create new BuddyPress groups.
  • bp group_add_member — Add a member to a BuddyPress group.
  • bp member_generate — Create lots of site members, with the proper BP metadata.

Setting up a BuddyPress test site can be fairly time consuming, especially if you need enough demo data to properly test all of the components. The WP-CLI commands included here will get your site populated with plenty of random activity items, groups and site members, including the proper BP metadata, in a matter of seconds. This is a big time saver for testing BuddyPress core, themes and plugins.

The BuddyPress community package can be found on Github and is also listed on the WP-CLI package index, along with other community packages to improve your workflow.

1

One response to “A Library of WP-CLI Commands for BuddyPress”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Newsletter

Subscribe Via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Discover more from WP Tavern

Subscribe now to keep reading and get access to the full archive.

Continue reading