install-cli should provide option(s), such as -y, --yes, to make the installation "unattended," i.e. requiring no user input, and rather always installing anything that requires installation.
Such options may be intercepted/interpreted by the included library, setting a variable which require understands.