Skip to content

Feature Request: Support creating folders via drive command (+create-folder shortcut) #75

@zju-zhanglu

Description

@zju-zhanglu

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:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions