Sign in to iTunes Connect Error on Travis CI

hello all,
I am using Travis CI to build, sign and notarize MacOS application.

My problem is that when I have to upload the application for notarization using:

xcrun altool --notarize-app --primary-bundle-id <bundle> --username <apple_id> --password <passwd> --file <file>


The upload process gives this error:

2019-06-19 21:41:59.620 altool[35802:70182] *** Error: To use this application, you must first sign in to iTunes Connect and sign the relevant contracts. (1048)


How can I do that on Command Line? My CI system boots clean VM for each build.

Can I maybe sign that agreement online and make it work for all devices ?
Any help would be appreciated

Thanks in advance