src: add export command