Skip to content

docs: add TiDB Cloud CLI (ti) Preview documentation - #23306

Open
Icemap wants to merge 35 commits into
pingcap:release-8.5from
Icemap:docs/tdc-preview
Open

docs: add TiDB Cloud CLI (ti) Preview documentation#23306
Icemap wants to merge 35 commits into
pingcap:release-8.5from
Icemap:docs/tdc-preview

Conversation

@Icemap

@Icemap Icemap commented Jul 17, 2026

Copy link
Copy Markdown
Member

What is changed, added or deleted? (Required)

This PR adds Preview documentation for the TiDB Cloud Command Line Interface (ti) to the AI documentation:

  • Adds a quick start, overview, complete per-command reference, scenario-based examples, and supporting reference pages.
  • Covers TiDB Cloud Starter databases, TiDB Cloud Filesystem, FS Git workspaces, journals, vaults, configuration, security, regions, installation, and updates.
  • Documents remote Filesystem inventory and explicit selection by immutable file system ID.
  • Adds individual references and lifecycle guidance for generating owner and path-and-operation-limited scoped tokens, listing token metadata, enabling, disabling, refreshing, and deleting Filesystem tokens.
  • Explains that one Filesystem can have multiple owner and scoped tokens while the local CLI selects at most one token per profile and file system ID.
  • Documents one-time token plaintext handling, scoped path and operation grants, owner/scoped capability boundaries, local credential replacement, external secret-manager rotation, authentication convergence, and active-mount protection.
  • Documents projectless local configuration, server-default Starter placement, removal of the project inventory command, and preservation of project metadata returned by TiDB Cloud.
  • Documents synchronous resource workflows with --wait, asynchronous Filesystem deletion, explicit Filesystem selection, and Starter-only database guardrails.
  • Documents Linux FUSE, Docker and Docker Compose requirements, macOS WebDAV and macFUSE behavior, Ubuntu 26.04 AppArmor mount-path restrictions, and graceful unmount behavior.
  • Documents the hidden ~/.ti/.preferences file, anonymous telemetry privacy boundaries and controls, and the ti update local-state isolation boundary.
  • Documents the v0.2 migration from tdc to ti, including ~/.tdc to ~/.ti state migration, active-mount handling, conflict protection, canonical environment variables, and the temporary legacy-variable compatibility window.
  • Renames the documentation directory, filenames, commands, local paths, environment variables, repository links, TOC entries, and internal links from the pre-v0.2 tdc name to ti.
  • Clarifies that ti manages Starter and Filesystem workflows and does not replace ticloud for TiDB Cloud Essential.

These changes provide task-oriented documentation that gets users and coding agents to a working database or Filesystem quickly while documenting the complete command surface and the boundary between ti and its bundled Drive9 companion.

Which TiDB version(s) do your changes apply to? (Required)

  • master (the latest development version)
  • v8.5 (TiDB 8.5 versions)
  • v8.4 (TiDB 8.4 versions)
  • v8.3 (TiDB 8.3 versions)
  • v8.2 (TiDB 8.2 versions)
  • v8.1 (TiDB 8.1 versions)
  • v7.5 (TiDB 7.5 versions)
  • v7.1 (TiDB 7.1 versions)
  • v6.5 (TiDB 6.5 versions)

What is the related PR or file link(s)?

AI agent involvement

  • The changes in this PR were primarily made by an AI agent on behalf of the PR author.

Do your changes match any of the following descriptions?

  • Delete files
  • Change aliases
  • Need modification after applied to another branch
  • Might cause conflicts after applied to another branch

Validation

  • git diff --check
  • Internal documentation-link validation
  • Current TiDB Cloud CLI command and flag review
  • make test
  • make e2e
  • make live-e2e-fs

@ti-chi-bot

ti-chi-bot Bot commented Jul 17, 2026

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@ti-chi-bot ti-chi-bot Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 17, 2026
@ti-chi-bot

ti-chi-bot Bot commented Jul 17, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign hfxsd for approval. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot Bot added missing-translation-status This PR does not have translation status info. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jul 17, 2026
@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The PR adds Preview TiDB Cloud CLI documentation covering navigation, concepts, installation, configuration, Starter databases, Filesystem operations, references, troubleshooting, and agent-oriented examples.

