@rafay99/cvx 0.14.0 → 0.18.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 +10 -5
- package/cvx.1 +10 -2
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -73,9 +73,10 @@ exec zsh
|
|
|
73
73
|
> type is still `cvx`.
|
|
74
74
|
|
|
75
75
|
Prebuilt binaries: **macOS** (arm64/x64), **Linux** (arm64/x64), **Windows**
|
|
76
|
-
(x64).
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
(x64). Auto-switching works on **zsh, bash, and PowerShell** — `cvx hook
|
|
77
|
+
--install` detects your shell (PowerShell on Windows) and wires the hook into
|
|
78
|
+
the right startup file (`~/.zshrc`, `~/.bashrc`, or your PowerShell `$PROFILE`).
|
|
79
|
+
Force one with `cvx hook --install --shell powershell`.
|
|
79
80
|
|
|
80
81
|
**From source** (Bun):
|
|
81
82
|
|
|
@@ -140,6 +141,7 @@ bun run dev # runs as work — both live simultaneously
|
|
|
140
141
|
| `cvx accounts` | List stored accounts |
|
|
141
142
|
| `cvx ls` | List linked projects |
|
|
142
143
|
| `cvx which [path]` | Print the account name for a dir (scripting) |
|
|
144
|
+
| `cvx doctor` | Check your setup (node/npx, login, vault, hook) |
|
|
143
145
|
| `cvx rm <account>` | Forget an account and its links |
|
|
144
146
|
| `cvx hook [--install]` | Print (or install) the zsh cd-hook |
|
|
145
147
|
|
|
@@ -151,10 +153,13 @@ a single binary, so the split costs nothing at build time.
|
|
|
151
153
|
```
|
|
152
154
|
bin/cvx.ts entry point + command dispatch
|
|
153
155
|
src/store.ts data layer: vault I/O, the config swap, token verify, paths
|
|
154
|
-
src/ui.ts
|
|
156
|
+
src/ui.ts the logo banner, first-run welcome, help
|
|
157
|
+
src/colors.ts the palette (edit here to re-theme)
|
|
155
158
|
src/commands.ts one function per subcommand
|
|
159
|
+
src/hooks.ts zsh / bash / PowerShell shell-hook snippets
|
|
160
|
+
src/system.ts external-tool checks (node/npx)
|
|
156
161
|
src/args.ts flag parsing
|
|
157
|
-
man/cvx.1 man page (installed by Homebrew → `man cvx`)
|
|
162
|
+
man/cvx.1 man page (installed by Homebrew/npm → `man cvx`)
|
|
158
163
|
```
|
|
159
164
|
|
|
160
165
|
First run of a bare `cvx` shows a welcome screen; `cvx welcome` shows it again,
|
package/cvx.1
CHANGED
|
@@ -37,8 +37,10 @@ account may be linked to many projects.
|
|
|
37
37
|
.B cvx unlink \fR[\fIpath\fR]
|
|
38
38
|
Remove a link.
|
|
39
39
|
.TP
|
|
40
|
-
.B cvx hook \fR[\fB--install\fR]
|
|
41
|
-
Print the
|
|
40
|
+
.B cvx hook \fR[\fB--install\fR] [\fB--shell\fR \fIzsh\fR|\fIbash\fR|\fIpowershell\fR]
|
|
41
|
+
Print the directory-change hook, or with \fB--install\fR wire it into the shell
|
|
42
|
+
startup file (\fI~/.zshrc\fR, \fI~/.bashrc\fR, or the PowerShell \fB$PROFILE\fR).
|
|
43
|
+
The shell is auto-detected when \fB--shell\fR is omitted (PowerShell on Windows).
|
|
42
44
|
.SS Everyday
|
|
43
45
|
.TP
|
|
44
46
|
.B cvx activate \fR[\fB-q\fR] [\fIpath\fR]
|
|
@@ -62,6 +64,12 @@ Print the account name for a directory (exit 1 if none). For scripting.
|
|
|
62
64
|
.B cvx rm \fIaccount\fR
|
|
63
65
|
Forget an account and any links pointing at it.
|
|
64
66
|
.TP
|
|
67
|
+
.B cvx doctor
|
|
68
|
+
Check your setup and report problems: Node/npx availability (needed for
|
|
69
|
+
\fBcvx login\fR), whether you have a Convex login, vault integrity, the active
|
|
70
|
+
account, and whether the shell hook is installed. Exits non-zero if something
|
|
71
|
+
needs attention.
|
|
72
|
+
.TP
|
|
65
73
|
.B cvx welcome
|
|
66
74
|
Show the welcome screen again.
|
|
67
75
|
.TP
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rafay99/cvx",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.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.js", "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.18.0",
|
|
23
|
+
"@rafay99/cvx-darwin-x64": "0.18.0",
|
|
24
|
+
"@rafay99/cvx-linux-x64": "0.18.0",
|
|
25
|
+
"@rafay99/cvx-linux-arm64": "0.18.0",
|
|
26
|
+
"@rafay99/cvx-win32-x64": "0.18.0"
|
|
27
27
|
}
|
|
28
28
|
}
|