Command to install Drupal 9 with Composer
题
The latest version of Drupal 8 can be installed via Composer with the following command:
composer create-project drupal/recommended-project mynewproject
What is the equivalent command to install the latest version of Drupal 9 (beta1)?
解决方案
create-project
can take a version number, and recommended-project has some tags in for 9.x, so for example:
composer create-project drupal/recommended-project mynewproject "9.0-beta1"
Or if you just want the bleeding edge to play with:
composer create-project drupal/recommended-project mynewproject "^9.0" --stability=dev --prefer-dist
其他提示
If you use composer create-project drupal/recommended-project
it will now install D9
不隶属于 drupal.stackexchange