In this tutorial, we will guide you on how to use commands in Minecraft Bedrock Edition. Minecraft offers a feature called commands aka slash commands. Players can run these commands to manipulate game play and do some fun tasks. To get started, you should turn on cheats first.
Finally, after you have enabled cheats, you need to open chat screen in your minecraft world. In chat you can type your commands like a regular chat message. Minecraft will automatically execute your command.

Below we have listen some common chat command examples.
/give @s minecraft:diamond_sword 1
This command gives the player 1 diamond sword in Minecraft.
/summon warden
This command summons a warden at player location.
/clear
This command clears player inventory.
For full list of commands and documentation visit microsoft docs.