Summary
Lark CLI configuration, authentication, and operational guidelines for agent workflows.
- Requires initial setup via
lark-cli config init --new; generate QR codes for all verification URLs usinglark-cli auth qrcodebefore sharing with users - Supports two identity typesâÂÂuser (personal resources via
auth login) and bot (application-level via appId/appSecret)âÂÂwith distinct permission models; confirm identity matches the operation's intent - Handle permission errors differently by identity: bot requires backend scope setup (provide
console_url), user requiresauth login --scopeor--domainwith explicit scope specification - Use split-flow for agent-initiated auth: execute
--no-wait --jsonto get verification URL and device code, display to user, then execute--device-codein a follow-up step after user confirms completion - High-risk write operations require explicit user confirmation; when CLI exits with code 10 and
confirmation_requirederror, display the action details, obtain user consent, then retry with--yesappended to the original command
lark-cli 報享è§ÂÃ¥ÂÂ
æÂÂæÂ lark-* skill Ã¥Â
±äº«çÂÂåºÂ座ï¼Â身份ãÂÂ认è¯ÂãÂÂè¾Âåºå¥Â约ä¸Âé«Âé£Â驿ÂÂä½ÂãÂÂ
éÂÂç¨åÂÂÃ¥ÂÂ
- è°Âç¨åÂÂÃ¥Â
Â确认ç¨æ³Âï¼ÂæÂ§è¡ÂÃ¥ÂÂ读对庠reference æÂÂè·Â
--helpï¼Âå«ç flag ç²è°Âã - 身份å³å®Â你代表è°ÂæÂÂä½Âï¼Â
--as user代表ç¨æÂ·æÂ¬äººï¼Âè½çÂÂå°ãÂÂä¹Âè½æÂÂä½Âå ¶æÂ¥åÂÂãÂÂäºÂ空é´/äºÂçÂÂ/äºÂÃ¥ÂÂå¨çÂÂ个人èµÂæºÂï¼Âï¼Â--as bot代表åºÂç¨èª己ï¼ÂåºÂç¨级æÂÂä½Âï¼Âåªè½访é®botèª己çÂÂèµÂæºÂï¼Âbot æÂ¥ç¨æÂ·èµÂæºÂä¼Âè¿ÂÃ¥ÂÂ空æÂÂÃ¥ÂÂèÂÂéÂÂæÂ¥éÂÂãÂÂ卿ÂÂÃ¥ÂÂå ÂæÂÂ渠æ¥Â身份identityãÂÂ身份模åÂÂÃ¥ÂÂæÂÂéÂÂ管ç âÂÂlark-shared-identity-and-permissions.mdã - æÂÂæÂ / éÂ
Â置类 URL å¿Â
é¡»éÂ
ÂäºÂç»´ç Âï¼Âå½Âå½令è¾Âåº
verification_urlãÂÂverification_uri_completeãÂÂconsole_urlç URL Ã¥ÂÂ段æÂ¶ï¼Âå¿ é¡»ç¨lark-cli auth qrcodeçÂÂæÂÂå¹¶å¨åÂÂå¤Âä¸Âå±Â示ï¼ÂURL å¨åÂÂäºÂç»´ç Âå¨åÂÂï¼Âä¼Âå ÂçÂÂæÂ PNGï¼Â--outputï¼Âï¼Âä» å½Âç¨æÂ·æÂÂç¡®è¦Âæ±ÂæÂ¶æÂÂ使ç¨ ASCIIï¼Â--asciiï¼ÂãÂÂURL Ã¥ÂÂ样转åÂÂâÂÂâÂÂä¸Âç¼Âè§£ç ÂãÂÂä¸Âå æ Âç¹ãÂÂä¸ÂéÂÂæÂ¼ queryï¼ÂäºÂç»´ç ÂÃ¥ÂÂé¾æÂ¥è¯·ä¸Âèµ·å±Â示ç»Âç¨æÂ·ã - **
--format jsonï¼Âé»Â认ï¼Âä¸Âï¼Â夿ÂÂæÂÂÃ¥ÂÂç¨ok == trueï¼ÂæÂÂè¿Âç¨ÂéÂÂåº砠0ï¼Âï¼Âä¸Âè¦Âç¨code == 0**ï¼ÂæÂÂÃ¥ÂÂä¿¡å°Â没æÂÂé¡¶å±Âcode/msgÃ¥ÂÂ段ï¼Âcodeåªåºç°å¨éÂÂ误信å°ÂçÂÂerrorå ãÂÂæÂ OpenAPI èÂÂæ ¼å¼Â{"code": 0, "msg": "ok"}夿ÂÂä¼ÂæÂÂæÂÂæÂÂæÂÂÃ¥ÂÂè°Âç¨误å¤为失败âÂÂâÂÂå°Â裠åÂÂ堥类å½令æÂ¶å°¤å ¶å±é©ãÂÂJSON è¾Âåºå¥Â约 âÂÂlark-shared-output-contract.mdãÂÂ
å®Âå ¨è§ÂÃ¥ÂÂ
- **ç¦ÂæÂ¢è¾Âåºå¯ÂéÂÂ¥**ï¼ÂappSecretãÂÂaccessTokençÂÂï¼Âå°ç»Â端æÂÂæÂÂãÂÂ
Installs: 503.3K | GitHub stars: 18.2K | First seen: Mar 28, 2026


