メインコンテンツに移動

LandoでDrupal9のインストール

2021.02.02   2023.04.11

LandoでDrupal9のインストール。

今回は「drupal/recommended-project」で行う。

lando環境経由でdrushを実行する場合は、先頭に「lando」を入力します。

$ composer create-project drupal/recommended-project drupal_test
$ cd drupal_test
$ lando init
? From where should we get your app's codebase? current working directory
? What recipe do you want to use? drupal9
? Where is your webroot relative to the init destination? web
? What do you want to call this app? drupal_test

lando起動

$ lando start

Drush インストール

$ lando composer require drush/drush

drush キャッシュクリア

$ lando drush cr

drush ステータス

$ lando drush st

landoのステータス

$ lando info

drush ユーザーログイン

$ lando drush uli

DBダンプ

lando db-export dbname

DBリストア

lando db-import dbname.gz