如何检索 Heroku 应用程序 ID?

Alm*_*mad 2 heroku heroku-toolbelt heroku-cli

app123@heroku.com3rd party support要求我提供 heroku 应用程序 ID(the )。我很确定有某种方法可以得到它,但我不知道。heroku info即使在更详细的模式下,它也没有出现--json

我怎样才能取回它?

小智 5

如果有人需要长应用程序 ID (01234567-89ab-cdef-0123-456789abcdef):

curl -n https://api.heroku.com/apps/$APP_NAME \
  -H "Accept: application/vnd.heroku+json; version=3"
Run Code Online (Sandbox Code Playgroud)

应用程序 ID 将位于“id”下的响应对象中

来源: https: //devcenter.heroku.com/articles/platform-api-reference#app-info