LoginSignup
0
0

More than 1 year has passed since last update.

Firebase HostingでデプロイしたURLをCLIで取得したい

Posted at

ドキュメントには一切書かれていないが--jsonオプションという超便利なやつがある。

$ npx firebase hosting:channel:deploy yourChannelID --json
{
  "status": "success",
  "result": {
    "your-own-project": {
      "site": "your-own-project",
      "url": "https://your-own-project--yourChannelID-0ewpbaai.web.app",
      "expireTime": "2021-11-04T02:31:29.870261100Z"
    }
  }
}

あとはjqとかで取り出せばいい。

参考: https://valor-software.com/articles/how-to-deploy-firebase-preview-channels-on-travis-ci.html

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0