Save 37% off PRO during our Black Friday Sale! »

Valet + WP-CLI + Bash

Valet + WP-CLI + Bash

Spin up a local WordPress deployment and remote repo using Laravel Valet, WP-CLI, and Bash

001d31c08d463fb4014aa1223f1319fc?s=128

Alonso Indacochea

June 02, 2016
Tweet

Transcript

  1. VALET + WP-CLI + BASH ALONSO INDACOCHEA - @ALONSO_IN

  2. LARAVEL VALET WHAT IS IT? ▸ Local dev environment for

    Mac OS X ▸ Allows sharing by local tunnel ▸ No Vagrant, no Apache, no Nginx ▸ Leverages Caddy, DnsMasq, ngrok ▸ Good for machines with limited RAM
  3. LARAVEL VALET REQUIREMENTS ▸ Homebrew ▸ PHP ▸ MySQL /

    MariaDB ▸ Composer (for installation) ▸ More info: https://laravel.com/docs/5.2/valet
  4. WP-CLI WHAT IS IT? ▸ Command line interface for WordPress

    ▸ Install core ▸ Install, activate, remove plugins ▸ Install, activate, remove themes ▸ Add and remove pages, posts, sidebars, widgets ▸ Edit wp-config.php ▸ More info: https://wp-cli.org
  5. WPINSTALL WORDPRESS INSTALL CUSTOM BASH SCRIPT ▸ Creates local WordPress

    installation ▸ Hardens core ▸ Creates Bitbucket repo (or lets you clone existing repo) ▸ Removes Hello Dolly & Akismet, installs dev plugins ▸ Removes sample posts, adds pages, posts, widgets ▸ Installs starter theme + npm, gulp, sass support ▸ Customizes WordPress dashboard ▸ Opens site on Chrome and functions.php in Atom
  6. WPINSTALL REQUIREMENTS (AS IS) ▸ Sass ▸ Node, npm, gulp

    ▸ Bitbucket account ▸ Genesis framework ▸ git ▸ WordPress .gitignore ▸ Chrome ▸ Atom
  7. DEMO!

  8. GITHUB.COM/AINDACO1/WPINSTALL FIND MY SCRIPT AT