【问题标题】:Create Firebase "multiple websites" via CLI通过 CLI 创建 Firebase “多个网站”
【发布时间】:2020-11-02 13:05:32
【问题描述】:

我正在寻找一个 CLI 命令来自动创建多个网站:

看起来有 CLI 托管支持,但这仅限于“预览频道”:

hosting:channel:create [options] [channelId]              create a Firebase Hosting channel
hosting:channel:delete [options] <channelId>              delete a Firebase Hosting channel
hosting:channel:deploy [options] [channelId]              deploy to a specific Firebase Hosting channel
hosting:channel:list [options]                            list all Firebase Hosting channels for your project
hosting:channel:open [options] [channelId]                opens the URL for a Firebase Hosting channel
hosting:clone <source> <targetChannel>                    clone a version from one site to another
hosting:disable [options]                                 stop serving web traffic to your Firebase Hosting site

https://github.com/firebase/firebase-tools/tree/master/src/commands

我在 Firebase 工具的源代码中也找不到相关的托管命令。有什么想法吗?

【问题讨论】:

    标签: firebase firebase-hosting firebase-cli


    【解决方案1】:

    adding additional sites 上的文档看来,现在仅通过 Firebase 控制台支持添加站点。

    我建议在 Github 存储库上提交功能请求。

    【讨论】:

    • 谢谢,我通过 Firebase 网站提交了功能请求。
    • 我建议将其提交到 Github repo,因为这样更集中。
    猜你喜欢
    • 2019-03-07
    • 2019-08-14
    • 2016-10-28
    • 1970-01-01
    • 2019-06-19
    • 1970-01-01
    • 2016-07-31
    • 2017-09-14
    相关资源
    最近更新 更多