@rafay99/cvx 0.42.0 → 0.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +3 -2
  2. package/cvx.1 +10 -1
  3. package/package.json +6 -6
package/README.md CHANGED
@@ -160,7 +160,8 @@ bun run dev # runs as work — both live simultaneously
160
160
  | `cvx unlink [path]` | Remove a link |
161
161
  | `cvx scan [dir] [--depth N] [--yes]` | Auto-discover projects under a dir and link them to accounts by team |
162
162
  | `cvx rename <old> <new>` | Rename an account, keeping its links |
163
- | `cvx rm <account>` | Forget an account and its links |
163
+ | `cvx rm <account>` | Forget an account and its links (asks on a TTY; `--force` skips) |
164
+ | `cvx undo [--list]` | Restore the vault to before the last change — rm, rename, import, scan, all reversible |
164
165
  | `cvx use [account]` | Activate by name from anywhere — or this dir's account / an interactive pick |
165
166
  | `cvx run <account> -- <cmd>` | Run one command as `<account>` without changing the global login |
166
167
  | `cvx open` | Open the Convex dashboard for this project's deployment |
@@ -169,7 +170,7 @@ bun run dev # runs as work — both live simultaneously
169
170
  | `cvx accounts` | List stored accounts (with when each token was last verified) |
170
171
  | `cvx ls` | List linked projects |
171
172
  | `cvx which [path]` | Print the account name for a dir (scripting) |
172
- | `cvx prompt` | Print the active account name (for a shell prompt segment) |
173
+ | `cvx prompt [--starship\|--color]` | Prompt segment: bare name · starship config block · ANSI-colored name |
173
174
  | `cvx keychain <status\|enable\|disable>` | Store tokens in the OS keychain instead of a file |
174
175
  | `cvx vault <status\|encrypt\|decrypt\|unlock\|lock>` | Passphrase-encrypt stored tokens (unlock once per session) |
175
176
  | `cvx export [file]` / `cvx import <file>` | Encrypted vault backup / restore — new-machine setup in one command |
package/cvx.1 CHANGED
@@ -96,7 +96,7 @@ List linked projects; the current directory is marked.
96
96
  .B cvx which \fR[\fIpath\fR]
97
97
  Print the account name for a directory (exit 1 if none). For scripting.
98
98
  .TP
99
- .B cvx prompt
99
+ .B cvx prompt \fR[\fB--starship\fR|\fB--color\fR]
100
100
  Print the active account name and nothing else \(em for embedding in a shell
101
101
  prompt. Fast and never errors.
102
102
  .SS Manage
@@ -109,6 +109,15 @@ Show or change where account tokens are stored. \fBenable\fR moves them into the
109
109
  OS keychain (macOS Keychain, libsecret on Linux, DPAPI on Windows); \fBdisable\fR
110
110
  moves them back to the chmod-600 file vault.
111
111
  .TP
112
+ .B cvx undo \fR[\fB--list\fR] [\fB--yes\fR]
113
+ Restore the vault (accounts, links, config, active marker) to how it was
114
+ before the last change. A snapshot is taken automatically before every
115
+ mutating command (rm, rename, unlink, import, scan, doctor --fix, storage
116
+ migrations), capped at five. Running \fBundo\fR twice reverses the restore.
117
+ Moving tokens to a more protected backend clears the history so old plaintext
118
+ never lingers. OS-keychain secrets deleted from the keychain itself are not
119
+ restorable.
120
+ .TP
112
121
  .B cvx vault \fR<\fBstatus\fR|\fBencrypt\fR|\fBdecrypt\fR|\fBunlock\fR|\fBlock\fR>
113
122
  Passphrase-encrypt the stored tokens (AES-256-GCM, scrypt-derived key).
114
123
  \fBunlock\fR caches the key for the session (cleared by \fBlock\fR or a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rafay99/cvx",
3
- "version": "0.42.0",
3
+ "version": "0.49.0",
4
4
  "description": "Switch Convex accounts per project automatically — run many Convex accounts across projects at once, no login/logout churn, no deploy keys, no tokens in your repos",
5
5
  "keywords": [
6
6
  "convex", "convex-dev", "convex-cli", "cli", "command-line",
@@ -19,10 +19,10 @@
19
19
  "files": ["launcher.cjs", "cvx.1", "README.md", "LICENSE"],
20
20
  "engines": { "node": ">=16" },
21
21
  "optionalDependencies": {
22
- "@rafay99/cvx-darwin-arm64": "0.42.0",
23
- "@rafay99/cvx-darwin-x64": "0.42.0",
24
- "@rafay99/cvx-linux-x64": "0.42.0",
25
- "@rafay99/cvx-linux-arm64": "0.42.0",
26
- "@rafay99/cvx-win32-x64": "0.42.0"
22
+ "@rafay99/cvx-darwin-arm64": "0.49.0",
23
+ "@rafay99/cvx-darwin-x64": "0.49.0",
24
+ "@rafay99/cvx-linux-x64": "0.49.0",
25
+ "@rafay99/cvx-linux-arm64": "0.49.0",
26
+ "@rafay99/cvx-win32-x64": "0.49.0"
27
27
  }
28
28
  }