Skip to content

Instantly share code, notes, and snippets.

@BenBroide
Last active April 23, 2017 18:25
Show Gist options
  • Save BenBroide/9d93b90b1de62de82a344f3b05c3ce06 to your computer and use it in GitHub Desktop.
Save BenBroide/9d93b90b1de62de82a344f3b05c3ce06 to your computer and use it in GitHub Desktop.
Cloud9 auto setup WordPress TwentySeventeen +Child theme activated with wp-cli
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
siteurl=$(hostname)
siteurl="${siteurl%-*}"
echo $siteurl
echo "${siteurl%-*}"
wp core install --url=example.com --title=QuickWP --admin_user=admin --admin_password=123456 --admin_email=info@example.com
wp scaffold child-theme twentyseventeen-child --parent_theme=twentyseventeen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment