-
Notifications
You must be signed in to change notification settings - Fork 183
Open
Description
Feature Request
Summary
Add a shortcut command to create folders in Lark Drive, similar to how docs +create creates documents.
Proposed Command
lark-cli drive +create-folder --folder-token <parent_folder_token> --name <folder_name>Underlying API
The Feishu Open Platform already provides this capability:
- Create Folder API:
POST /open-apis/drive/v1/files/create_folder - Scope:
drive:drive:write - API Doc: https://open.feishu.cn/document/server-docs/docs/drive-v1/folder/create
Use Case
When organizing files programmatically (e.g., creating weekly report folders under a parent directory), there is currently no way to create folders via lark-cli. The drive module only supports files.copy, not folder creation. The only workaround is using lark-cli api POST /open-apis/drive/v1/files/create_folder --data '...', which is verbose and error-prone for a common operation.
Proposed Parameters
| Flag | Required | Description |
|---|---|---|
--folder-token |
Yes | Parent folder token where the new folder will be created |
--name |
Yes | Name of the new folder |
Additional Context
Other drive operations like +upload, +download, +add-comment already have shortcut commands. Folder creation is a fundamental operation and deserves the same treatment.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels