See how the Github CLI does this: https://github.com/cli/cli/pull/1445 Not sure if possible with Adobe IMS.