From fa9417f46ed49fb746114699272d8f0f1351a3b6 Mon Sep 17 00:00:00 2001 From: sacOO7 Date: Mon, 4 May 2026 11:44:44 +0530 Subject: [PATCH] Implemented missing options flag for cli documentation --- CLAUDE.md | 4 ++++ src/pages/docs/cli/apps/current.mdx | 2 +- src/pages/docs/cli/apps/delete.mdx | 2 +- src/pages/docs/cli/apps/rules/update.mdx | 2 +- src/pages/docs/cli/apps/update.mdx | 2 +- src/pages/docs/cli/auth/revoke-token.mdx | 2 +- src/pages/docs/cli/autocomplete.mdx | 2 +- src/pages/docs/cli/config/path.mdx | 2 +- src/pages/docs/cli/config/show.mdx | 2 +- src/pages/docs/cli/env.mdx | 2 +- src/pages/docs/cli/interactive.mdx | 4 ++-- src/pages/docs/cli/login.mdx | 2 +- src/pages/docs/cli/push/devices/get.mdx | 2 +- src/pages/docs/cli/spaces/cursors/get.mdx | 2 +- src/pages/docs/cli/spaces/get.mdx | 2 +- src/pages/docs/cli/spaces/locations/get.mdx | 2 +- src/pages/docs/cli/spaces/locks/get.mdx | 2 +- src/pages/docs/cli/spaces/members/get.mdx | 2 +- src/pages/docs/cli/spaces/occupancy/get.mdx | 2 +- src/pages/docs/cli/version.mdx | 2 +- 20 files changed, 24 insertions(+), 20 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 2f19893ccc..c955af1967 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -297,6 +297,10 @@ See `writing-style-guide.md` for full details. Key points: - Avoid em-dashes, Latin abbreviations (use "for example" not "e.g."), and slang - Avoid bold prefixes in bullet points +## CLI reference docs (`src/pages/docs/cli/`) + +CLI command pages use **kebab-case** for argument and flag placeholders (for example ``, `[lock-id]`, `--client-id`), even when the upstream oclif autogenerated reference uses `SNAKE_CASE`/uppercase (for example `CHANNEL_NAME`). This case difference is the deliberate doc convention — do not "fix" pages to match oclif casing. + ## Testing Tests use Jest with React Testing Library. Test files are colocated with source files as `*.test.tsx` or `*.test.ts`. diff --git a/src/pages/docs/cli/apps/current.mdx b/src/pages/docs/cli/apps/current.mdx index 2501816cad..490b6bf476 100644 --- a/src/pages/docs/cli/apps/current.mdx +++ b/src/pages/docs/cli/apps/current.mdx @@ -10,7 +10,7 @@ Use the `ably apps current` command to display information about the currently s ```shell -ably apps current +ably apps current [options] ``` diff --git a/src/pages/docs/cli/apps/delete.mdx b/src/pages/docs/cli/apps/delete.mdx index 15db935a4a..88609dcd66 100644 --- a/src/pages/docs/cli/apps/delete.mdx +++ b/src/pages/docs/cli/apps/delete.mdx @@ -14,7 +14,7 @@ ably apps delete [app-id] [options] ``` -