In #96: Jack, A Native App For iTunes Connect, I mentioned Apple's Transporter command line tool which lets you upload content to iTunes Connect for app submission. If you need command line access to the iOS developer portal for managing certificates, app identifiers, devices and provisioning profiles, check out Cupertino from @mattt. It's available for install as a Ruby gem:
gem install cupertino
Optional login with:
List your app identifiers:
It's really handy for example when you want to add a couple of new device identifiers to several provisioning profiles.
Check out the README for more details.