generate new api thor command