The Literal Commandment
"If you hear in one of your cities, which the LORD your God is giving you to live in, anyone saying that some worthless men have gone out from among you and have seduced the inhabitants of their city, saying, 'Let us go and serve other gods' (whom you have not known), then you shall investigate and search out and inquire thoroughly. If it is true and the matter established that this abomination has been done among you, you shall surely strike the inhabitants of that city with the edge of the sword, utterly destroying it and all that is in it and its cattle with the edge of the sword. (Deuteronomy 13:12-15)
The literal commandment is that we should not turn a city to idolatry.