fix attach and remove cli doc