Celestica Documentation Portal

Find your product documents here

Command Modes

SONiC CLI contains two top-level modes:

  • EXEC: This is the root mode, returned to the user initially. All troubleshooting, monitoring and status related commands are available.

  • CONFIG: All configurations are grouped in this mode, which is accessible using the configure terminal command in EXEC mode.

Auto Completion

To auto-complete the partial commands and to list the possible valid options, use TAB or SPACEBAR.

Common Mode Commands

For easy navigation, some commands are available in all the modes.

  • exit – Navigate to the previous mode. Executing exit from the EXEC mode logs out the SONiC CLI.

  • end – Go to the EXEC mode.

  • do – EXEC mode commands are accessible from other modes through do prefix.

    Examples: do show running-config, do show version