Zendesk CLI (zcli)
$ zcli Official Med RiskZendesk CLI (zcli) replaces legacy ZAT tools for developing Zendesk Apps Framework (ZAF) apps and Guide Help Center themes. It handles manifest validation, zip packaging, and theme previews, though it is app/theme-centric and relies on keychain or env-var credentials.
npm install -g @zendesk/zcli Use zcli for ZAF app validation, packaging, and Help Center theme deployment; direct ticket triage uses Zendesk Support REST APIs.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports ZENDESK_* env vars for CI, but lacks universal --json output and some apps:* / themes:* commands prompt interactively.
- Env-var authentication avoids interactive
zcli login - Human-formatted stdout without
--json
Local apps:validate and apps:package are safe; remote theme publishing and app updates mutate live support portals.
- OS keychain storage via keytar or scoped env tokens
- No dry-run flag on
themes:publishorapps:update
Distributed on npm (@zendesk/zcli), though native keytar dependencies can occasionally require build tools on minimal Linux containers.
npm install -g @zendesk/zcli
Standardizes ZAF app validation/packaging and Guide theme workflows.
- Official replacement for deprecated Ruby-based ZAT
Official Zendesk repository (zendesk/zcli) under Apache-2.0.
- Official Zendesk GitHub organization
Documented in Zendesk Developer Portal with command examples.
- Official docs at developer.zendesk.com
Security, Auth & Guardrails
Stores credentials via OS keychain (keytar) or reads ZENDESK_SUBDOMAIN, ZENDESK_EMAIL, and ZENDESK_API_TOKEN environment variables.
CLI is free (Apache-2.0); Zendesk sandboxes are included on eligible Suite plans.
# Zendesk zcli Agent Rules - Point `ZENDESK_SUBDOMAIN` to a Zendesk sandbox instance during automated runs. - Always run `zcli apps:validate` and `zcli apps:package` locally before `zcli apps:create` or `zcli apps:update`. - Never run `zcli themes:publish` on a live Help Center brand without human approval.
Agent-Ready Command Recipes
Safe Read-Only Queries
zcli apps:validate
Validates the local Zendesk app directory and manifest against Zendesk rules.
zcli themes:list --brandId=<BRAND_ID>
Lists Help Center themes associated with a specific Zendesk brand.
Controlled Writes & Previews
zcli apps:package
Validates and creates a deployable zip archive locally without uploading to Zendesk.
Strengths for Agents
- + Local
zcli apps:validateandzcli apps:packagecatch manifest errors before upload. - + Supports headless CI authentication via
ZENDESK_SUBDOMAIN,ZENDESK_EMAIL, andZENDESK_API_TOKEN. - + Cleanly replaces legacy Ruby ZAT tooling with a unified Node.js/oclif CLI.
Caveats & Pitfalls
- ! Lacks
--jsonoutput formatting for structured agent parsing. - ! Does not manage Zendesk support tickets—strictly scoped to apps and Help Center themes.