It's been awhile since I worked on a Drupal 8 site. I have a freshly installed Ubuntu 20.04 server. Is there a simple one liner or script to install Drupal 8 now? Is drush still used or do people use the drupal cli instead that I read about? Trying to make this transition back to Drupal 8 as easy as possible.
Currently the best way to install any modern php application is through composer.
So to install Drupal 8 you tell composer the following.
composer create-project drupal/recommended-project:8.x-dev Drupal
this would install Drupal 8 into the Drupal dir.
composer create-project drupal/recommended-project Drupal
For the latest release (one of Drupal 9)
You can than install Drush into the vendor/bin directory with
composer require drush/drush if you also install the drush launcher you can run drush from anywhere in the drupal root.
Composer checks for all requirements it knows about (like dependencies for php and other php libraries.) modules can not be installed by it so it will ask you to do so.