php bin/magento dev:source-theme:deploy
What is the use of this above command? Explain briefly.
Thanks
php bin/magento dev:source-theme:deploy
What is the use of this above command? Explain briefly.
Thanks
Trick : use php bin/magento
, this will output all commands with their purpose
So :
dev:source-theme:deploy
= Collects and publishes source files for theme.
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
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