List mikrotik commands

Is there a way to list the Mikrotik commands recursively similar to the ls -R flag in Linux? I’m trying to find a way to enumerate the list of commands for a REST client I’m building. I know that you can list the current “directory” options by pressing tab in a console, but I’m not sure if there is a way to mimic this behavior in the Mikrotik scripting language.

Any help is greatly appreciated!

Thanks!

You should be able to use /console/inspect with as-value in some kind of a loop structure to query all commands and info. If you do create a script to do this, please post it here.

Amm0 posted about how /console/inspect works here: http://forum.mikrotik.com/t/new-command-in-routeros-7/169237/29