简体   繁体   English

如何重命名 Firebase 项目 ID?

[英]How can I rename the Firebase Project ID?

I succeeded to rename my Firebase Project Name.我成功重命名了我的 Firebase 项目名称。 I want to rename my Project ID as well, yet, it looks read-only.我也想重命名我的项目 ID ,但它看起来是只读的。

I tried via Settings -> General , and via Permissions -> IAM etc, but with no success.我尝试通过Settings -> GeneralPermissions -> IAM等,但没有成功。

Does anyone know of any way of doing it?有谁知道这样做的任何方式? Thanks!谢谢!

firebaser here火力士在这里

There is no way to change the project ID of a project.无法更改项目的项目 ID。

I had to Delete my project and Create a new one.我不得不删除我的项目并创建一个新项目。

How to Delete : Settings -> Permissions -> All Projects如何删除: Settings -> Permissions -> All Projects

How to Createhere .如何在这里创建。

Do not forget running:不要忘记运行:

firebase use --add from your project dir, and test both: firebase use --add从您的项目目录中,并测试两者:

firebase serve and firebase serve

firebase deploy . firebase deploy

You can just delete the current project, make a new project, download its google-services.json file and replace it with the current one in your app folder then finally you'll have to clean your project from Build -> CleanProject!您可以删除当前项目,创建一个新项目,下载其 google-services.json 文件并将其替换为应用程序文件夹中的当前文件,然后最后您必须从 Build -> CleanProject 清理您的项目! That's it!就是这样!

You can refer to this doc你可以参考这个文档

https://support.google.com/cloud/answer/6158840?hl=en https://support.google.com/cloud/answer/6158840?hl=en

The project ID is a unique identifier for a project.项目 ID 是项目的唯一标识符。 When you first create a project, you can accept the default generated project ID or create your own.首次创建项目时,您可以接受默认生成的项目 ID 或创建自己的项目 ID。 A project ID cannot be changed after the project is created, so if you are creating a new project, be sure to choose an ID that you'll be comfortable using for the lifetime of the project.创建项目后,项目 ID 无法更改,因此如果您要创建新项目,请确保选择您在项目生命周期内可以轻松使用的 ID。

Can change project ID just when create project and can set any name not taken .可以在创建项目时更改项目 ID ,并且可以设置任何未使用的名称。

在此处输入图片说明

There is no way to change the ID of a project.无法更改项目的 ID。 You have to create a new one.你必须创建一个新的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM