The Lord had commanded his servant Moses to do all of those things. Moses had passed that command on to Joshua. And Joshua carried it out. He did everything the Lord had commanded Moses.