Skip to content

Instantly share code, notes, and snippets.

@morganestes
Last active May 15, 2017 07:56
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save morganestes/ddd76c6842000bdd7c89 to your computer and use it in GitHub Desktop.
Save morganestes/ddd76c6842000bdd7c89 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
@corradomatt
Copy link

Thanks for this Morgan! Have you ever tried it in conjunction with a CI system like travis or codeship?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment