Fortinet black logo

CLI basics

CLI basics

Basic features and characteristics of the CLI environment provide support and ease of use for many CLI tasks.

  • At any point, the tab key can be used to list possibilities for the next command or auto-complete partially filled in commands

  • The CLI will restrict which commands are shown based on the current context the user is in. When first launched, the user is in the base context, but running certain commands (such as config system interface) will switch the user to the appropriate context, with a completely new set of commands available.

  • When inside a context, hitting ctrl-c will ‘abort’ any unsaved changes and exit the context.

  • Attempting to run an incomplete command (e.g. config system) will show the usage info for the next available possible parameters for that command.

Top Level Commands

Command

Description

help

Display usage

diagnose

Diagnostic Tools

get

Get system information

config

Configure object

execute

Execute static commands

show

Show configuration

exit

Exit

CLI basics

Basic features and characteristics of the CLI environment provide support and ease of use for many CLI tasks.

  • At any point, the tab key can be used to list possibilities for the next command or auto-complete partially filled in commands

  • The CLI will restrict which commands are shown based on the current context the user is in. When first launched, the user is in the base context, but running certain commands (such as config system interface) will switch the user to the appropriate context, with a completely new set of commands available.

  • When inside a context, hitting ctrl-c will ‘abort’ any unsaved changes and exit the context.

  • Attempting to run an incomplete command (e.g. config system) will show the usage info for the next available possible parameters for that command.

Top Level Commands

Command

Description

help

Display usage

diagnose

Diagnostic Tools

get

Get system information

config

Configure object

execute

Execute static commands

show

Show configuration

exit

Exit