Skip to content

期望支持 token 直传 #129

Description

@Zheng-Langjun

CLI 封装好了命令,不想重复造轮子,能支持多用户并行使用就太好了。

Activity

  1. liangshuo-1 commented on Apr 1, 2026

    @liangshuo-1
    Collaborator

    Thanks for the feedback! Direct token passthrough is currently in development and will be supported in an upcoming release, which should enable multi-user concurrent usage scenarios.

    Stay tuned — we'll update this issue once it's available.

  2. meikidd commented on Apr 2, 2026

    @meikidd

    相关问题:#18 #29 #66 #104 #187 #204

    @liangshuo-1 期待尽快解决

  3. Astro-Han commented on Apr 3, 2026

    @Astro-Han

    +1,token 直传对团队场景非常关键。

    目前每个团队成员都得自己创建应用才能用 CLI,如果支持 token 直传,管理员就可以统一管理应用,成员拿到 token 即可使用,不用每人都走"建应用 → 配权限 → 审批"的完整流程。

    这个能力对于把 lark-cli 推广给非技术同事来说是刚需,期待尽快发布。

    相关讨论见 #234

  4. liangshuo-1 commented on Apr 8, 2026

    @liangshuo-1
    Collaborator

    Thanks for the feedback and sorry for the wait! This has been shipped in v1.0.5. Please upgrade and let us know if it works for your use case. Closing this one out

  5. meikidd commented on Apr 8, 2026

    @meikidd

    @liangshuo-1 can I know what is your solution and how to use this new feature? I could not found any relevant information in the README and CHANGELOG.

  6. liangshuo-1 commented on Apr 8, 2026

    @liangshuo-1
    Collaborator

    Sorry for the missing docs! You can pass tokens directly via environment variables:

    User identity

    export LARKSUITE_CLI_APP_ID="cli_xxx"
    export LARKSUITE_CLI_USER_ACCESS_TOKEN="u-xxx"
    lark-cli contact +search-user --query "test"

    Bot identity

    export LARKSUITE_CLI_APP_ID="cli_xxx"
    export LARKSUITE_CLI_TENANT_ACCESS_TOKEN="t-xxx"
    lark-cli im +send --receive-id-type open_id --receive-id ou_xxx --msg-type text --content '{"text":"hello"}'

    No config init or auth login needed — the CLI picks up env vars automatically.

    We'll update the README with this usage. Thanks for flagging it!

  7. almightyYantao commented on Apr 28, 2026

    @almightyYantao

    LARKSUITE_CLI_USER_ACCESS_TOKEN 不是 2 小时过期么?

  8. kingcanfish commented on May 11, 2026

    @kingcanfish

    user access token 怎么获取呢 为啥 readme 文件没有更新

  9. luojiaaoo commented on May 21, 2026

    @luojiaaoo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    domain/coreCLI framework and core libraries

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions