Skip to main content

Magento2 Deploy specific theme with specific locale language

In this wiki, i will show you how to deploy the static content for specific theme and the locale languages 

First of all, we know that the Deploy command is 

php bin/magento setup:static-content:deploy

Now , if you need to deploy a theme we need to use this command

theme name : {vendor}/{them name}

Command: php bin/magento setup:static-content:deploy --theme {vendor}/{them name}

if you want to deploy many locale you can use this command

locales are : en_US, fr_FR

theme name : {vendor}/{them name}

Command: php bin/magento setup:static-content:deploy --theme {vendor}/{them name} en_US fr_FR

You can also deploy only the backend template by execute this command

php bin/magento setup:static-content:deploy  --area adminhtml