I always get the command block through the give command which is "/give @p command_block". I put it onto a command block with a pressure plate so I dont have to ...