the cli?? wow that's one thing i never use lol...mainly because I use the darkedit ide...
http://darkedit.nmisoftware.com/
however...i believe the cli can take any command, or sets of commands using : to break things up..so, in theory..you could check through all objects..and then get it to print whats there like this...
cls:for o = 1 TO 65535:if object exist(o) then print o:next o:sync:wait key
or something like that..break that up looks like this..
`clear the screen
cls
`loop through and print objects
for o = 1 TO 65535
if object exist(o) then print o
next o
`update the screen, maybe this will erase printed text, if so, remove this command
sync
`don't do anything until this key is pressed
wait key
alrighty, and the same code above, is stated in the 'source' button below
btw, all code 100% untested^_~