OBSERVE. ANALYZE. ACT.
Support Login

CLI ยท Version 26.2

Control Keys And Shortcuts

Use completion, inline help, command history, navigation, and logout controls in 01sh.

UI Path: CLI ID: cli-control-keys
Workflow
  1. Press ? after a partial command to show valid next tokens.
  2. Press Tab to complete command tokens when the terminal supports completion.
  3. Use history to review previous commands.
  4. Use exit or .. to move up a command mode.
  5. Use logout to leave 01sh.

Purpose

Use these controls to move through the 01sh command tree, discover available syntax, and leave the CLI safely.

Help Query

Type ? after a partial command to show valid next tokens. The ? is consumed as a help query and is not left in the command line.

Examples:

01sh> ?
01sh> config ?
01sh> config system mgmt ?
01sh> config interface P3 speed ?

Typical output:

ip                       - Management Port Settings
acl                      - Management Access ACL

Completion

Use Tab completion when the terminal supports it. Completion is command-tree aware and can complete:

  • Top-level command modes.
  • Workflow-backed command names.
  • Parameter names.
  • Dynamic selectors such as interface names, service names, or enum values.

If a dynamic value depends on earlier input, enter the earlier tokens first:

config interface P3 speed ?
config interface P3 speed 400G fec ?

Command History

Use:

history

to display saved command history for the local CLI user.

The history file is stored under the user's state directory:

$XDG_STATE_HOME/l01sh/history.json

If XDG_STATE_HOME is not set, the default is:

~/.local/state/l01sh/history.json

Entering a non-executable command node moves into that mode. For example:

01sh> config
01sh(config)> system
01sh(config system)> mgmt

Use either command to move up one level:

exit
..

At the top-level prompt, exit does not log out. The CLI prints:

Use logout to exit 01sh.

Use logout to leave 01sh.

Interrupt Behavior

Press Ctrl-C to interrupt the current input line. If the line is empty, 01sh continues at the prompt. If the line contains text, the CLI may continue processing the entered content depending on terminal state.

Use logout for a normal session exit.

Quoting

Use quotes when a parameter contains spaces or needs to be passed as one argument:

config system device_info name "Lab FD12K"
exec vfabric cmd "fp list actions"

The post-command parser respects single and double quotes, so pipe characters inside quoted strings are treated as part of the argument.

Dangerous Command Confirmation

Some commands require explicit confirmation in interactive mode. Examples include reboot, halt, reset configuration, and management IP changes. The CLI prints the required confirmation token:

This will reboot the appliance. Type REBOOT to continue:

The command is aborted unless the exact token is entered.