How can I use the CLI setup for Magento 2.4 on a Starter Platform ?

When you built your v2.4 platform, some variables are automatically setup to simplify accesses to Elasticsearch. You can use a command like this one to install Magento (use your information and your DNS record like it's shown on the console for url parameter):

bin/magento setup:install \
--db-host=127.0.0.1 \
--db-name=$ARTIFAKT_MYSQL_DATABASE_NAME \
--db-user=$ARTIFAKT_MYSQL_USER \
--db-password=$ARTIFAKT_MYSQL_PASSWORD \
--admin-firstname=admin \
--admin-lastname=admin \
--admin-email=admin@admin.com \
--admin-user=admin \
--admin-password=$MYSQL_PASSWORD \
--language=en_US \
--currency=USD \
--timezone=America/Chicago \
--use-rewrites=1 \
--backend-frontname=admin \
--search-engine=elasticsearch7 \
--elasticsearch-host=localhost \
--elasticsearch-username=artifakt \
--elasticsearch-port=9200 \
--base-url=https://xxxx/ \
--base-url-secure=https://xxx/
Was this article helpful?
0 out of 0 found this helpful