Using CLI help

Last Updated : Jun 04, 2021 |

About this task

The help command or ? command displays the list of all CLI commands that you can use within the current context. The list includes a short explanation of each command.

Procedure

To display the list of commands for the context you are in, type help or ?

Specifically:

  • You can view a list of all commands in the current context, which is similar to the command that you entered. You can accomplish the aforementioned by prefixing or postfixing the name of the command with help or ?.

    For example, to view the list of IP commands available in the general context, enter help ip, ip help, ? ip, or ip ?.

  • To view the syntax of the command and parameters along with an example of the command, you can prefix or postfix the name of the command with help or ?.

    You must be in the context of the command to use the help command to display information about the respective command.

  • The TAB key can be used to complete the CLI commands, and if a parameter has multiple choices pressing the TAB key twice will list all the available choices.

Example

Example: The user enters the vlan 1 interface context and uses the help command to view information about the bandwidth command.

Gxxx-001(super)# interface vlan 1
Gxxx-001(super-if:VLAN 1)# bandwidth ?
Bandwidth commands:
----------------------------------------------------------------------
Syntax: bandwidth <kilobytes size>
                  <kilobytes size> : integer (1-10000000)
Example: bandwidth 1000