Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


set cli prompt



Release Information

Command introduced before Junos OS Release 7.4.

Command introduced in Junos OS Release 9.0 for EX Series switches.


Set the prompt so that it is displayed within the CLI.


stringCLI prompt string. To include spaces in the prompt, enclose the string in quotation marks. By default, the string is username@hostname.

Required Privilege Level


List of Sample Output

set cli prompt

Output Fields

When you enter this command, the new CLI prompt is displayed.

Sample Output

set cli prompt

user@host> set cli prompt lab1-router>