update scan support
add flush command

complete client command and document
add cli auco-completion for new commands