mirror of
https://github.com/larksuite/cli.git
synced 2026-07-08 02:00:19 +08:00
1.3 KiB
1.3 KiB
task +tasklist-create
Prerequisites: Please read
../lark-shared/SKILL.mdto understand authentication, global parameters, and security rules.
Create a new tasklist, and optionally batch create tasks within it.
Recommended Commands
# Create an empty tasklist
lark-cli task +tasklist-create --name "Q1 Goals"
# Create a tasklist and add members
lark-cli task +tasklist-create --name "Project A" --member "ou_xxx,ou_yyy"
# Create a tasklist and batch create tasks within it
lark-cli task +tasklist-create --name "Launch Checklist" --data '[{"summary": "Code Review", "assignee": "ou_aaa"}, {"summary": "Deploy", "assignee": "ou_bbb"}]'
Parameters
| Parameter | Required | Description |
|---|---|---|
--name <text> |
Yes | The name of the tasklist. |
--member <ids> |
No | Comma-separated list of user open_ids to add as editors. |
--data <json> |
No | JSON array of task definitions to create and add to the tasklist automatically. |
Workflow
- Confirm the tasklist name, members, and tasks (if any).
- Execute the command
lark-cli task +tasklist-create .... - Report success, including the new tasklist ID and the result of the batch task creation.
Caution
This is a Write Operation -- You must confirm the user's intent before executing.