clerk-cli
Clerk CLI
The clerk binary is a pre-authenticated gateway to Clerk's Backend API and Platform API, plus project-level tooling (auth, linking, env pulls, instance config). When the user asks anything that touches a Clerk resource, reach for clerk first instead of hand-rolling curl.
This skill was installed by
clerk init(orclerk skill install) and is pinned to clerk{{CLI_VERSION}}. Ifclerk --versiondisagrees, refresh it withclerk skill install(orbunx clerk@{{CLI_VERSION}} skill install). The binary is always the source of truth, so runclerk <command> --helpto verify anything this skill claims.
Execution environment (prefer the host, understand the sandbox warning)
Most AI coding agents default to running shell commands in a sandbox where the user's home directory, OS keychain, browser launch, localhost callback binding, or network access may be blocked. The Clerk CLI depends on all of those host capabilities:
- OS credential store:
clerk auth loginstores the OAuth token in the system keychain. A sandbox without keychain access reports "not logged in" even when the host is authenticated. - Home-directory Clerk state: saved config, cached metadata, and fallback credentials live under the user's Clerk config/data directories.
- Linked project metadata: resolved from the repo's git remote plus Clerk
More from clerk/cli
changesets
Create or refresh a `.changeset/<slug>.md` for the current branch, or report that none is required. Triggers on "/changesets create", "add a changeset", "create a changeset", "update the changeset", "refresh the changeset", "do I need a changeset", or any work that touches `packages/**` source files on a feature branch.
5audit-clerk-skill
Audits the Clerk CLI source tree and proposes updates to the bundled `clerk-cli` skill so it stays in sync with the binary. Use when the user says "audit the clerk-cli skill", "update the clerk-cli skill", "check the skill against the code", "resync clerk-cli skill", or after adding/renaming/removing CLI commands, flags, or agent-mode behavior.
4clerk
>-
3