cmds sample code