Magento 2 Deploy Command Line
In this tutorial, we will talk about Deploy Command Line in Command Line Series. As you know, from Magento 2, they add many commands in bin/magento
. This may difficult to get approach this , let me explain more detail about it.
Deploy command line
Commands syntax:
php bin/magento setup:static-content:deploy <lang> ... <lang> [--dry-run]
How to run deploy static content
php bin/magento setup:static-content:deploy
It will display as the following:
$ php bin/magento setup:static-content:deploy
Requested languages: en_US
=== frontend -> Magento/blank -> en_US ===
........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
By default it will run deploy static content of default language: en_EN
If you want to deploy static content of other language such as: pt_BR
Run
php bin/magento setup:static-content:deploy pt_BR
Then get result:
Requested languages: pt_BR
=== frontend -> Magento/luma -> pt_BR ===
... progress indicator ...
Successful: 1613 files; errors: 0
=== frontend -> Magento/blank -> pt_BR ===
... progress indicator ...
Successful: 1620 files; errors: 0
=== adminhtml -> Magento/backend -> pt_BR ===
... progress indicator ...
Successful: 1626 files; errors: 0
=== Minify templates ===
... progress indicator ...
Successful: 858 files modified
---
Related Topics
Enjoyed the tutorial? Spread it to your friends!
magento-2-module-development
command
line
cli
console
indexer
reindex

Sam Thomas
CEO and Founder of Mageplaza. Pursueing a simple and healthy lifestyle. A friend, a husband and a dad of two children, a trainer and an influencer wannabe. He is a big fan of sports and travel, also.
Featured Extensions

One Step Checkout
$199
198 reviews

Layered Navigation
$99
96 reviews

Automatic Related Products
$199
32 reviews

PDF Invoice
$199
26 reviews

Affiliate
$99
30 reviews

Reward Points
$99
23 reviews

CRO
$645
4 reviews

Product Feed
$149
37 reviews