@rehpic/vcli 0.1.0-beta.5.1

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 ADDED
@@ -0,0 +1,197 @@
1
+ # Vector CLI
2
+
3
+ CLI for interacting with a Vector workspace from the terminal.
4
+
5
+ This package wraps the same auth and Convex-backed workflows used by the app, so you can manage orgs, roles, teams, projects, issues, documents, notifications, and admin settings without opening the UI.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install -g @rehpic/vcli
11
+ ```
12
+
13
+ Then verify the install:
14
+
15
+ ```bash
16
+ vcli --help
17
+ ```
18
+
19
+ ## Requirements
20
+
21
+ - Node.js `>=20.19.0`
22
+ - A running Vector app
23
+ - Access to the app's Convex deployment
24
+
25
+ The CLI talks to:
26
+
27
+ - the Next.js app for auth routes
28
+ - the Convex deployment for queries, mutations, and actions
29
+
30
+ The app URL is required. `vcli` resolves it from:
31
+
32
+ - `--app-url <url>`
33
+ - the saved profile session
34
+ - `NEXT_PUBLIC_APP_URL`
35
+
36
+ The Convex URL still defaults from:
37
+
38
+ - `NEXT_PUBLIC_CONVEX_URL` or `CONVEX_URL`
39
+
40
+ You can override either with flags:
41
+
42
+ ```bash
43
+ vcli --app-url http://localhost:3000 --convex-url https://<deployment>.convex.cloud --help
44
+ ```
45
+
46
+ ## First Run
47
+
48
+ Sign up or log in:
49
+
50
+ ```bash
51
+ vcli --app-url http://localhost:3000 auth signup --email you@example.com --username you --password 'secret'
52
+ vcli --app-url http://localhost:3000 auth login you@example.com --password 'secret'
53
+ vcli auth whoami
54
+ ```
55
+
56
+ Create and select an org:
57
+
58
+ ```bash
59
+ vcli org create --name "Acme" --slug acme
60
+ vcli org use acme
61
+ ```
62
+
63
+ From there, most commands can rely on the active org. You can always override it with `--org <slug>`.
64
+
65
+ ## Profiles
66
+
67
+ Sessions are stored per profile in:
68
+
69
+ ```text
70
+ ~/.vector/cli-<profile>.json
71
+ ```
72
+
73
+ Examples:
74
+
75
+ ```bash
76
+ vcli --profile work auth login you@example.com --password 'secret'
77
+ vcli --profile staging --app-url http://localhost:3001 auth whoami
78
+ ```
79
+
80
+ Use profiles when you work across multiple environments or accounts.
81
+
82
+ ## Common Commands
83
+
84
+ Inspect the current session:
85
+
86
+ ```bash
87
+ vcli auth whoami
88
+ vcli org current
89
+ vcli org members acme
90
+ ```
91
+
92
+ Discover workspace metadata before mutating:
93
+
94
+ ```bash
95
+ vcli refdata acme
96
+ vcli search --org acme "billing"
97
+ vcli permission check issue:create --org acme
98
+ ```
99
+
100
+ Create core entities:
101
+
102
+ ```bash
103
+ vcli team create --org acme --key eng --name "Engineering"
104
+ vcli project create --org acme --key api --name "API" --team eng
105
+ vcli issue create --org acme --title "Ship CLI" --project api --team eng
106
+ vcli document create --org acme --title "CLI Notes"
107
+ vcli folder create --org acme --name "Runbooks"
108
+ ```
109
+
110
+ Issue workflows:
111
+
112
+ ```bash
113
+ vcli issue list --org acme
114
+ vcli issue assignments API-1
115
+ vcli issue set-priority API-1 High
116
+ vcli issue replace-assignees API-1 "alice,bob"
117
+ vcli issue comment API-1 --body "Investigating now."
118
+ ```
119
+
120
+ Invites and notifications:
121
+
122
+ ```bash
123
+ vcli org invite acme --email teammate@example.com
124
+ vcli invite list
125
+ vcli invite accept <inviteId>
126
+ vcli notification inbox --filter unread
127
+ vcli notification unread-count
128
+ ```
129
+
130
+ Settings metadata:
131
+
132
+ ```bash
133
+ vcli priority list acme
134
+ vcli state list acme
135
+ vcli status list acme
136
+ vcli role list acme
137
+ ```
138
+
139
+ Platform admin:
140
+
141
+ ```bash
142
+ vcli admin branding
143
+ vcli admin signup-policy
144
+ ```
145
+
146
+ ## JSON Output
147
+
148
+ Use `--json` for automation and scripts:
149
+
150
+ ```bash
151
+ vcli --json issue list --org acme
152
+ vcli --json notification inbox --filter unread
153
+ ```
154
+
155
+ For scripts, prefer:
156
+
157
+ - `--json`
158
+ - `--profile`
159
+ - `--org`
160
+
161
+ ## Troubleshooting
162
+
163
+ `Not logged in`
164
+
165
+ - Run `vcli auth login` or `vcli auth signup`.
166
+
167
+ `app URL is required`
168
+
169
+ - Pass `--app-url <url>`, set `NEXT_PUBLIC_APP_URL`, or log in once with `--app-url` so the selected profile stores it.
170
+
171
+ `Organization slug is required`
172
+
173
+ - Pass `--org <slug>` or run `vcli org use <slug>`.
174
+
175
+ Auth errors against the wrong app
176
+
177
+ - Make sure `--app-url` points at the running Vector app origin.
178
+
179
+ Convex connection errors
180
+
181
+ - Set `--convex-url`, `NEXT_PUBLIC_CONVEX_URL`, or `CONVEX_URL`.
182
+
183
+ Validation errors when creating teams or projects
184
+
185
+ - Use short slug-like keys such as `eng`, `api`, or `mobile-platform`.
186
+
187
+ ## Help
188
+
189
+ Inspect command groups directly:
190
+
191
+ ```bash
192
+ vcli auth --help
193
+ vcli org --help
194
+ vcli issue --help
195
+ vcli notification --help
196
+ vcli admin --help
197
+ ```