Skip to content

Commit 998207f

Browse files
committed
docs(skill): document --name and --secret-key flags, fix api ls example
1 parent 9255b9a commit 998207f

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

skills/clerk-cli/SKILL.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -112,27 +112,27 @@ See [references/recipes.md](references/recipes.md) for concrete patterns: listin
112112

113113
## Core commands at a glance
114114

115-
| Command | Purpose | Key flags |
116-
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------- |
117-
| `clerk init` | Scaffold Clerk into a project, or emit an agent handoff with `--prompt`. | `--framework`, `--pm`, `--prompt`, `--starter`, `-y`, `--no-skills` |
118-
| `clerk auth login` | OAuth browser login (stores token). Agent mode: no-op if already logged in, else prints guidance. ||
119-
| `clerk auth logout` | Clear stored credentials. ||
120-
| `clerk whoami` | Print the logged-in email. ||
121-
| `clerk link` | Link this repo to a Clerk app. | `--app <id>` |
122-
| `clerk unlink` | Remove the link. | `--yes` |
123-
| `clerk env pull` | Write publishable + secret keys to `.env.local` (merge, not clobber). | `--app`, `--instance`, `--file` |
124-
| `clerk config pull` | Fetch instance config JSON. | `--app`, `--instance`, `--output`, `--keys` |
125-
| `clerk config schema` | Fetch the JSON Schema for the instance config. | `--app`, `--instance`, `--output`, `--keys` |
126-
| `clerk config patch` | Partial update (PATCH) of instance config. | `--file`, `--json`, `--dry-run`, `--yes`, `--destructive` |
127-
| `clerk config put` | Full replacement (PUT) of instance config. Pass `--destructive` to actually delete removed sub-resources rather than resetting them to defaults. | `--file`, `--json`, `--dry-run`, `--yes`, `--destructive` |
128-
| `clerk apps list` | List Clerk applications. | `--json` |
129-
| `clerk apps create <name>` | Create a new Clerk application. | `--json` |
130-
| `clerk open [subpath]` | Open the linked app's dashboard in a browser. Agent mode: prints a JSON descriptor instead of opening. | `--print` |
131-
| `clerk doctor` | Health check. | `--json`, `--spotlight`, `--verbose`, `--fix` |
132-
| `clerk api [path]` | Authenticated HTTP to Backend/Platform API. | `-X`, `-d`, `--file`, `--dry-run`, `--yes`, `--include`, `--app`, `--instance`, `--platform` |
133-
| `clerk api ls [filter]` | Discover endpoints from the bundled OpenAPI catalog. | `--platform` |
134-
| `clerk completion [shell]` | Print a shell completion script (`bash`, `zsh`, `fish`, `powershell`). ||
135-
| `clerk skill install` | Reinstall the bundled `clerk-cli` skill. Run after upgrading the CLI so the skill matches the new binary. | `-y`, `--pm` |
115+
| Command | Purpose | Key flags |
116+
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
117+
| `clerk init` | Scaffold Clerk into a project, or emit an agent handoff with `--prompt`. | `--framework`, `--pm`, `--name` (with `--starter`), `--prompt`, `--starter`, `-y`, `--no-skills` |
118+
| `clerk auth login` | OAuth browser login (stores token). Agent mode: no-op if already logged in, else prints guidance. | |
119+
| `clerk auth logout` | Clear stored credentials. | |
120+
| `clerk whoami` | Print the logged-in email. | |
121+
| `clerk link` | Link this repo to a Clerk app. | `--app <id>` |
122+
| `clerk unlink` | Remove the link. | `--yes` |
123+
| `clerk env pull` | Write publishable + secret keys to `.env.local` (merge, not clobber). | `--app`, `--instance`, `--file` |
124+
| `clerk config pull` | Fetch instance config JSON. | `--app`, `--instance`, `--output`, `--keys` |
125+
| `clerk config schema` | Fetch the JSON Schema for the instance config. | `--app`, `--instance`, `--output`, `--keys` |
126+
| `clerk config patch` | Partial update (PATCH) of instance config. | `--file`, `--json`, `--dry-run`, `--yes`, `--destructive` |
127+
| `clerk config put` | Full replacement (PUT) of instance config. Pass `--destructive` to actually delete removed sub-resources rather than resetting them to defaults. | `--file`, `--json`, `--dry-run`, `--yes`, `--destructive` |
128+
| `clerk apps list` | List Clerk applications. | `--json` |
129+
| `clerk apps create <name>` | Create a new Clerk application. | `--json` |
130+
| `clerk open [subpath]` | Open the linked app's dashboard in a browser. Agent mode: prints a JSON descriptor instead of opening. | `--print` |
131+
| `clerk doctor` | Health check. | `--json`, `--spotlight`, `--verbose`, `--fix` |
132+
| `clerk api [path]` | Authenticated HTTP to Backend/Platform API. | `-X`, `-d`, `--file`, `--dry-run`, `--yes`, `--include`, `--app`, `--secret-key`, `--instance`, `--platform` |
133+
| `clerk api ls [filter]` | Discover endpoints from the bundled OpenAPI catalog. | `--platform` |
134+
| `clerk completion [shell]` | Print a shell completion script (`bash`, `zsh`, `fish`, `powershell`). | |
135+
| `clerk skill install` | Reinstall the bundled `clerk-cli` skill. Run after upgrading the CLI so the skill matches the new binary. | `-y`, `--pm` |
136136

137137
**`clerk <command> --help` is the source of truth for flags.** This table is a hint, not a spec. Before running an unfamiliar command or flag combination, run `clerk <command> --help` once per session. Every command also defines `setExamples([...])` in source, which `--help` renders as a copy-pasteable Examples block, so you rarely need to guess syntax.
138138

skills/clerk-cli/references/agent-mode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ clerk api /users --app app_abc123 --instance prod
9393

9494
```sh
9595
clerk api ls users # discover available user endpoints
96-
clerk api ls -- --platform apps # platform-side endpoints
96+
clerk api ls --platform apps # platform-side endpoints
9797
```
9898

9999
### Surface doctor remedies to the user

0 commit comments

Comments
 (0)