Today we talk about how to use command line interface to do Magento 2 deploy static content theme.Doing the static content deployment is quite a headache. So today i will tell how to deploy content smartly. Magento 2 give option to deploy language example en_US, deploy area example frontend or adminhtml also the deploy the theme example blank or luma. Now we separate these with frontend and backend. This tutorial include the single theme deploy in magento 2, area base deployment example frontend or adminhtml and local base content deploy. Here is shortcut of adding the language area and theme.
-l = language
-a = area
-t = theme
Frontend theme deployment
By default you can use below command to deploy the static content. This is deploy static content for add the languages.
Now we add language filter so it deploy only my specific language example en_Us
After adding language filter we add the area specific filter so it deploy only my area language example frontend.
After adding area filter we add the theme filter so it deploy only my theme example luma.
Bakcend theme deployment
Using php bin/magento setup:static-content:deploy en_US after adding language filter we add the area specific filter so it deploy only my area language example backend. Now it will deploy the backend content only.
After adding area filter we add the theme filter so it deploy only my theme example backend.