How to automate the IPA binary files deployment in AppStore using iTMSTransporter or altool?

I would like to automate my ipa files deployment into AppStore via command line using iTMSTransporter or altool , can anyone help me through the process