fix: use uri instead of id in login command
add: find md by title or summary, make type optional