The Command Prompt makes it easy to execute commands in CET. Autocomplete suggestions, visual feedback, and argument tooltips help you enter commands correctly and discover available functionality.
This article explains how to enter commands, understand their syntax, and find information about available commands.
Entering Commands
To run a command:
- Open the Command Prompt using Alt + P.
- Click the input field or begin typing if it already has focus.
- Enter the command name and any required arguments.
- Press Enter to execute the command.
Commands generally follow this structure:
command [arguments]
The command name identifies the operation, while arguments provide any additional information required to execute it.
For example:
wall (1, 1) (2, 2)
In this example, wall is the command, and the two coordinate pairs are its arguments.
Understanding Command Syntax
Different commands accept different types of arguments. Some commands require coordinates, numbers, text, or other specific values.
Always follow the argument format expected by the command. The expected format will be shown in the tooltip above the Command Prompt bar after a valid command is entered or selected.
Example: Point Coordinates
A point2D argument must include a space after the comma.
Correct:
(1, 1)
Incorrect:
(1,1)
Incorrect formatting may prevent a command from executing.
Important: Not all argument errors produce a visible warning. If a command does not execute, check the expected argument format even if the input field does not display an error.
Using Autocomplete Suggestions
Autocomplete helps you find available commands without needing to remember their exact names.
As you type in the input field, CET displays a dropdown containing matching valid commands.
To use autocomplete:
- Start typing a command name.
- Review the suggestions.
- Use the Up/Down Arrow keys or Tab to navigate the list.
- Press Enter to select the highlighted command.
- Complete any required arguments.
- Press Enter to execute the command.
Understanding Visual Feedback
The Command Prompt uses visual indicators to help you identify whether a command is recognized.
Valid command
When CET recognizes a command name, it appears in bold.
Invalid command
If the command name is not recognized, the text appears red.
Argument information
When a valid command is entered, a tooltip appears above the Command Prompt with a description and information about the expected arguments.
The tooltip updates as you enter arguments.
Remember that an incorrectly formatted argument may not always trigger visible feedback.
Accessing CET Command Prompt Help
For a complete reference of available commands, use CET Command Prompt Help.
To open the help page:
- Open the Command Prompt.
- Click the menu button.
- Select CET Command Prompt Help.
The help page opens in your browser and provides a table containing:
- Available command names.
- Arguments accepted by each command.
- Descriptions of what each command does.
Use this reference when you need to identify a command, understand its required arguments, or investigate an unfamiliar command.
Reusing Previous Commands
The Command Prompt automatically keeps a history of your 10 most recently executed commands.
To reuse a command:
- Click the history dropdown at the right end of the input field.
- Select the command you want to reuse.
- Modify the command or its arguments if needed.
- Press Enter to execute it.
The history list is cleared whenever CET is restarted.
Tips for Running Commands
- Use autocomplete to discover commands and avoid spelling errors.
- Review argument tooltips before executing unfamiliar commands.
- Pay attention to spaces, punctuation, and coordinate formatting.
- Use CET Command Prompt Help when you need a complete command reference.
- Use command history to quickly repeat frequently executed commands.
Next Steps
Want to combine multiple commands into a single reusable operation? Learn how to create and manage your own commands in Custom Commands: Creating and Managing Custom Commands.
Comments
0 comments
Article is closed for comments.