How to run Heroku CLI commands from Heroku Scheduler? I can install the CLI by the following command, but it requires login when I execute a command.
~ $ curl -s https://cli-assets.heroku.com/heroku-linux-x64.tar.gz | tar xz ~ $ ./heroku/bin/heroku apps:info -a example-app ▸ Invalid credentials provided.
You'll need to set
HEROKU_API_KEY on your app. Please create the token by
heroku authorizations:create command in advance.
You can also use Heroku buildpack: Heroku CLI to skip the CLI download.