Giter Club home page Giter Club logo

wp-lando's Introduction

wp-lando example for WordCamp Orange County 2019

Example custom command in a WP-CLI Package for automating WordPress setup in Lando using WP-CLI.

๐Ÿ”— Slides

Install This Package

At present, I recommend forking this repo and modifying it to your liking.

Or, install this repo as a package.

  1. lando init --recipe=wordpress
  2. lando start
  3. lando wp package install [email protected]:0aveRyan/wp-lando.git

See below for usage of the wp lando install command

WordPress Credentials
User: lando
Password: lando

I recommend forking this, because it installs a bunch of personal preferences and names the lando user Dave Ryan. In the future, I may expand this command to be more reusable or add additional commands as I try to automate more of my Lando workflows.

Usage

Install Command

wp lando install [subdomain-string/site_url]

(if you're using this with Lando, you're probably typing lando wp lando install ...)

Parameters
  • wp lando install $url or --url= [string]

Lando puts sites at https://{slug}.lndo.site, so you can type either the slug or the full URL

  • wp lando install $url $title or --title= [string]

This allows you to set the Site Title.

--

I realized that for months I was spending about 30-60 minutes each week -- or a total of 48 hours annually -- configuring environments, installing the tools I needed as-needed, etc.

So instead of writing a script, I spent an hour writing a custom WP-CLI Command I can install as a WP-CLI Package.

I'll break even on my time investment in a week or two.

wp-lando's People

Contributors

0averyan avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.