add publish command to client