Changes

TiDB Cloud CLI documentation

Layer / File(s) Summary
Navigation, overview, and CLI concepts
TOC-ai.md, ai/_index.md, ai/tdc/tdc-overview.md, ai/tdc/tdc-quick-start.md, ai/tdc/concepts/*
Adds tdc navigation, overview, quick-start workflows, command structure, profiles, credential boundaries, filesystem selection, local state, and Drive9 ownership details.
Installation, database workflows, and CLI references
ai/tdc/guides/tdc-install-configure-update.md, ai/tdc/guides/tdc-organization.md, ai/tdc/guides/tdc-starter-database.md, ai/tdc/reference/tdc-cli-reference.md, ai/tdc/reference/tdc-configuration-and-credentials.md
Documents installation, configuration, organization and Starter database commands, CLI conventions, output and dry-run behavior, credential precedence, and local state.
Filesystem operations, mounts, and recovery
ai/tdc/guides/tdc-filesystem.md, ai/tdc/reference/tdc-regions-security-and-limitations.md, ai/tdc/reference/tdc-troubleshooting.md
Documents filesystem data, layers, portability, mounting, platform limitations, durability behavior, supported regions, and troubleshooting procedures.
Git, journal, and vault workflows
ai/tdc/guides/tdc-filesystem-git.md, ai/tdc/guides/tdc-filesystem-journal.md, ai/tdc/guides/tdc-filesystem-vault.md
Adds guides for Git workspaces, append-only journals and integrity checks, secret delegation, process injection, auditing, and read-only vault mounts.
Agent and automation examples
ai/tdc/examples/*
Adds examples covering daily workflows, sandbox access, Git workspaces, journaling, role-based SQL, cross-machine filesystem sharing, and delegated vault secrets.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Suggested labels: contribution, type/enhancement, area/tidb-cloud

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Title check ⚠️ Warning The title identifies the TiDB Cloud CLI documentation, but it uses “ti” while the changeset and objectives consistently describe the CLI as “tdc”. Update the title to use “tdc” and match the documented command name, for example: “docs: add TiDB Cloud CLI (tdc) Preview documentation”.
Linked Issues check ❓ Inconclusive The description provides repository and issue-tracker links but does not identify a specific related issue or pull request. Add a direct issue or pull request link, or state explicitly that no specific linked issue exists.
✅ Passed checks (3 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Out of Scope Changes check ✅ Passed The summarized changes are documentation-only and directly support the stated TiDB Cloud CLI documentation objective.
Description check ✅ Passed The description includes the required change summary, affected version, reference links, AI involvement, change categories, and validation details.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Icemap
Icemap marked this pull request as ready for review July 17, 2026 18:56
@ti-chi-bot ti-chi-bot Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 17, 2026
@Icemap Icemap added translation/done This PR has been translated from English into Chinese and updated to pingcap/docs-cn in a PR. and removed missing-translation-status This PR does not have translation status info. labels Jul 17, 2026
@Icemap

Icemap commented Jul 17, 2026

Copy link
Copy Markdown
Member Author

Chinese Translation PR(from this PR): pingcap/docs-cn#21821
Do NOT need to translate for Cloud docs.

@Icemap Icemap added translation/no-need No need to translate this PR. and removed translation/done This PR has been translated from English into Chinese and updated to pingcap/docs-cn in a PR. labels Jul 20, 2026
github-actions Bot pushed a commit to qiancai/pingcap-docsite-preview that referenced this pull request Jul 21, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 8


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 4d883b3f-66fa-4bed-96ac-947087cee7c2

📥 Commits

Reviewing files that changed from the base of the PR and between af05473 and 977c8a5.

📒 Files selected for processing (23)
  • TOC-ai.md
  • ai/_index.md
  • ai/tdc/concepts/tdc-concepts-and-architecture.md
  • ai/tdc/examples/tdc-agent-sandbox-example.md
  • ai/tdc/examples/tdc-daily-workflow-example.md
  • ai/tdc/examples/tdc-git-workspace-for-agents-example.md
  • ai/tdc/examples/tdc-journal-agent-workflow-example.md
  • ai/tdc/examples/tdc-query-sql-with-roles-example.md
  • ai/tdc/examples/tdc-share-filesystem-across-machines-example.md
  • ai/tdc/examples/tdc-vault-agent-secrets-example.md
  • ai/tdc/guides/tdc-filesystem-git.md
  • ai/tdc/guides/tdc-filesystem-journal.md
  • ai/tdc/guides/tdc-filesystem-vault.md
  • ai/tdc/guides/tdc-filesystem.md
  • ai/tdc/guides/tdc-install-configure-update.md
  • ai/tdc/guides/tdc-organization.md
  • ai/tdc/guides/tdc-starter-database.md
  • ai/tdc/reference/tdc-cli-reference.md
  • ai/tdc/reference/tdc-configuration-and-credentials.md
  • ai/tdc/reference/tdc-regions-security-and-limitations.md
  • ai/tdc/reference/tdc-troubleshooting.md
  • ai/tdc/tdc-overview.md
  • ai/tdc/tdc-quick-start.md


Coding agents often start in clean, short-lived sandboxes. The local disk disappears when the sandbox is replaced, but the agent still needs previous artifacts, repository state, and files produced by other workers. Rebuilding that state wastes task time, while copying `~/.tdc/` or injecting TiDB Cloud API keys gives the sandbox control-plane credentials it does not need.

## Why local storage and full cloud credentials are not enough

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Replace vague quantifiers flagged by Vale.

These replacements make the documentation more precise without changing its technical meaning.

  • ai/tdc/examples/tdc-agent-sandbox-example.md#L18-L18: replace the heading with “Why local storage and full cloud credentials do not solve the full problem”.
  • ai/tdc/examples/tdc-agent-sandbox-example.md#L20-L20: replace “a much broader security boundary” with “a broader security boundary”.
  • ai/tdc/examples/tdc-git-workspace-for-agents-example.md#L18-L18: replace the heading with “Why a normal clone or partial clone does not solve the startup problem”.
  • ai/tdc/examples/tdc-git-workspace-for-agents-example.md#L20-L20: replace “many on-demand fetches” with “repeated on-demand fetches”.
  • ai/tdc/examples/tdc-journal-agent-workflow-example.md#L18-L18: replace the heading with “Why appending to a normal file does not provide the required guarantees”.
  • ai/tdc/examples/tdc-query-sql-with-roles-example.md#L18-L18: replace the heading with “Why one native database connection does not provide sufficient privilege isolation”.
  • ai/tdc/examples/tdc-share-filesystem-across-machines-example.md#L18-L18: replace the heading with “Why native local disks and manual synchronization do not provide shared state”.
  • ai/tdc/examples/tdc-vault-agent-secrets-example.md#L16-L16: replace “the lifetime that need it” with “the lifetime that require it”.
  • ai/tdc/examples/tdc-vault-agent-secrets-example.md#L18-L18: replace the heading with “Why ordinary environment variables and files do not provide scoped delegation”.

As per path instructions, these Markdown wording fixes should be applied as exact committable replacements.

🧰 Tools
🪛 GitHub Check: vale

[warning] 18-18:
[vale] reported by reviewdog 🐶
[PingCAP.Ambiguous] Consider using a clearer word than 'enough' because it may cause confusion.

Raw Output:
{"message": "[PingCAP.Ambiguous] Consider using a clearer word than 'enough' because it may cause confusion.", "location": {"path": "ai/tdc/examples/tdc-agent-sandbox-example.md", "range": {"start": {"line": 18, "column": 57}}}, "severity": "INFO"}

📍 Affects 6 files
  • ai/tdc/examples/tdc-agent-sandbox-example.md#L18-L18 (this comment)
  • ai/tdc/examples/tdc-agent-sandbox-example.md#L20-L20
  • ai/tdc/examples/tdc-git-workspace-for-agents-example.md#L18-L18
  • ai/tdc/examples/tdc-git-workspace-for-agents-example.md#L20-L20
  • ai/tdc/examples/tdc-journal-agent-workflow-example.md#L18-L18
  • ai/tdc/examples/tdc-query-sql-with-roles-example.md#L18-L18
  • ai/tdc/examples/tdc-share-filesystem-across-machines-example.md#L18-L18
  • ai/tdc/examples/tdc-vault-agent-secrets-example.md#L16-L16
  • ai/tdc/examples/tdc-vault-agent-secrets-example.md#L18-L18

Sources: Path instructions, Linters/SAST tools

Comment thread ai/tdc/reference/tdc-daily-workflow-example.md Outdated
Comment thread ai/tdc/reference/tdc-share-filesystem-across-machines-example.md Outdated
Comment on lines +43 to +52
export TDC_VAULT_TOKEN="$(tdc fs-vault create-grant \
--agent-id example-agent \
--scope service-demo/ENDPOINT \
--permission read \
--ttl 10m \
--label-hint example \
--token-only)"
```

Record the returned grant ID from the structured create result in a real workflow. The token is captured and not printed.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒 Security & Privacy | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '## tree\n'
git ls-files .ai/AI-README.md .ai/shared .ai/skills | sed -n '1,200p'

printf '\n## relevant files\n'
fd -a -t f 'AI-README.md|.*' .ai . 2>/dev/null | sed -n '1,200p'

Repository: pingcap/docs

Length of output: 10488


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '## .ai/AI-README.md\n'
cat -n .ai/AI-README.md

printf '\n## .ai/shared files\n'
fd -a -t f . .ai/shared 2>/dev/null | sed -n '1,200p'

printf '\n## .ai/skills files\n'
fd -a -t f . .ai/skills 2>/dev/null | sed -n '1,200p'

Repository: pingcap/docs

Length of output: 219


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '## .ai/AI-README.md\n'
sed -n '1,220p' .ai/AI-README.md

printf '\n## .ai/shared\n'
for f in .ai/shared/*.md; do
  [ -f "$f" ] || continue
  printf '\n### %s\n' "$f"
  sed -n '1,220p' "$f"
done

printf '\n## .ai/skills matching review-doc-pr if present\n'
if [ -d .ai/skills/review-doc-pr ]; then
  find .ai/skills/review-doc-pr -maxdepth 2 -type f | sort | while read -r f; do
    printf '\n### %s\n' "$f"
    sed -n '1,220p' "$f"
  done
fi

Repository: pingcap/docs

Length of output: 230


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '## target file excerpt\n'
cat -n ai/tdc/examples/tdc-vault-agent-secrets-example.md | sed -n '1,220p'

printf '\n## search for create-grant / delete-grant usage\n'
rg -n "create-grant|delete-grant|grant ID|token-only|structured create result|label-hint" ai/tdc -S

Repository: pingcap/docs

Length of output: 5315


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '## required guidance\n'
sed -n '1,220p' .ai/AI-README.md

printf '\n## shared guidance files\n'
for f in .ai/shared/*.md; do
  [ -f "$f" ] || continue
  printf '\n### %s\n' "$f"
  sed -n '1,220p' "$f"
done

printf '\n## review-doc-pr skill files\n'
if [ -d .ai/skills/review-doc-pr ]; then
  find .ai/skills/review-doc-pr -maxdepth 2 -type f | sort | while read -r f; do
    printf '\n### %s\n' "$f"
    sed -n '1,220p' "$f"
  done
fi

Repository: pingcap/docs

Length of output: 231


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '## target file excerpt\n'
cat -n ai/tdc/examples/tdc-vault-agent-secrets-example.md | sed -n '1,220p'

printf '\n## related references\n'
rg -n "create-grant|delete-grant|grant ID|token-only|structured create result|label-hint" ai/tdc -S

Repository: pingcap/docs

Length of output: 5289


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "README:"
sed -n '1,220p' .ai/AI-README.md

echo
echo "TARGET:"
cat -n ai/tdc/examples/tdc-vault-agent-secrets-example.md | sed -n '1,220p'

echo
echo "MATCHES:"
rg -n "create-grant|delete-grant|grant ID|token-only|structured create result|label-hint" ai/tdc -S

Repository: pingcap/docs

Length of output: 218


🏁 Script executed:

#!/bin/bash
set -euo pipefail

cat -n ai/tdc/guides/tdc-filesystem-vault.md | sed -n '50,130p'

Repository: pingcap/docs

Length of output: 2747


🏁 Script executed:

#!/bin/bash
set -euo pipefail

python3 - <<'PY'
from pathlib import Path
p = Path('ai/tdc/guides/tdc-filesystem-vault.md')
text = p.read_text()
for key in ['create-grant', 'delete-grant', '--token-only', '--format', 'grant-id', 'structured']:
    print(f'## {key}')
    for i, line in enumerate(text.splitlines(), 1):
        if key in line:
            print(f'{i}: {line}')
PY

Repository: pingcap/docs

Length of output: 778


🏁 Script executed:

#!/bin/bash
set -euo pipefail

python3 - <<'PY'
from pathlib import Path
p = Path('ai/tdc/guides/tdc-filesystem-vault.md')
lines = p.read_text().splitlines()
for start in [1, 50, 90, 130]:
    print(f'## lines {start}-{min(start+49, len(lines))}')
    for i in range(start, min(start+50, len(lines)+1)):
        print(f'{i:4d} {lines[i-1]}')
PY

Repository: pingcap/docs

Length of output: 5692


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "## guide excerpt"
sed -n '55,115p' ai/tdc/guides/tdc-filesystem-vault.md

echo
echo "## create-grant / delete-grant context"
rg -n -C 3 "create-grant|delete-grant|token-only|grant-id|format" ai/tdc/guides/tdc-filesystem-vault.md

Repository: pingcap/docs

Length of output: 2629


🏁 Script executed:

#!/bin/bash
set -euo pipefail

python3 - <<'PY'
from pathlib import Path
p = Path('ai/tdc/examples/tdc-vault-agent-secrets-example.md')
lines = p.read_text().splitlines()

# Print the exact surrounding context for the comment target.
for i in range(40, 86):
    if 1 <= i <= len(lines):
        print(f'{i:4d} {lines[i-1]}')
PY

Repository: pingcap/docs

Length of output: 1429


🏁 Script executed:

#!/bin/bash
set -euo pipefail

python3 - <<'PY'
from pathlib import Path
p = Path('ai/tdc/examples/tdc-vault-agent-secrets-example.md')
text = p.read_text()

# Look for any statement that suggests grant ID is available with token-only.
for needle in [
    'structured create result',
    'returned grant ID',
    '--token-only',
    '--format',
    'grant-id',
]:
    print(f'== {needle} ==')
    for i, line in enumerate(text.splitlines(), 1):
        if needle in line:
            print(f'{i}: {line}')
PY

Repository: pingcap/docs

Length of output: 578


Preserve the grant ID for revocation. --token-only only returns the vault token, but Step 4 still needs <grant-id> for delete-grant. Show how to keep the grant ID in the flow, or split this into a separate non---token-only create-grant step.

Suggested replacement
Suggested change
export TDC_VAULT_TOKEN="$(tdc fs-vault create-grant \
--agent-id example-agent \
--scope service-demo/ENDPOINT \
--permission read \
--ttl 10m \
--label-hint example \
--token-only)"
```
Record the returned grant ID from the structured create result in a real workflow. The token is captured and not printed.
Record the returned grant ID from the create result in a real workflow. If you need to revoke the grant later, run `tdc fs-vault create-grant` without `--token-only` and save the returned grant ID before exporting the token.

Comment thread ai/tdc/reference/tdc-filesystem.md Outdated
Comment thread ai/tdc/reference/tdc-install-configure-update.md Outdated
Comment thread ai/tdc/reference/tdc-troubleshooting.md Outdated
Comment thread ai/ti/ti-quick-start.md
Comment on lines +100 to +105
Clean up:

```bash
tdc fs delete-file-system \
--file-system-name quickstart-fs
```

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Make asynchronous Filesystem cleanup explicit.

The PR documents Filesystem deletion as asynchronous, but this section ends immediately after submitting the delete request. Users can therefore assume the resource is gone while deletion is still pending.

Suggested Markdown insertion
 tdc fs delete-file-system \
   --file-system-name quickstart-fs

+Filesystem deletion is asynchronous. Verify that the resource reaches its terminal deleted state before treating cleanup as complete.

</details>

As per path instructions, this is a safe contiguous Markdown insertion.

<!-- suggestion_start -->

<details>
<summary>📝 Committable suggestion</summary>

> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

```suggestion
Clean up:

Source: Path instructions

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
ai/tdc/reference/tdc-cli-reference.md (1)

17-29: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Put global flags after command-specific optional flags.

The syntax specifies required flags, then optional flags, then global flags, but this example places global --output before optional --view. Keep the example consistent with the documented ordering.

tdc db describe-db-cluster
  --db-cluster-id <string>
  [--view <string>]
  [--output <string>]

Source: Path instructions


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 23d03ff3-8115-45be-bdc2-7b773b107c5a

📥 Commits

Reviewing files that changed from the base of the PR and between 977c8a5 and 5b98201.

📒 Files selected for processing (1)
  • ai/tdc/reference/tdc-cli-reference.md

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
ai/tdc/reference/tdc-cli-reference.md (1)

127-131: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Make the error example match the documented leading blank line.

The prose states that errors start with a blank line, but the example begins directly with tdc [ERROR].

As per path instructions, this Markdown fix is provided as a committable replacement.

Proposed replacement
 ```text
+
 tdc [ERROR]: <message>

</details>

<!-- cr-comment:v1:ab4f5392eeee50b178f6f080 -->

_Source: Path instructions_

</blockquote></details>

</blockquote></details>

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: e0107458-475e-4aa2-8ae6-703677039572

📥 Commits

Reviewing files that changed from the base of the PR and between 5b98201 and 7079820.

📒 Files selected for processing (1)
  • ai/tdc/reference/tdc-cli-reference.md

github-actions Bot pushed a commit to qiancai/pingcap-docsite-preview that referenced this pull request Jul 21, 2026
Comment thread TOC-ai.md Outdated
Comment thread TOC-ai.md Outdated
Comment thread TOC-ai.md Outdated
github-actions Bot pushed a commit to qiancai/pingcap-docsite-preview that referenced this pull request Aug 1, 2026
github-actions Bot pushed a commit to qiancai/pingcap-docsite-preview that referenced this pull request Aug 2, 2026
github-actions Bot pushed a commit to qiancai/pingcap-docsite-preview that referenced this pull request Aug 3, 2026
github-actions Bot pushed a commit to qiancai/pingcap-docsite-preview that referenced this pull request Aug 4, 2026
github-actions Bot pushed a commit to qiancai/pingcap-docsite-preview that referenced this pull request Aug 5, 2026
github-actions Bot pushed a commit to qiancai/pingcap-docsite-preview that referenced this pull request Aug 6, 2026
github-actions Bot pushed a commit to qiancai/pingcap-docsite-preview that referenced this pull request Aug 7, 2026
github-actions Bot pushed a commit to qiancai/pingcap-docsite-preview that referenced this pull request Aug 8, 2026
github-actions Bot pushed a commit to qiancai/pingcap-docsite-preview that referenced this pull request Aug 9, 2026
@Icemap Icemap changed the title docs: add TiDB Cloud CLI (tdc) Preview documentation docs: add TiDB Cloud CLI (ti) Preview documentation Aug 10, 2026
github-actions Bot pushed a commit to qiancai/pingcap-docsite-preview that referenced this pull request Aug 10, 2026
github-actions Bot pushed a commit to qiancai/pingcap-docsite-preview that referenced this pull request Aug 11, 2026
github-actions Bot pushed a commit to qiancai/pingcap-docsite-preview that referenced this pull request Aug 12, 2026
github-actions Bot pushed a commit to qiancai/pingcap-docsite-preview that referenced this pull request Aug 13, 2026
@CLAassistant

CLAassistant commented Aug 14, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

github-actions Bot pushed a commit to qiancai/pingcap-docsite-preview that referenced this pull request Aug 14, 2026
github-actions Bot pushed a commit to qiancai/pingcap-docsite-preview that referenced this pull request Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. translation/no-need No need to translate this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants