AutoCAD Command Line

AutoCAD Command Line Access

COMMAND LINE: COMMANDLINE

DEFAULT KEYBOARD SHORTCUT: CTRL + 9

RIBBON: NONE

There is no Ribbon control for displaying or hiding the Command Line.

1. Introduction — What Is the AutoCAD Command Line?

The Command Line is one of the most important components of the AutoCAD user interface. It provides a text-based method for entering commands, selecting command options, specifying values, and receiving instructions and feedback during drawing operations.

Although AutoCAD provides several graphical methods for accessing commands, including the Ribbon, toolbars, and menus, the Command Line remains one of the most versatile ways to interact with the software. Virtually every AutoCAD command can be accessed through the Command Line, including commands and options that may not be readily available through the graphical interface.

The Command Line also serves another important purpose: communication. As commands are executed, AutoCAD displays prompts explaining what information or action is required next.

Learning to read and understand these prompts is an essential skill for becoming proficient with AutoCAD, regardless of whether commands are initiated through the Command Line, Ribbon, or toolbars.

2. Understanding the Command Line Interface

The Command Line typically appears near the bottom of the AutoCAD drawing window. It contains several elements that help users interact with commands and understand what AutoCAD is doing.

  • Command Input: The area where users enter command names, aliases, options, and numerical values.
  • Command Prompts: Instructions indicating what AutoCAD expects the user to do next.
  • Command Options: Available choices displayed during command execution, typically enclosed in square brackets.
  • Command History: A record of previously entered commands, prompts, and messages.
  • Autocomplete: A feature that displays matching commands and suggestions as users type.

When AutoCAD is waiting for a new command, the Command Line displays the prompt Type a command.

Once a command begins, the prompt changes to reflect the current operation. For example, a drawing command may request a starting point, an endpoint, a distance, or an angle.

One of the most useful habits beginners can develop is to read the Command Line whenever they are uncertain what AutoCAD expects them to do next.

AutoCAD Command Line showing command input, prompts, available options, and command history.

The AutoCAD Command Line displays prompts, options, and command history to guide users during drawing operations.

Get the Top 35 AutoCAD Commands for FREE

3. Entering Commands and Selecting Options

Commands can be started by typing their names into the Command Line and pressing Enter or Spacebar. In AutoCAD, pressing the Spacebar is equivalent to pressing Enter.

For example, entering LINE starts the LINE command. AutoCAD then displays a series of prompts guiding the user through the process of creating line segments.

Command: LINE

  • Specify first point:
  • Specify next point or [Undo]:
  • Specify next point or [Close/Undo]:

Each prompt identifies the next action or the available options.

After specifying the first point, AutoCAD requests another point. Once two points have been specified, the command provides additional options, including Close and Undo.

Options enclosed in square brackets can be selected by entering the appropriate shortcut letter or letters. For example, entering C selects the Close option when it is available.

Many commands also provide default options, often indicated by angle brackets. Pressing Enter accepts the displayed default when one is available.

Several keyboard actions are especially useful when working with the Command Line:

  • Enter or Spacebar: Confirms an entry or accepts an available default.
  • Esc: Cancels the current command.
  • Enter or Spacebar at an idle prompt: Repeats the previous command.
  • Up and Down Arrow keys: Navigate previously entered commands and input history.

Understanding these interactions allows users to follow unfamiliar commands without memorizing every step.

AutoCAD LINE command showing sequential Command Line prompts while creating connected line segments.

The Command Line guides users through the LINE command by requesting points and displaying available options.

4. Command Line vs. Ribbon and Toolbars

AutoCAD provides several methods for accessing commands, and each has advantages.

The Ribbon organizes commonly used commands into tabs and panels, making tools easier to locate visually. Toolbars provide convenient access to frequently used commands through icons.

The Command Line offers a different set of advantages.

Virtually every AutoCAD command can be entered through the Command Line, including many commands that are not directly represented by Ribbon buttons or toolbar icons.

The Command Line also provides access to command options that may not be immediately visible in the graphical interface.

The Command Line also provides access to command options that may not be immediately visible in the graphical interface.

For experienced users, entering familiar command aliases can be faster than locating commands on the Ribbon. However, the Ribbon remains useful for discovering unfamiliar tools and understanding how commands are organized.

These methods are not mutually exclusive.

Even when a command is initiated through the Ribbon or a toolbar, AutoCAD frequently uses the Command Line to display prompts and available options.

Users can benefit from understanding the Command Line without abandoning the graphical tools they prefer.

5. Accessing System Variables Through the Command Line

In addition to commands, the Command Line provides direct access to AutoCAD System Variables.

System Variables control numerous aspects of AutoCAD's operation, including drafting aids, display behavior, selection options, and drawing settings.

For example:

System Variable Function
ORTHOMODE Controls whether Ortho Mode is enabled.
OSMODE Controls running Object Snap settings.
GRIDMODE Controls whether the drawing grid is displayed.
SNAPMODE Controls whether Snap Mode is enabled.
DYNMODE Controls Dynamic Input functionality.

System Variables can be accessed by entering their names into the Command Line. AutoCAD then displays the current value and allows the user to enter a new value when the variable is editable.

Although many System Variable settings can also be changed through Ribbon controls, status bar buttons, or dialog boxes, the Command Line provides direct access to variables that may not have a dedicated graphical control.

Some System Variables are read-only and cannot be modified directly.

The Command Line is therefore particularly valuable when working with advanced drawing settings or troubleshooting AutoCAD behavior.

6. Command Aliases and Autocomplete

The Command Line includes features that reduce typing and make commands easier to locate.

Command Aliases

