
Zendesk CLI (ZCLI)
CLIZendesk 官方命令行:在本地预览、导入并发布帮助中心(Help Center)主题,也能创建、打包、部署 Zendesk 应用(如工单侧边栏应用),适合维护帮助中心页面的客服管理员。需要 Zendesk 账号、Node.js 20.17 以上与 yarn,改主题需懂一些 HTML/CSS,先用 zcli login 在浏览器里登录。
ZCLI
ZCLI is a Zendesk CLI which helps you build and manage your Zendesk apps and themes from the command line. ZCLI is built using the oclif framework.
Note: ZCLI is the successor to Zendesk App Tools (ZAT). If you're currently using ZAT, please migrate to ZCLI for the latest features and support.
For more about ZCLI see the full documentation.
Getting started
This is a Node.js module available through the npm registry.
Before installing, download and install Node.js. Node.js v20.17.0 or higher is required. Installation is done using the yarn install command:
$ yarn global add @zendesk/zcli
Installation prerequisites for Linux
Currently ZCLI has a dependency on libsecret to save authentication information securely in the operating system's keychain.
Depending on your distribution, you will need to run one of the following commands prior to installing ZCLI:
- Debian/Ubuntu:
sudo apt install libsecret-1-dev - Red Hat-based:
sudo yum install libsecret-devel - Arch Linux:
sudo pacman -S libsecret
Note for environments without Linux window manager (X11) support
ZCLI's credential manager has a dependency on Linux's windowing manager (X11) which will cause some commands to fail to run on an environment without window manager support. These commands include: zcli login, zcli logout and zcli profiles.
For headless Linux in a Docker container
- Install
gnome-keyring,dbus-x11and the corresponding libsecret package listed above - Launch
dbus
export $(dbus-launch)
- Unlock the Gnome keyring daemon with a dummy password
echo "123456" | gnome-keyring-daemon -r --unlock --components=secrets
Refer to this sample Dockerfile to see how you can run ZCLI on a headless installation of Ubuntu.
For Windows users running Linux on WSL
WSL2 now supports running Linux GUI application. For users unable to upgrade to WSL2, there are a number of workarounds available:
- Manually starting a DBus session and unlocking the Gnome keyring with a password supplied via STDIN(similar to headless docker above)
- Using X11 forwarding to be able to enable the Gnome keyring prompt to display
Commands
ZCLI supports numerous commands. Further documentation on available commands can be found here.
$ zcli apps- manage zendesk apps workflow.$ zcli connectors- manage zendesk connectors workflow. [Early Access - Limited Availability]$ zcli themes- manage zendesk themes workflow.$ zcli profiles- manage zcli profiles.$ zcli login- login to zendesk account.$ zcli logout- logout and remove active profile.$ zcli autocomplete- display autocomplete installation instructions.$ zcli help- display help for zcli
Local development
To run your development copy of ZCLI locally, execute yarn link:bin.
Under macOS if you are using a version manager like asdf, it can additionally set up the global /usr/local/bin/zcli.
Note you need global Node.js and ts-node for this as well.
brew install --formula node yarn
yarn global add ts-node
Under Windows this can only be used in WSL2 or Cygwin.
Contributing
Note: We are not routinely reviewing issues and merging community-submitted pull requests. We hope to begin reviewing these again soon, but for the moment we appreciate your patience.
Thanks for your interest in ZCLI! Community involvement helps improve the experience for all developers using the Zendesk platform.
Got issues with what you find here? You can create an issue on Github, report the issue in the Zendesk Developers Slack group, or for other problems, contact Zendesk Customer Support.
If you'd like to take a crack at making some changes, please refer to our contributing guide.
ZAF App Scaffolding
Some useful app scaffolds for build ZAF apps that incorporate the ZCLI tool are avaliable at zendesk/app_scaffolds
Releasing
- Run the "Create Release PR" workflow
- Once the release PR is merged, a new version will be released and published to npm.
License
Copyright 2022 Zendesk, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
相关资源

Zendesk MCP Server
MCP让 agent 查看、创建和更新 Zendesk 工单与评论,读取帮助中心文章作为知识库,并内置工单分析与回复起草提示词。每位客服用自己的账号 OAuth 授权,需管理员先注册 OAuth 客户端,从源码安装。
reminia/zendesk-mcp-server123
Freshservice CLI (Printing Press)
CLI社区用 Printing Press 生成的 Freshservice 命令行(非官方):IT 服务台人员可让 AI 查看个人待办队列、预警即将违反 SLA 的工单、跨工单与知识库搜索、统计各组工作量、找出反复出现的问题和知识库缺口,并管理变更与资产。需要 Freshservice 账号与 API Key。
mvanhorn/printing-press-library2.1k
Intercom CLI (Printing Press)
CLI社区用 Printing Press 生成的 Intercom 命令行(非官方),覆盖全部 REST 接口:客服团队可让 AI 把会话、联系人和帮助文章同步到本地离线搜索,批量给同一事件的会话打标签,查看客户全景与 SLA 报告,拉取或推送帮助文章;支持美国、欧洲、澳洲区域。需要 Intercom 账号与访问令牌。
mvanhorn/printing-press-library2.1k
Chatwoot CLI
CLIChatwoot 官方命令行:客服可让 AI 查看和搜索会话、回复客户、写内部备注、分配处理人、打标签、改优先级和结单,并查询帮助中心文章;自带 agent 技能,规定发出客户可见回复前的安全规则。需要 Chatwoot 账号(云服务或自部署)与 API Key。
chatwoot/cli9
kb-article
Skill把已解决的工单、常见问题或临时解决方案整理成可直接发布的知识库文章,按操作指南、故障排查、FAQ、已知问题等类型组织结构,并优化可搜索性。属于 Anthropic 官方 customer-support 插件。
anthropics/knowledge-work-plugins30.1k
Customer Support
Plugin客服插件:给工单分类定级并建议路由,起草客户回复,打包升级工单,多来源检索客户问题,并把已解决问题沉淀为知识库文章。Anthropic 官方。
anthropics/knowledge-work-plugins29.9k