I really never understanded really how to do it too, but I think it was something like "/i <item> name:<name> enchant:<enchant lvl>", I don't know, and also I heard from someone that the command was banned from creative, due to some issues. Ask an admin