Skip to content

Instantly share code, notes, and snippets.

@mihdan
Forked from morganestes/wp-beta-setup.sh
Created March 28, 2016 11:26
Show Gist options
  • Select an option

  • Save mihdan/830ee57b012e9f6ad7d7 to your computer and use it in GitHub Desktop.

Select an option

Save mihdan/830ee57b012e9f6ad7d7 to your computer and use it in GitHub Desktop.
Set up a WordPress site for beta testing with wp-cli.
#!/usr/bin/env sh
# Install the Beta Tester plugin and set it to "Bleeding Edge" releases.
# Note: after installing plugin and setting the option, you may need to visit
# the site once before updating core version.
wp-beta() {
wp plugin install wordpress-beta-tester --activate
wp option set wp_beta_tester_stream unstable
wp core update
wp core version --extra
}
wp-beta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment