> For the complete documentation index, see [llms.txt](https://mixdao.gitbook.io/dfinity/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mixdao.gitbook.io/dfinity/si-.-jiao-cheng/10.-shi-yong-si-you-canister-tiao-yong/zhu-ce-canister-shi-bie-ma.md).

# 注册canister识别码

连接到本地ICP 网络后，你可以为你的项目在这个网络注册生成canister识别码。

在本地网络注册canister识别码步骤

1. 检查你当前是否在项目目录
2. 运行下面的命令注册canister识别码

```
dfx canister create --all
```

这个命令会为dfx.json配置文件中配置的canister输出网络绑定的canister识别码。

```
"connectd" canister created with canister id: "75hes-oqbaa-aaaaa-aaaaa-aaaaa-aaaaa-aaaaa-q"
"linkedup" canister created with canister id: "cxeji-wacaa-aaaaa-aaaaa-aaaaa-aaaaa-aaaaa-q"
"linkedup_assets" canister created with canister id: "7kncf-oidaa-aaaaa-aaaaa-aaaaa-aaaaa-aaaaa-q"
```

记住由于你在本地运行ICP网络，这些识别码只在本地网络有效。为了在远程网络部署canister，你必须使用--network命令选项和一个特定的网络名称或地址来在相应网络注册识别码。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mixdao.gitbook.io/dfinity/si-.-jiao-cheng/10.-shi-yong-si-you-canister-tiao-yong/zhu-ce-canister-shi-bie-ma.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
