cli/insert: add post-insert hook