CLI: regex for command type