CLIs should check isatty and, if it returns false, disable any interactive functionality because it won’t work.