Skip to content

Getting Started

Requirements

Before you get started with this recipe we assume that you have:

  1. Installed Lando and gotten familiar with its basics.
  2. Initialized a Landofile for your codebase for use with this recipe.
  3. Read about the various services, tooling, events and routing Lando offers.

Quick Start

Try out the relevant commands below to spin up a new Landoified vanilla WordPress site.

bash
# Create folder and enter it
mkdir wordpress && cd wordpress

# Initialize a wordpress recipe using the latest WordPress version
lando init \
  --source remote \
  --remote-url https://wordpress.org/latest.tar.gz \
  --recipe wordpress \
  --webroot wordpress \
  --name my-first-wordpress-app

# Start it up
lando start

# List information about this app
lando info

# Create a WordPress config file
lando wp config create \
  --dbname=wordpress \
  --dbuser=wordpress \
  --dbpass=wordpress \
  --dbhost=database \
  --path=wordpress

# Install WordPress
lando wp core install \
  --url=https://my-first-wordpress-app.lndo.site/ \
  --title="My First Wordpress App" \
  --admin_user=admin \
  --admin_password=password \
  --admin_email=admin@my-first-wordpress-app.lndo.site \
  --path=wordpress
powershell
# Create folder and enter it
New-Item -ItemType Directory -Name "wordpress" | Set-Location

# Initialize a wordpress recipe using the latest WordPress version
lando init `
  --source remote `
  --remote-url https://wordpress.org/latest.tar.gz `
  --recipe wordpress `
  --webroot wordpress `
  --name my-first-wordpress-app

# Start it up
lando start

# List information about this app
lando info

# Create a WordPress config file
lando wp config create `
  --dbname=wordpress `
  --dbuser=wordpress `
  --dbpass=wordpress `
  --dbhost=database `
  --path=wordpress

# Install WordPress
lando wp core install `
  --url=https://my-first-wordpress-app.lndo.site/ `
  --title="My First Wordpress App" `
  --admin_user=admin `
  --admin_password=password `
  --admin_email=admin@my-first-wordpress-app.lndo.site `
  --path=wordpress

Log in with admin and password at https://my-first-wordpress-app.lndo.site/wp-login.php