I noticed that if you search google for "word to text command line" the very first result is a closed question on Stack Overflow:
How to extract just plain text from .doc & .docx files? (unix)
Although it's closed as off topic, the fact that it's the top search result suggests that it has gotten something right! Shouldn't it be migrated to another site? Software Recommendations was suggested in comments, but it seems like a candidate for Super User as well. In any case, it's a shame that the most useful link addressing this question is closed and posted on the wrong site. Seems like a broken window.
I should add that I don't see it as a "shopping list" question, although I see that it is worded in a way that might invite that interpretation. The title says "how to," and I think that's the right interpretation. I think it is off-topic -- but I don't think it would be on another site.
(I could have just flagged, but I don't think I have a good handle on the right way to propose migrations, so I decided to ask.)