@rafay99/cvx 0.38.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.
- package/README.md +5 -3
- package/cvx.1 +26 -3
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -158,8 +158,10 @@ bun run dev # runs as work — both live simultaneously
|
|
|
158
158
|
| `cvx refresh <account>` / `--all` | Re-authenticate one account — or every account in one sitting |
|
|
159
159
|
| `cvx link <account> [path]` | Link a project dir (default cwd) to an account |
|
|
160
160
|
| `cvx unlink [path]` | Remove a link |
|
|
161
|
+
| `cvx scan [dir] [--depth N] [--yes]` | Auto-discover projects under a dir and link them to accounts by team |
|
|
161
162
|
| `cvx rename <old> <new>` | Rename an account, keeping its links |
|
|
162
|
-
| `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 |
|
|
163
165
|
| `cvx use [account]` | Activate by name from anywhere — or this dir's account / an interactive pick |
|
|
164
166
|
| `cvx run <account> -- <cmd>` | Run one command as `<account>` without changing the global login |
|
|
165
167
|
| `cvx open` | Open the Convex dashboard for this project's deployment |
|
|
@@ -168,12 +170,12 @@ bun run dev # runs as work — both live simultaneously
|
|
|
168
170
|
| `cvx accounts` | List stored accounts (with when each token was last verified) |
|
|
169
171
|
| `cvx ls` | List linked projects |
|
|
170
172
|
| `cvx which [path]` | Print the account name for a dir (scripting) |
|
|
171
|
-
| `cvx prompt` |
|
|
173
|
+
| `cvx prompt [--starship\|--color]` | Prompt segment: bare name · starship config block · ANSI-colored name |
|
|
172
174
|
| `cvx keychain <status\|enable\|disable>` | Store tokens in the OS keychain instead of a file |
|
|
173
175
|
| `cvx vault <status\|encrypt\|decrypt\|unlock\|lock>` | Passphrase-encrypt stored tokens (unlock once per session) |
|
|
174
176
|
| `cvx export [file]` / `cvx import <file>` | Encrypted vault backup / restore — new-machine setup in one command |
|
|
175
177
|
| `cvx upgrade` | Check for a newer release and print the exact upgrade command |
|
|
176
|
-
| `cvx doctor` | Check setup + per-account token health |
|
|
178
|
+
| `cvx doctor [--fix]` | Check setup + per-account token health (`--fix` repairs hook/links/marker/tokens) |
|
|
177
179
|
| `cvx completions <shell>` | Print a completion script (zsh/bash/fish/powershell) |
|
|
178
180
|
| `cvx hook [--install] [--shell …]` | Install the cd-hook (zsh/bash/fish/nu/powershell) |
|
|
179
181
|
|
package/cvx.1
CHANGED
|
@@ -40,6 +40,16 @@ account may be linked to many projects.
|
|
|
40
40
|
.B cvx unlink \fR[\fIpath\fR]
|
|
41
41
|
Remove a link.
|
|
42
42
|
.TP
|
|
43
|
+
.B cvx scan \fR[\fIdir\fR] [\fB--depth\fR \fIN\fR] [\fB--yes\fR]
|
|
44
|
+
Walk \fIdir\fR (default: the current directory) up to \fIN\fR levels deep
|
|
45
|
+
(default 4), find Convex projects (a directory whose \fI.env.local\fR has a
|
|
46
|
+
\fBCONVEX_DEPLOYMENT\fR line), and propose a link for each whose deployment team
|
|
47
|
+
matches exactly one stored account. Hidden directories and \fBnode_modules\fR are
|
|
48
|
+
skipped, and a project directory is never descended into. In an interactive
|
|
49
|
+
terminal it asks before linking; otherwise \fB--yes\fR is required to apply.
|
|
50
|
+
Already-linked directories are left untouched (a conflicting link is reported,
|
|
51
|
+
never overwritten).
|
|
52
|
+
.TP
|
|
43
53
|
.B cvx rename \fIold\fR \fInew\fR
|
|
44
54
|
Rename an account, keeping every link that pointed at it.
|
|
45
55
|
.TP
|
|
@@ -86,7 +96,7 @@ List linked projects; the current directory is marked.
|
|
|
86
96
|
.B cvx which \fR[\fIpath\fR]
|
|
87
97
|
Print the account name for a directory (exit 1 if none). For scripting.
|
|
88
98
|
.TP
|
|
89
|
-
.B cvx prompt
|
|
99
|
+
.B cvx prompt \fR[\fB--starship\fR|\fB--color\fR]
|
|
90
100
|
Print the active account name and nothing else \(em for embedding in a shell
|
|
91
101
|
prompt. Fast and never errors.
|
|
92
102
|
.SS Manage
|
|
@@ -99,6 +109,15 @@ Show or change where account tokens are stored. \fBenable\fR moves them into the
|
|
|
99
109
|
OS keychain (macOS Keychain, libsecret on Linux, DPAPI on Windows); \fBdisable\fR
|
|
100
110
|
moves them back to the chmod-600 file vault.
|
|
101
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
|
|
102
121
|
.B cvx vault \fR<\fBstatus\fR|\fBencrypt\fR|\fBdecrypt\fR|\fBunlock\fR|\fBlock\fR>
|
|
103
122
|
Passphrase-encrypt the stored tokens (AES-256-GCM, scrypt-derived key).
|
|
104
123
|
\fBunlock\fR caches the key for the session (cleared by \fBlock\fR or a
|
|
@@ -117,11 +136,15 @@ Re-authenticate every stored account in one sitting (a browser sign-in each).
|
|
|
117
136
|
Check for a newer cvx release and print the exact upgrade command for how it
|
|
118
137
|
was installed (Homebrew, npm/bun, or GitHub tarball).
|
|
119
138
|
.TP
|
|
120
|
-
.B cvx doctor \fR[\fB--no-tokens\fR]
|
|
139
|
+
.B cvx doctor \fR[\fB--no-tokens\fR] [\fB--fix\fR]
|
|
121
140
|
Check your setup and report problems: Node/npx availability, whether you have a
|
|
122
141
|
Convex login, vault integrity, the token storage backend, the active account,
|
|
123
142
|
and whether the shell hook is installed. Also pings Convex to check each stored
|
|
124
|
-
token's health (skip that with \fB--no-tokens\fR).
|
|
143
|
+
token's health (skip that with \fB--no-tokens\fR). With \fB--fix\fR it repairs
|
|
144
|
+
what it can \(em installs a missing shell hook, prunes dead links, clears a
|
|
145
|
+
stale active marker, and (interactively) offers to re-authenticate rejected
|
|
146
|
+
tokens; problems it fixes no longer force a non-zero exit. Exits non-zero on any
|
|
147
|
+
remaining problem.
|
|
125
148
|
.TP
|
|
126
149
|
.B cvx welcome
|
|
127
150
|
Show the welcome screen again.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rafay99/cvx",
|
|
3
|
-
"version": "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.
|
|
23
|
-
"@rafay99/cvx-darwin-x64": "0.
|
|
24
|
-
"@rafay99/cvx-linux-x64": "0.
|
|
25
|
-
"@rafay99/cvx-linux-arm64": "0.
|
|
26
|
-
"@rafay99/cvx-win32-x64": "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
|
}
|