Fortinet white logo
Fortinet white logo

Administration Guide

Getting CLI help

Getting CLI help

You can enter the question mark (?) at the command prompt to display a list of CLI commands and their description.

Enter config system ?, all config system related commands and their descriptions are displayed.

Enter diagnose ?, all diagnose related commands and their descriptions are displayed.

Enter execute ?, all execute related commands and their descriptions are displayed.

Enter execute restore ?, all execute restore related commands and their descriptions are displayed.

Enter get ?, all get related commands and their descriptions are displayed.

Enter show system ?, all show system related commands and their descriptions are displayed.

Abbreviating commands

You can abbreviate words in the command line to their smallest number of non-ambiguous characters.

For example, the command get system status can be abbreviated to g sy stat.

Completing commands automatically

Enter a word or part of a word, and then press ?. No space is required before ?.

For example, enter e and then ?. You can see the following information.


The table below lists the shortcuts and descriptions:

? List CLI commands and their descriptions.
Tab Display the key command word. Press Tab multiple times to switch among different words, such as get, show, and config, etc.
Up arrow/Ctrl + P Recall the previous command. Command memory is limited to the current session.
Down arrow/Ctrl + N Recall the next command.
Left or Right arrow Move the cursor within the command line.
Ctrl + A Move the cursor to the beginning of the command line.
Ctrl + E Move the cursor to the end of the command line.
Ctrl + B Move the cursor after one word.
Ctrl + F Move the cursor before one word.
Ctrl + D Delete the current character.
Ctrl + C Abort current interactive commands, such as when entering multiple lines. If you are not currently within an interactive command such as config or edit, this closes the CLI connection.
\ then Enter Continue typing a command on the next line for a multi-line command.
For each line that you want to continue, terminate it with a backslash ( \ ). To complete the command line, terminate it by pressing the spacebar and then the Enter key, without an immediately preceding backslash.


Getting CLI help

Getting CLI help

You can enter the question mark (?) at the command prompt to display a list of CLI commands and their description.

Enter config system ?, all config system related commands and their descriptions are displayed.

Enter diagnose ?, all diagnose related commands and their descriptions are displayed.

Enter execute ?, all execute related commands and their descriptions are displayed.

Enter execute restore ?, all execute restore related commands and their descriptions are displayed.

Enter get ?, all get related commands and their descriptions are displayed.

Enter show system ?, all show system related commands and their descriptions are displayed.

Abbreviating commands

You can abbreviate words in the command line to their smallest number of non-ambiguous characters.

For example, the command get system status can be abbreviated to g sy stat.

Completing commands automatically

Enter a word or part of a word, and then press ?. No space is required before ?.

For example, enter e and then ?. You can see the following information.


The table below lists the shortcuts and descriptions:

? List CLI commands and their descriptions.
Tab Display the key command word. Press Tab multiple times to switch among different words, such as get, show, and config, etc.
Up arrow/Ctrl + P Recall the previous command. Command memory is limited to the current session.
Down arrow/Ctrl + N Recall the next command.
Left or Right arrow Move the cursor within the command line.
Ctrl + A Move the cursor to the beginning of the command line.
Ctrl + E Move the cursor to the end of the command line.
Ctrl + B Move the cursor after one word.
Ctrl + F Move the cursor before one word.
Ctrl + D Delete the current character.
Ctrl + C Abort current interactive commands, such as when entering multiple lines. If you are not currently within an interactive command such as config or edit, this closes the CLI connection.
\ then Enter Continue typing a command on the next line for a multi-line command.
For each line that you want to continue, terminate it with a backslash ( \ ). To complete the command line, terminate it by pressing the spacebar and then the Enter key, without an immediately preceding backslash.