RouterOS CLI Handbook

Explore Mikrotik console commands interactively. Click on a command to see its sub-commands.
/
ip IP Configuration
system System Configuration
interface Interface Configuration
ppp PPP Configuration
tool Mikrotik Tools
queue Queue Management (QoS)
user-manager User Manager Management
routing Routing Configuration
log System Log
file File Management
radius RADIUS Client
snmp Simple Network Management Protocol (SNMP)
ipv6 IPv6 Configuration
mpls Multi-Protocol Label Switching (MPLS)
port Serial Port Management
lcd LCD Management
caps-man CAPsMAN (Controlled Access Point system Manager)
ipsec IP Security (IPsec)
dude The Dude Server
console Console Configuration
store Storage Management

Basic Navigation

[?] Gives the list of available commands.
command [?] Gives help on the command and list of arguments.
[Tab] Completes the command/word. If the input is ambiguous, [Tab] gives possible options.
/ Move to top level (root).
.. Move up one level directory.
/command Use command at the base level.

Popular Keyboard Shortcuts

F1 or ? Displays help.
[Tab] Completes the command/word. If the input is ambiguous, a second [Tab] gives possible options.
F3 or Ctrl-R Search command history.
F4 or Ctrl-X Enables/disables Safe Mode.
F5 or Ctrl-L Repaint the screen.
F6 Toggle cellar.
F7 Toggle hotlock mode.
F8 Print entire multiline input.
Ctrl- Splits the line at the cursor (new line).
Home or Ctrl-A Moves to the beginning of the line.
End or Ctrl-E Moves to the end of the line.
Ctrl-C Interrupt current action.
Ctrl-D Terminate session (on empty prompt).
Ctrl-K Delete to the end of the line.
Ctrl-U Delete to the beginning of the line.
Ctrl-T Switch to a background task.
# Send a message to an internal chat system.
Delete Remove character at the cursor.
Ctrl-H or Backspace Remove character before cursor and moves the cursor back one position.
Ctrl-B or Left Move cursor backward one character.
Ctrl-F or Right Move cursor forward one character.
Ctrl-P or Up Go to the previous line. If this is the first line of input then recall previous input from history.
Ctrl-N or Down Go to the next line. If this is the last line of input then recall the next input from the history.

General Syntax

Command Description
add Adds a new entry.
move Moves an entry.
edit Edits an entry.
set Sets properties of an existing entry.
remove Removes an entry.
find Finds entries based on criteria.
get Gets property values from an entry.
export Exports configuration.
print Displays a list of entries or properties.
import Imports configuration.
enable Enables an entry.
disable Disables an entry.
comment Adds or changes comments on an entry.

Note: Not all commands/connection methods are available at all menu levels.

Most commands also accept parameters (e.g., `add address=192.168.1.1/24 interface=ether1`). Use `command [?]` to see available parameters.

Login Options

Console login options enable or disable various console features like color, terminal detection, and many other. Additional login parameters can be appended to the login name after the '+ ' sign.


login_name  ::= user_name [ '+' parameters ]
parameters  ::= parameter [ parameters ]
parameter   ::= [ number ] 'a'..'z'
number	    ::= '0'..'9' [ number ]

If the parameter is not present, then the default value is used. If the number is not present then the implicit value of the parameter is used.


Example: admin+ct80w - will disable console colors, disable auto detection and then set terminal width to 80.


Param Default Implicit Description
"w" auto auto Set terminal width
"h" auto auto Set terminal height
"c" on off disable/enable console colors
"t" off off Disable auto-detection of terminal capabilities
"e" on off Enables "dumb" terminal mode

For more information, visit: