You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -109,10 +115,12 @@ Each project includes a `type`: `tidbx` identifies a regular project and `tidbx_
109
115
```bash
110
116
tdc update --check
111
117
tdc update --dry-run
112
-
tdc update --yes
113
-
tdc update --target-version v0.1.0 --yes
118
+
tdc update
119
+
tdc update --target-version v0.1.1
114
120
```
115
121
122
+
`tdc update` downloads and verifies both `tdc` and its `tdc-drive9` companion before replacing either binary in the user-writable install directory. It never requests sudo. Legacy installations under `/usr/local/bin` must run the installer once to migrate to `~/.tdc/bin`.
Copy file name to clipboardExpand all lines: docs/priciples.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,9 +162,13 @@ CLI v2 for TiDB Cloud \| Init Date: 2026\-05\-18 \|@Todd Bao
162
162
163
163
- Update checks are explicit, for example `tdc update --check`\.
164
164
165
-
- Self\-update is explicit, for example `tdc update --yes`, and must
165
+
- Self\-update is explicit, for example `tdc update`, and must
166
166
refuse package\-manager installs with actionable instructions\.
167
167
168
+
- Direct installers place binaries in the user\-owned `~/.tdc/bin`
169
+
directory\. Installation and update must not require sudo; users add
170
+
`export PATH="$HOME/.tdc/bin:$PATH"` to their shell environment\.
171
+
168
172
5.`--output`
169
173
170
174
6.`--query` / JMESPath**** — Even with JSON, there is no way to extract a single field \(e\.g\., cluster ID from a create response\)\. The dev/agent must parse the entire response\. Provide `--query` to remove noisy output and save tokens\. For `db` command, if SQL executions are designed in the future, it will use `--sql`, no conflicts here\.
Copy file name to clipboardExpand all lines: docs/release-notes/v0.1.1.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# tdc v0.1.1
2
2
3
-
This release adds configuration-free tdc fs access for ephemeral agent sandboxes. An existing file system can now be used without running `tdc configure` or providing TiDB Cloud API keys: supply `TDC_FS_TOKEN`, `TDC_REGION_CODE`, and `TDC_FS_FILE_SYSTEM_NAME`, then use the normal `tdc fs`, `tdc fs-git`, `tdc fs-journal`, and `tdc fs-vault` commands.
3
+
This release adds configuration-free tdc fs access for ephemeral agent sandboxes and makes tdc installation and updates fully user-owned. An existing file system can be used without running `tdc configure` or providing TiDB Cloud API keys: supply `TDC_FS_TOKEN`, `TDC_REGION_CODE`, and `TDC_FS_FILE_SYSTEM_NAME`, then use the normal `tdc fs`, `tdc fs-git`, `tdc fs-journal`, and `tdc fs-vault` commands.
The release keeps environment-provided credentials in memory, preserves configured profile workflows, isolates companion runtime state per file system, and allows drain and unmount operations to locate a configuration-free mount without storing its FS token.
15
15
16
-
Upgrade an existing archive or installer-managed `v0.1.0` installation with:
16
+
On macOS and Linux, the installer now places `tdc` and `tdc-drive9` in `~/.tdc/bin`; Windows uses `%USERPROFILE%\.tdc\bin`. It does not use `sudo`, write to `/usr/local/bin`, or create system-level links. Add the user-owned directory to `PATH` after installation:
17
17
18
18
```bash
19
-
tdc update --check
20
-
tdc update --yes
19
+
curl -fsSL https://github.com/tidbcloud/tdc/releases/latest/download/install.sh | sh -s -- --yes
20
+
export PATH="$HOME/.tdc/bin:$PATH"
21
21
tdc --version
22
22
```
23
+
24
+
Once installed in the user-owned directory, `tdc update` verifies and replaces both bundled binaries without `--yes` or elevated privileges:
Copy file name to clipboardExpand all lines: docs/spec/0020-homebrew-and-scoop-distribution.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ Existing `tdc` commands keep the same behavior:
26
26
```bash
27
27
tdc update --check
28
28
tdc update --dry-run
29
-
tdc update --yes
29
+
tdc update
30
30
```
31
31
32
32
For Homebrew and Scoop installs, `tdc update` must not replace the binary. It returns `update.managed_install` with the correct package-manager command.
@@ -59,13 +59,13 @@ No user `~/.tdc/` config or credentials are required for package-manager install
59
59
60
60
## Output And Errors
61
61
62
-
`tdc update --yes` from a Homebrew install:
62
+
`tdc update` from a Homebrew install:
63
63
64
64
```text
65
65
tdc [ERROR]: tdc is managed by homebrew; update it with `brew upgrade tidbcloud/tap/tdc`
66
66
```
67
67
68
-
`tdc update --yes` from a Scoop install:
68
+
`tdc update` from a Scoop install:
69
69
70
70
```text
71
71
tdc [ERROR]: tdc is managed by scoop; update it with `scoop update tdc`
@@ -78,15 +78,17 @@ The structured error code remains `update.managed_install`.
78
78
Users can choose between direct GitHub Releases installers and package-manager installs:
79
79
80
80
```bash
81
-
curl -fsSL https://github.com/tidbcloud/tdc/releases/latest/download/install.sh | sh -s -- --install-dir "$HOME/.local/bin" --yes
81
+
curl -fsSL https://github.com/tidbcloud/tdc/releases/latest/download/install.sh | sh -s -- --yes
82
+
export PATH="$HOME/.tdc/bin:$PATH"
82
83
brew install tidbcloud/tap/tdc
83
84
```
84
85
85
86
Windows users can choose between the PowerShell installer and Scoop:
0 commit comments