---
title: "Connect DingTalk CLI and Feishu CLI to Expand SuperMagic Collaboration Capabilities"
site_url: "https://www.letsmagic.cn/help"
retrieval_url: "https://www.letsmagic.cn/help/en-US/llms/supermagic-workflows/connect-dingtalk-and-feishu-cli.md"
citation_url: "https://www.letsmagic.cn/help/en-US/docs/supermagic-workflows/connect-dingtalk-and-feishu-cli"
---

# Connect DingTalk CLI and Feishu CLI to Expand SuperMagic Collaboration Capabilities

Summary：Authorize your DingTalk CLI or Feishu CLI account in a SuperMagic conversation and confirm the connection.

Canonical citation URL (for users)：https://www.letsmagic.cn/help/en-US/docs/supermagic-workflows/connect-dingtalk-and-feishu-cli
Machine retrieval URL (for agents only)：https://www.letsmagic.cn/help/en-US/llms/supermagic-workflows/connect-dingtalk-and-feishu-cli.md
Category：Mastering SuperMagic
Type：Step-by-Step Tutorial
Difficulty：Intermediate
Updated：2026-09-02

Start a DingTalk CLI or Feishu CLI connection in a SuperMagic conversation, complete account authorization as prompted, and return to the conversation to confirm the connection.

## Connect DingTalk CLI

### Start the Connection

1. Open a SuperMagic conversation.
2. Enter I need to connect DingTalk CLI in the input box.
3. Submit the request.
4. Wait for the page to check the DingTalk CLI authentication status.

