This question already has an answer here:
I want to enchant an item with Smite level 100 with commands, but i cant get past the maximum level. I searched for solutions, and tried them out, but it still won't work. I'm using Minecraft Pocket Edition.
The command I've tried was:
/enchant @a [r=4] 10 100