2
php bin/magento dev:source-theme:deploy

What is the use of this above command? Explain briefly.

Thanks

5

Trick : use php bin/magento, this will output all commands with their purpose

enter image description here

So :

dev:source-theme:deploy = Collects and publishes source files for theme.

  • What is the use of creating less file in pub/static? – Priya Sep 26 at 4:38
4

Use this command to create symlinks to LESS files. Please check below URL which will help. URL: https://devdocs.magento.com/guides/v2.3/config-guide/cli/config-cli-subcommands-less-sass.html

3

This command runs to create symlinks to LESS files in project.

dev:source-theme: deploy: Collects and publishes source files for the theme.

Example:

To create LESS files for the frontend theme named VendorName/themeName in the en_US locale using a CSS file named <magento_root>/pub/static/frontend/VendorName/themeName/en_US/css/styles-l.css, enter the following command:

bin/magento dev:source-theme:deploy --type="less" --locale="en_US" --area="frontend" --theme="VendorName/themeName" css/styles-l

For more details refer official document:
https://devdocs.magento.com/guides/v2.3/config-guide/cli/config-cli-subcommands-less-sass.html

Check symlink file

enter image description here

  • How we can check this , if symlinks created or not? – Priya Sep 25 at 10:14
  • Hi priya check image to check symlink – Arunprabakaran M Sep 25 at 11:06
  • Yes. Thank You. – Priya Sep 25 at 12:04
  • It is creating less file in pub/Static , and what is the use of this when creating this less files?? – Priya Sep 25 at 13:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.