Mark Shust created a module for this purpose which is developer-friendly while keeping secure defaults in place; ref his comments about it


if you want to install version using CLI these are basic steps you should follow. check if elastic server is installed, using : **curl elastic-server-ip:port** //example -> curl localhost:9200 it will output server info if started otherwise start the server afte this, download Magento2.4 using composer mkdir DIRECTORY_NAME_WHERE_YOU_WANT_TO_INSTALL cd ...


Example of CLI command install : php bin/magento setup:install --base-url="http://yourdomaine.com/" --base-url-secure="http://yourdomaine.com/" --backend-frontname="admin" --session-save="files" --db-host="localhost" --db-name="your-db-name" --db-user="your-db-user" --db-password="...

Only top voted, non community-wiki answers of a minimum length are eligible