majd / ipatool

Command-line tool that allows searching and downloading app packages (known as ipa files) from the iOS App Store
MIT License
5.37k stars 470 forks source link

$IPATOOL_EMAIL and $IPATOOL_PASSWORD variables no longer seem to do anything #88

Closed Al4ise closed 2 years ago

Al4ise commented 2 years ago

Setting the variables in a bash shell no longer lets you authenticate in a non-interactive session

majd commented 2 years ago

There is a new command for authenticating as of version 1.1, which should still be respecting those environment variables: ipatool auth login.

Al4ise commented 2 years ago

Running 'ipatool auth login -e $IPATOOL_EMAIL -p $IPATOOL_PASSWORD' works. Without the arguements it doesn't. Is that supposed to be the case?

majd commented 2 years ago

Can you provide more information about how you are exporting the environment variables? Just tested on version 1.1.2 and it seems to be working as intended.

$ IPATOOL_EMAIL=test IPATOOL_PASSWORD=test ipatool auth login
==> ℹ️  [Info] Authenticating with the App Store...
Al4ise commented 2 years ago

In a script, setting the variables on different lines makes ipatool not recognize them.

'IPATOOL_EMAIL=test IPATOOL_PASSWORD=test

ipatool auth login'

Putting them on the same line makes it work as expected though

majd commented 2 years ago

You have to export the env variables so that they can be passed on to the child process.

$ export IPATOOL_EMAIL=test
$ export IPATOOL_PASSWORD=test
$ ipatool auth login
==> ℹ️  [Info] Authenticating with the App Store...
Al4ise commented 2 years ago

Oh, okay then, thanks for clarifying. And sorry for wasting your time