Skip to main content
Building with AI (Vibe Coding)

⏱ About 10 min10 XP

What Is a Command?

Imagine you have a very helpful robot friend. You can talk to it and it will do things for you. But your robot friend only does one thing at a time. Each thing you ask it to do is called a command. Today you will learn what a command is and what makes a command really good.

A Command Is One Clear Instruction

A command is one direction that tells a computer exactly what to do. Here is an important word: clear. A clear command has no fuzzy parts. It does not say 'do something fun.' It says exactly what it means. Here are some examples: Not clear: 'Make it nice.' Clear: 'Draw a yellow star in the middle of the screen.' Not clear: 'Fix it.' Clear: 'Change the word Hello to the word Goodbye.' The clear commands tell the computer the who, what, and where. There is no guessing needed!

The Big Idea

A command is one clear instruction. The clearer the command, the better the computer can follow it!

Commands are everywhere. When you tap a button on a tablet, you are giving the tablet a command: 'Open this app.' When you say 'Hey, computer, play music,' that is a command too. Even in everyday life, we use commands. A traffic light gives drivers a command: 'Stop' or 'Go.' A recipe card gives a cook commands: 'Stir the batter for two minutes.' Clear commands help everyone — people and computers alike!

Fill in the blank with the correct word.

A command is one instruction that tells a computer what to do.

A great command does three things: 1. It says what action to take (draw, write, open, close, play). 2. It says what to do it to (a circle, a word, the music, the file). 3. It gives any details needed (red, big, slowly, at the top). When your command has all three parts, a computer — or anyone reading it — can follow it with no confusion at all!

Watch Out!

A command that uses words like 'it,' 'stuff,' or 'things' is probably not clear enough. Try to use exact names instead.

Which of these is the clearest command?

What does a command do?

Command Creator

  1. Look around the room and pick something you can see, like a chair, a window, or a book.
  2. Think of a command you could give a robot about that object.
  3. Write the command on paper. Make sure it has an action, an object, and a detail.
  4. Example: 'Move the red chair two steps to the left.'
  5. Share your command with someone. Can they follow it exactly?
  6. Write three more commands for three different things in the room!