How can I do it with the command blocks?
it's simple to disable the collision for all mobs and players:
first, run these two commands, rather in impulse command blocks or in the chat window:
/team add nocol
/team modify nocol collisionRule never
then have a repeating command block with:
/team join nocol @e