This involves turning cheats on, which can be done either when you first start a world, or at any time after that.
Minecraft has a built-in console feature that allows you to type in cheats at your command.
Minecraft cheats don't require the , but they still don't work in every version of the game.
Click on that option.