Commands

Commands (AKA Cheats) are actions entered by the Player which make a certain action occur in the game automatically. Commands were added in Update 0.16.0.

Usage
Commands are mostly used to make any action in-game happen automatically, such as Mob spawning, Block placing, inflicting Status Effects, teleporting, etc.

To execute a command The Player must enter Chat, precede the command with a forward slash, give the arguments and hit the return key. For devices having the Tab-key, it can be used to complete parts of the commands. When typing, possible completion will show.

Note that for Commands to work, "Cheats" needs to be enabled, which in turn will disable achievements. To turn on cheats, go to Settings > Game > Cheats: On.

List of Commands
For a more detailed list, see here.  The current commands in Minecraft Pocket Edition are-
 * – Copies blocks from one place to another
 * - connects to a server in-game (Update 1.0)
 * – Revoke operator status from a player
 * – Enchants a player item
 * – Executes another command
 * – Fills a region with a specific block
 * – Sets a player's game mode
 * – Gives an item to a player
 * – Provides help for commands
 * – Kills entities (players, mobs, items, etc.)
 * – Lists players on the server
 * - Locates the nearest selected structure (Update 1.0)
 * – Grants operator status to a player
 * – Displays a message to multiple players
 * – Changes a block to another block
 * – Sets the world spawn
 * – Sets spawn point for a player
 * – Summons an entity
 * – Displays a private message to other players
 * – Tests whether a block is in a location
 * – Tests whether the blocks in two regions match
 * – Changes or queries the world's game time
 * – Toggles the weather
 * – Teleports entities
 * – Sets the weather
 * – Connects to WebSocket servers. Used by developers
 * – Adds or removes player experience

Command arguments
Most commands accept arguments, i.e., where the first part indicates what the arguments refers to, and the second part refers to the type of argument. In the example given you identify a  by using a   type argument. The different types of arguments are described within this section.

string
Any combination of alphanumeric characters.

int
A number, which might have range assosicated with it. It might be a negative number.

x y z
A coordinate set of 's denoting a coordinate. The  value indicates distance towards the East from the origin. The  value indicates height above bedrock. The  value indicates distance towards North from the origin. Note that to use The Player's position you might use '~' or offsets based upon this. I.e. the command move The Player 5 meters/blocks to the East, keep the height, and 10 meters/blocks to the South (as it is a negative offset).

Target
Instead of specifying coordinates, some commands allow specifying a target. This can relate both to players and entities.


 * – All players


 * – All entities


 * – Nearest players


 * – Random player(s)

These selector arguments can be further specified using text like in which would kill all cows within a radius of 10 meters/blocks.

Trivia

 * In Update 0.16.0, 24 different Commands were added to MCPE.
 * Commands have been used in many Multiplayer Servers even before they were officially released. However, this was done through Plugins.
 * Commands were originally slated for Update 0.15.0, however, they were not added.