I am using magento 2.0.4 and using this <code>php -dmemory_limit=8G bin/magento setup:static-content:deploy --theme Rws/fonddecave en_US de_DE fr_FR</code> But error is coming --theme option does not exists. What is my mistake can any one help on this?
– Raghwendra OjhaApr 20 at 4:55

If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review
– Shoaib MunirApr 20 at 5:55

7 Answers
7

I'm afraid that you just can't deploy only one theme by magento console setup:static-content:deploy command.

I've been dealing with M2 frontend development for the last 2 weeks and I can affirm that the dev process it's a real PAIN! You'll lost a lot of time deploying changes due to complexity of less files hierarchy and themes fallbacks.

Anyway I'm Grunt by now here you'll find how to install, configure and use it, with Grunt you can deploy and/or recompile less files for a single theme.

So that approach it's ok if you are in "developer" mode because Grunt doesn't deploy images, fonts and javascript files to pub/static/... so magento will do it the first time required.

To activate developer mode, run:

php bin/magento deploy:mode:set developer

If you are looking for a way to deploy the entire content for a single theme in production I sorry to say that isn't possible.

can you guid me how to make change in css through less i am stuck in topmenu. some item found but some are not but there css is there.. like .nav-sections child level0.
– Qaisar SattiFeb 10 '16 at 7:35

What about when you edit a JS plugin? I found out that the changes were not getting reflected on the site. I had to remove the edited JS file from pub/static and redeploy (setup:static-content:deploy) for the changes to show.
– thdoanJun 28 '16 at 1:32

Not sure why this is the accepted answer, the one below is much better.
– TischJul 5 '18 at 14:10

@MathewTinsley, is it possible to deploy a specific frontend theme in all languages, and a specific backend theme only in one language? I don't need my backend in all languages..
– bpoissAug 9 '18 at 12:01