ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 50 - AD0-E720 discussion

Report
Export

An Adobe Commerce developer wants to create symlinks for the frontend theme named Vendor/Orange using a CSS file: <magento_root>/pub/static/frontend/Vendor/Orange/en_US/css/styles-l.css during development.

Which CLI command would the developer use to create symlinks for the en_US locale?

A.
bin/magento dev:theme:deploy --locale='en__US' --theme='Vendor/Orange' css/styles-1
Answers
A.
bin/magento dev:theme:deploy --locale='en__US' --theme='Vendor/Orange' css/styles-1
B.
bin/magento dev:source-theme:deploy --type=Mless' --locale='en_US' --theme='Vendor/Orange' css/styles-1
Answers
B.
bin/magento dev:source-theme:deploy --type=Mless' --locale='en_US' --theme='Vendor/Orange' css/styles-1
C.
bin/magento deploy:mode:set theme --locale='en_US' --area='frontend' css/styles-1
Answers
C.
bin/magento deploy:mode:set theme --locale='en_US' --area='frontend' css/styles-1
Suggested answer: B

Explanation:

The bin/magento dev:source-theme:deploy command is used to create symlinks for frontend theme files during development. This command allows the developer to modify source files without running static content deployment every time. The developer can use parameters to specify the type, locale, theme, and file names for creating symlinks. For example, to create symlinks for a CSS file named styles-l.css for the Vendor/Orange theme and the en_US locale, the developer can use:

bin/magento dev:source-theme:deploy --type=less --locale=en_US --theme=Vendor/Orange css/styles-l

The other two options are incorrect because they do not create symlinks for frontend theme files. The bin/magento dev:theme:deploy command is used to register themes with Magento and clear caches. The bin/magento deploy:mode:set command is used to change the application mode.

Reference:Adobe Commerce Developer Documentation,Adobe Inc.


asked 02/10/2024
Dmitrii Nikolaevich
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first