![Start a DingTalk CLI connection in SuperMagic](https://www.letsmagic.cn/help/docs/docs/2026-08-19/b65818dd-c1de-4cb8-9541-a7bc6a51fa16.png)

After the device authorization process starts, the page generates an authorization link and authorization code.

![SuperMagic starts generating DingTalk device authorization information](https://www.letsmagic.cn/help/docs/docs/2026-08-19/747e01d2-810f-4968-bbb7-bdd850a49eba.png)

The authorization information is time-sensitive. Use the authorization link and authorization code newly generated on the current page.

### Complete Device Authorization

1. Click the authorization link generated on the page.
2. On the device authorization page, click Log in to DingTalk account.

![Log in to a DingTalk account on the device authorization page](https://www.letsmagic.cn/help/docs/docs/2026-08-19/b6326a60-262d-4dcf-95cf-cb993ac7d162.png)

3. Scan the QR code on the page with DingTalk, or click the account avatar on the page.
4. Complete account login in DingTalk.

![Complete authorized login by scanning with DingTalk or clicking the avatar](https://www.letsmagic.cn/help/docs/docs/2026-08-19/4dc416fb-def0-4033-aecd-75aaebf192b2.png)

5. Return to the device authorization page and check the current application and authorization code.
6. Click Authorize.

![Confirm authorization on the DingTalk device authorization page](https://www.letsmagic.cn/help/docs/docs/2026-08-19/25b54819-877d-45a5-aabd-4629fe8bf3c5.png)

Do not send the authorization link, authorization code, or login QR code to unrelated people.

### Confirm That the DingTalk CLI Connection Succeeded

After the DingTalk page displays that authorization succeeded, close the authorization page and return to SuperMagic.

![DingTalk device authorization succeeded](https://www.letsmagic.cn/help/docs/docs/2026-08-19/742ae606-da3a-4dc2-9dc2-e8c097df0a21.png)

Wait for SuperMagic to continue checking the login status. When the page displays that the DingTalk CLI connection succeeded, the current account has been successfully connected.

![SuperMagic confirms that the DingTalk CLI connection succeeded](https://www.letsmagic.cn/help/docs/docs/2026-08-19/ed68f123-bbf2-4ffe-8386-81f3f77711f1.png)

## Connect Feishu CLI

### Start the Connection and Select Features

1. Open a SuperMagic conversation.
2. In the input box, describe the need to connect Feishu and the features you plan to use. For example: I want to connect Feishu. Help me configure automatic synchronization for approval workflows.
3. Submit the request.
4. Wait for the page to check the current Feishu login status and application status.

![Start a Feishu CLI connection in SuperMagic](https://www.letsmagic.cn/help/docs/docs/2026-08-19/5c6765c4-73d3-4233-b64b-faf5ecb33fdf.png)

5. When the page asks which Feishu features you need to use, select the corresponding options.
6. Click Submit.

![Select the features to use through Feishu](https://www.letsmagic.cn/help/docs/docs/2026-08-19/ef978424-4e04-4fce-baaf-42a1f7d1c136.png)

Select the permission scope based on the actual task. Do not select features that are not needed.

### Open the Feishu Application Configuration Entry

1. Wait for SuperMagic to generate a configuration link and the `Feishu Configuration QR Code.png` attachment.
2. Click `Feishu Configuration QR Code.png` to open the QR code image.
3. Scan the opened QR code with Feishu, or open the configuration link provided on the page in a browser.

![Open the Feishu application configuration QR code](https://www.letsmagic.cn/help/docs/docs/2026-08-19/1a16a3c9-96a2-41d7-86d5-5e08fffaca80.png)

The configuration link and QR code are time-sensitive. Use the entry newly generated in the current conversation.

### Create or Select a Feishu CLI Application

1. Sign in to the Feishu Open Platform account that you want to connect.
2. Select an existing application. If no application is available, create a Feishu CLI application.
3. When creating an application, select an application avatar and enter an application name.
4. Click Create.

![Create or select an application in the Feishu developer console](https://www.letsmagic.cn/help/docs/docs/2026-08-19/df9b2c9e-0736-432a-a7d3-218ecd8298d1.png)

After the page displays that the application was created successfully, continue configuring the application permissions.

![Feishu CLI application created successfully](https://www.letsmagic.cn/help/docs/docs/2026-08-19/d9be5bb4-690d-4e0b-906b-3fdab59067fd.png)

The App Secret is a sensitive credential. Do not send it to unrelated people or include it in public documentation.

### Enable Application Permissions

1. Check the current application name and the permission scope listed on the page.
2. If you need common capabilities such as documents, messages, and groups, select the corresponding common permission options.
3. Click Enable and Authorize.

![Check permissions and authorize the application on the Feishu page](https://www.letsmagic.cn/help/docs/docs/2026-08-19/5397f2d5-7841-4bf6-89f8-29123a32a42d.png)

Before authorizing, confirm that the current application and permission scope are correct. After the page displays that enabling and authorization succeeded, you can return to SuperMagic to continue.

![Feishu application permissions enabled successfully](https://www.letsmagic.cn/help/docs/docs/2026-08-19/48f0e183-4aaa-4fef-9485-3a6746c0079b.png)

### Authorize the Feishu Account

1. Return to the SuperMagic conversation and enter Configuration complete.
2. Wait for the page to check the application configuration and generate the `Feishu Authorization QR Code.png` attachment.
3. Click `Feishu Authorization QR Code.png` to open the account authorization QR code.
4. Scan the QR code with Feishu and confirm authorization on the page that opens.

![Open the Feishu account authorization QR code](https://www.letsmagic.cn/help/docs/docs/2026-08-19/98653cf2-10fb-487d-b2ee-b5b00bdf2d89.png)

5. After completing authorization by scanning the QR code, return to SuperMagic and enter Authorization complete.
6. Wait for the page to check the final connection status.

### Confirm That the Feishu CLI Connection Succeeded

When the page displays that the Feishu connection succeeded and lists the login account, application name, and authorization scope, the current account has been successfully connected.

![SuperMagic confirms that the Feishu CLI connection succeeded](https://www.letsmagic.cn/help/docs/docs/2026-08-19/708f6700-67a4-4f72-a803-a121d1fa1b21.png)

## Verify the Connection Result


| Platform     | Success criteria                                                                                                                 |
| ------------ | -------------------------------------------------------------------------------------------------------------------------------- |
| DingTalk CLI | SuperMagic displays that the DingTalk CLI connection succeeded.                                                                  |
| Feishu CLI   | SuperMagic displays that the Feishu connection succeeded and lists the login account, application name, and authorization scope. |


After the connection is complete, submit a test request with a clearly defined scope to confirm that the current account can properly call the corresponding platform capabilities.
