Lark CLI: Control Your Lark Platform Without Touching the UI
If you've ever had to automate Slack, Teams, or any enterprise messaging platform, you know the pain of juggling API tokens, webhook configurations, and rate limits. Lark (formerly Feishu) just made that a whole lot smoother with their official CLI.
No more context switching between browser tabs and terminal. No more digging through API docs just to create a bot or post a message. Lark CLI puts the entire Lark platform at your fingertips from the command line. And the best part? It's designed to be AI agent friendly, meaning you can pipe commands directly into your automation workflows or LLM-powered scripts.
What It Does
Lark CLI is a command-line tool that lets you interact with the Lark platform (messaging, calendars, documents, bots, etc.) directly from your terminal. You can:
- Create and manage bots
- Send messages to users, groups, or channels
- Manage documents and spreadsheets
- Control calendar events
- Handle approval workflows
- And pretty much anything else you'd do through the Lark API
Under the hood, it wraps Lark's OpenAPI into clean, discoverable CLI commands. So instead of crafting HTTP requests with bearer tokens, you just type lark bot create or lark message send.
Why It's Cool
Three things stand out to me:
-
AI Agent Friendly – This isn't just marketing fluff. The commands are structured to be easily consumed by language models and automation scripts. You can feed the help output directly into an LLM and it'll understand how to chain commands. Perfect for building internal tools or AI-powered bots.
-
No Complex Auth – Lark CLI handles OAuth token management for you. One-time setup, then you're good to go. No more refreshing tokens or storing secrets in environment variables.
-
Discoverable DX – The commands follow a predictable pattern.
lark helpshows you everything.lark [resource] helpshows you subcommands. It's the kind of design that makes you go "oh, that makes sense" instead of "where did they hide that flag?"
How to Try It
Getting started takes about 30 seconds:
# Install via npm or yarn
npm install -g @larksuiteoapi/cli
# Or if you're on macOS with Homebrew
brew update && brew install larksuite/tap/lark
# Set up your Lark app credentials
lark config set app_id YOUR_APP_ID app_secret YOUR_APP_SECRET
# List available commands
lark help
# Send a message to a group
lark message send -c group_id -t "Hello from CLI" -r chat_XXXXX
The repo has a full examples/ directory with real-world workflows. Check out the README for auth setup details and command reference.
Final Thoughts
Look, not every company is on Lark. But if you are, this is the kind of tool that makes you wonder why it didn't exist sooner. It's clean, well-documented, and respects how developers actually work (in the terminal, obviously).
For teams building internal tools, automating workflows, or messing around with AI agents, Lark CLI removes a lot of friction. Give it a shot next time you need to post an automated message or manage a calendar event without leaving your editor.
Follow @githubprojects for more developer tools and open source projects.
Repository: https://github.com/larksuite/cli