Command aliases are abbreviated command names that provide faster access to frequently used commands.

Common examples include:

Alias Command
L LINE
C CIRCLE
PL PLINE
M MOVE
CO COPY

Instead of typing LINE, a user can enter L and press Enter to start the command.

Aliases can be customized, so they may differ between AutoCAD installations.

Beginners do not need to memorize large numbers of aliases. Learning a few commonly used shortcuts and adding others through regular practice is usually sufficient.

Autocomplete

AutoCAD also provides an autocomplete feature that displays matching commands and suggestions as users type.

For example, entering POL may display commands such as POLYGON and POLYLINE-related entries, depending on the available commands and autocomplete settings.

Autocomplete helps users locate commands without remembering their complete names.

Alt Text: AutoCAD Command Line autocomplete showing suggested commands after entering POL.

Autocomplete helps users locate AutoCAD commands without remembering their complete names.

7. Command Line History and Troubleshooting

The Command Line maintains a history of previously entered commands, prompts, and messages.

This history can be useful when reviewing measurements, identifying incorrect inputs, or determining why a command did not produce the expected result.

Pressing F2 opens the expanded AutoCAD Text Window, allowing users to review a larger portion of the command history.

For example, if an invalid option is entered during a command, AutoCAD may display an error message and repeat the prompt. Reviewing the command history can help identify the incorrect entry.

The Command Line also displays information produced by certain commands, including measurements and object properties.

Rather than immediately restarting a command when something unexpected happens, users should review the most recent Command Line messages.

8. Displaying and Customizing the Command Line

The Command Line can be repositioned and resized to accommodate different drawing environments.

By default, it is typically docked near the bottom of the AutoCAD window. However, users can undock it and move it to another location.

The Command Line can also be resized to display additional lines of command history.

Several display options are available:

  • Ctrl+9: Shows or hides the Command Line.
  • Docking: Positions the Command Line along the edge of the drawing window.
  • Floating: Allows the Command Line to be positioned independently.
  • Resizing: Changes the amount of command history visible.
  • Transparency: Adjusts the appearance of a floating Command Line.

Users who accidentally close the Command Line can restore it by pressing Ctrl+9 or entering COMMANDLINE through another available command-entry interface. The Dynamic Input entry can be used for this.

For beginners, keeping the Command Line visible is strongly recommended. It provides valuable information during command execution and makes it easier to understand unfamiliar operations.

Floating AutoCAD Command Line positioned over the drawing area with multiple lines of command history visible.

 The AutoCAD Command Line can be undocked, moved, and resized to suit individual drafting preferences.

9. Common Mistakes and Troubleshooting

Many Command Line problems are relatively simple to resolve.

Problem Explanation / Solution
Command Line is missing Press Ctrl+9 to restore the Command Line.
Command is not recognized Verify the command spelling or use autocomplete to locate the correct command.
Command appears unresponsive Read the current prompt to determine what input AutoCAD expects.
Unexpected command option Review the available options displayed in square brackets.
Too little command history is visible Expand the Command Line or press F2 to review the command history.
Command produces unexpected results Review recent prompts and inputs to identify possible errors.

10. Related Commands and System Variables

The following commands and System Variables are associated with Command Line operation and related input features.

Command / System Variable Description
COMMANDLINE Displays the Command Line.
COMMANDLINEHIDE Hides the Command Line.
INPUTHISTORYMODE Controls the types of input recorded and displayed in recent input history.
DYNMODE Controls Dynamic Input features that display prompts and input fields near the cursor.

Dynamic Input provides an additional method for entering values and viewing prompts near the cursor. See the Dynamic Input article for additional information.

11. Frequently Asked Questions

The Command Line is a text-based interface used to enter commands, select options, specify values, and receive prompts and feedback. It provides access to virtually all AutoCAD commands and System Variables.

Press Ctrl+9 to show or hide the Command Line. The COMMANDLINE command can also restore it when another command-entry interface is available.

Yes. Many commands can be accessed through the Ribbon, toolbars, and menus. However, the Command Line provides access to additional commands, options, and information that may not be readily available through graphical controls.

The Ribbon organizes commands into graphical tabs and panels. The Command Line provides a text-based interface for entering commands, selecting options, and viewing prompts. Both methods can be used together.

Type a command name or alias and press Enter or Spacebar. Follow the displayed prompts to specify points, enter values, or select command options.

Command aliases are abbreviated command names used to start commands more quickly. For example, L starts LINE, C starts CIRCLE, and PL starts PLINE. Aliases can be customized.

Press Enter or Spacebar when no command is active. AutoCAD will repeat the most recently executed command.

Press F2 to open the expanded AutoCAD Text Window. This displays previous commands, prompts, and messages. The Command Line can also be expanded to display additional history.

Yes. The Command Line can be docked, undocked, moved, and resized. Floating Command Line transparency and other appearance options can also be adjusted.

The Command Line helps beginners understand how AutoCAD commands operate by displaying prompts, available options, and feedback. Learning to read these messages makes unfamiliar commands easier to use and helps identify mistakes.

Loading Conversation

Written by


Scott Head Shot.png

Scott Ogren, PE

 

Scott Ogren, PE first used AutoCAD in 1993 while in college studying civil / structural engineering.

In 2002, I founded Ogren Engineering and have been working for myself since. AutoCAD and drafting skills are a requirement to work for my firm. Over the years, I have coached, tutored, and taught many people how to use and become proficient with AutoCAD.

Ogren Engineering: https://ogreneng.com/

In addition, Scott has written software to perform the lateral analysis of a wood-framed building.

Shearwall Pro: https://shearwallpro.com/