add flush command

complete client command and document