MikroTik RouterOS Commands

Complete MikroTik RouterOS commands reference — 20 commands across 4 categories. Quick reference cheat sheet for RouterOS.

Configuration Export (6)

ShortcutAction
compactOutputs only the modified configuration. Starting from v6rc1, "export compact" became
fileExport configuration to a specified file. When the file is not specified export output will be
pathParameter allows to include or exclude specific configuration menu from router entire
show-sensitiveShow sensitive information, like passwords, keys, etc. By default, sensitive information
terseWith this parameter, the export command will output the configuration as full commands
verboseWith this parameter, the export command will output whole configuration parameters and items

Configuration Import (3)

ShortcutAction
from-lineStart executing the script from the specified line number. This option is only available
file-nameName of the script (.rsc) file to be executed
dry-runSimulates the import without making any configuration changes. This helps in catching syntax

Startup delay (5)

ShortcutAction
keep-usersDo not remove existing users from the configuration
no-defaultsDo not load the default configuration, just clear the configuration
skip-backupSkip automatic backup file generation before reset
run-after-resetRun specified .rsc file after reset. That way you can load your custom configuration. If
caps-modeRun caps-mode script after configuration reset

Additional Commands (6)

ShortcutAction
/interface printList interfaces
/ip address printIP addresses
/ip firewall filter printFirewall rules
/ip route printRouting
/system resource printResources
/exportExport config
📄 View Printable Cheat Sheet — Download as PDF or print · 🧩 Combine with other tools

Related Shortcut Pages

Juniper JunOS Arista EOS Palo Alto PAN-OS Linux Ansible Nginx

Search 13,500+ shortcuts across 269 platforms

Explore All Platforms Practice Shortcuts
📜 Every shortcut on this page is taken from the official MikroTik RouterOS documentation — help.mikrotik.com

🤖 Ask AI about MikroTik RouterOS shortcuts

Open your assistant with this page preloaded as the source — great for follow-up questions like "which of these work in other apps?"

ChatGPT Claude Perplexity Gemini Grok
🔧 Spotted an error or a missing shortcut? Suggest an edit on GitHub — every accepted fix goes live on this page, the API and the CLI.