Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@scarstens
Last active March 26, 2019 22:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scarstens/e16f27b40aba2c6af4e33922c6f18050 to your computer and use it in GitHub Desktop.
Save scarstens/e16f27b40aba2c6af4e33922c6f18050 to your computer and use it in GitHub Desktop.
Lando Initializer
lando init --recipe=wordpress --webroot=. --option via=nginx --option php=7.2 --option database=mariadb --option xdebug=true --source=cwd --name=osp
lando start
lando wp core download
lando wp config create --dbname=wordpress --dbuser=wordpress --dbpass=wordpress
lando wp core install --quiet --admin_email="admin@lando.site" --title="LandoSite" --admin_user=admin --admin_password=password --url=https://osp.lndo.site
lando wp theme delete twentythirteen ; lando wp theme delete twentyfourteen; lando wp theme delete twentyfifteen; lando wp theme delete twentysixteen; lando wp plugin delete hello; lando wp plugin delete akismet;;
@johnciacia
Copy link

Not sure if this recently changed, but you need to also specify the --dbhost as database otherwise it will use localhost by default.

lando wp config create --dbname=wordpress --dbuser=wordpress --dbpass=wordpress --dbhost=database

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