@pump-inc/cli 0.0.3 → 0.0.5
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 +80 -59
- package/dist/{base-command-GfDxcqx6.cjs → base-command-nehlpvAK.cjs} +39 -3
- package/dist/commands/admin/config/set.cjs +4 -7
- package/dist/commands/admin/organization/create.cjs +4 -7
- package/dist/commands/admin/organization/get.cjs +4 -7
- package/dist/commands/admin/organization/list.cjs +4 -7
- package/dist/commands/admin/user/create.cjs +4 -7
- package/dist/commands/api-key/create.cjs +4 -7
- package/dist/commands/api-key/delete.cjs +4 -7
- package/dist/commands/api-key/list.cjs +4 -7
- package/dist/commands/api-key/update.cjs +4 -7
- package/dist/commands/app/create.cjs +5 -8
- package/dist/commands/app/deploy.cjs +4 -7
- package/dist/commands/app/list.cjs +4 -7
- package/dist/commands/app/secrets.cjs +4 -7
- package/dist/commands/app/status.cjs +5 -9
- package/dist/commands/app/stop.cjs +4 -7
- package/dist/commands/app/usage.cjs +4 -7
- package/dist/commands/auth/test.cjs +6 -10
- package/dist/commands/config/validate.cjs +3 -6
- package/dist/commands/project/create.cjs +4 -7
- package/dist/util/base-command.cjs +1 -1
- package/oclif.manifest.json +335 -126
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ $ npm install -g @pump-inc/cli
|
|
|
20
20
|
$ pump-cli COMMAND
|
|
21
21
|
running command...
|
|
22
22
|
$ pump-cli (--version)
|
|
23
|
-
@pump-inc/cli/0.0.
|
|
23
|
+
@pump-inc/cli/0.0.5 linux-x64 node-v24.12.0
|
|
24
24
|
$ pump-cli --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ pump-cli COMMAND
|
|
@@ -68,14 +68,15 @@ This command is used to set global configuration keys in the DB (admin only)
|
|
|
68
68
|
|
|
69
69
|
```
|
|
70
70
|
USAGE
|
|
71
|
-
$ pump-cli admin config set [VALUE] [-
|
|
71
|
+
$ pump-cli admin config set [VALUE] [-k <value>] [-u <value>] [-c <value>]
|
|
72
72
|
|
|
73
73
|
ARGUMENTS
|
|
74
74
|
[VALUE] value to set
|
|
75
75
|
|
|
76
76
|
FLAGS
|
|
77
77
|
-c, --key=<value> key to set
|
|
78
|
-
-k, --apikey=<value> API key to use for authentication (overrides API_KEY env variable)
|
|
78
|
+
-k, --apikey=<value> [env: API_KEY] API key to use for authentication (overrides API_KEY env variable)
|
|
79
|
+
-u, --apiUrl=<value> [env: PUMP_API_URL] API URL to use for requests (overrides PUMP_API_URL env variable)
|
|
79
80
|
|
|
80
81
|
DESCRIPTION
|
|
81
82
|
This command is used to set global configuration keys in the DB (admin only)
|
|
@@ -84,7 +85,7 @@ EXAMPLES
|
|
|
84
85
|
$ pump-cli admin config set
|
|
85
86
|
```
|
|
86
87
|
|
|
87
|
-
_See code: [src/commands/admin/config/set.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.
|
|
88
|
+
_See code: [src/commands/admin/config/set.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.5/src/commands/admin/config/set.ts)_
|
|
88
89
|
|
|
89
90
|
## `pump-cli admin organization create NAME USERID`
|
|
90
91
|
|
|
@@ -92,7 +93,7 @@ Create a new organization (admin only)
|
|
|
92
93
|
|
|
93
94
|
```
|
|
94
95
|
USAGE
|
|
95
|
-
$ pump-cli admin organization create NAME USERID [-j] [-d <value>] [-D <value>] [-s]
|
|
96
|
+
$ pump-cli admin organization create NAME USERID [-k <value>] [-u <value>] [-j] [-d <value>] [-D <value>] [-s]
|
|
96
97
|
|
|
97
98
|
ARGUMENTS
|
|
98
99
|
NAME Organization name
|
|
@@ -102,8 +103,9 @@ FLAGS
|
|
|
102
103
|
-D, --domain=<value> Organization domain name
|
|
103
104
|
-d, --description=<value> Organization description
|
|
104
105
|
-j, --json Output as JSON
|
|
105
|
-
-k, --apikey=<value> API key to use for authentication (overrides API_KEY env variable)
|
|
106
|
+
-k, --apikey=<value> [env: API_KEY] API key to use for authentication (overrides API_KEY env variable)
|
|
106
107
|
-s, --skipReconcilerJob Skip creating reconciler job for this organization
|
|
108
|
+
-u, --apiUrl=<value> [env: PUMP_API_URL] API URL to use for requests (overrides PUMP_API_URL env variable)
|
|
107
109
|
|
|
108
110
|
DESCRIPTION
|
|
109
111
|
Create a new organization (admin only)
|
|
@@ -120,7 +122,7 @@ EXAMPLES
|
|
|
120
122
|
$ pump-cli admin organization create "Json Org" user_1234567890 --json
|
|
121
123
|
```
|
|
122
124
|
|
|
123
|
-
_See code: [src/commands/admin/organization/create.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.
|
|
125
|
+
_See code: [src/commands/admin/organization/create.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.5/src/commands/admin/organization/create.ts)_
|
|
124
126
|
|
|
125
127
|
## `pump-cli admin organization get ORGANIZATIONID`
|
|
126
128
|
|
|
@@ -128,15 +130,16 @@ Get organization details with owner and members (admin only)
|
|
|
128
130
|
|
|
129
131
|
```
|
|
130
132
|
USAGE
|
|
131
|
-
$ pump-cli admin organization get ORGANIZATIONID [-
|
|
133
|
+
$ pump-cli admin organization get ORGANIZATIONID [-k <value>] [-u <value>] [-j] [-m]
|
|
132
134
|
|
|
133
135
|
ARGUMENTS
|
|
134
136
|
ORGANIZATIONID Organization ID to retrieve
|
|
135
137
|
|
|
136
138
|
FLAGS
|
|
137
139
|
-j, --json Output as JSON
|
|
138
|
-
-k, --apikey=<value> API key to use for authentication (overrides API_KEY env variable)
|
|
140
|
+
-k, --apikey=<value> [env: API_KEY] API key to use for authentication (overrides API_KEY env variable)
|
|
139
141
|
-m, --membersOnly Show only members information
|
|
142
|
+
-u, --apiUrl=<value> [env: PUMP_API_URL] API URL to use for requests (overrides PUMP_API_URL env variable)
|
|
140
143
|
|
|
141
144
|
DESCRIPTION
|
|
142
145
|
Get organization details with owner and members (admin only)
|
|
@@ -149,7 +152,7 @@ EXAMPLES
|
|
|
149
152
|
$ pump-cli admin organization get org_1234567890 --members-only
|
|
150
153
|
```
|
|
151
154
|
|
|
152
|
-
_See code: [src/commands/admin/organization/get.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.
|
|
155
|
+
_See code: [src/commands/admin/organization/get.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.5/src/commands/admin/organization/get.ts)_
|
|
153
156
|
|
|
154
157
|
## `pump-cli admin organization list`
|
|
155
158
|
|
|
@@ -157,14 +160,15 @@ List all organizations (admin only)
|
|
|
157
160
|
|
|
158
161
|
```
|
|
159
162
|
USAGE
|
|
160
|
-
$ pump-cli admin organization list [-j] [-s name|created|members] [-d]
|
|
163
|
+
$ pump-cli admin organization list [-k <value>] [-u <value>] [-j] [-s name|created|members] [-d]
|
|
161
164
|
|
|
162
165
|
FLAGS
|
|
163
166
|
-d, --desc Sort in descending order
|
|
164
167
|
-j, --json Output as JSON
|
|
165
|
-
-k, --apikey=<value> API key to use for authentication (overrides API_KEY env variable)
|
|
168
|
+
-k, --apikey=<value> [env: API_KEY] API key to use for authentication (overrides API_KEY env variable)
|
|
166
169
|
-s, --sortBy=<option> [default: name] Sort by field
|
|
167
170
|
<options: name|created|members>
|
|
171
|
+
-u, --apiUrl=<value> [env: PUMP_API_URL] API URL to use for requests (overrides PUMP_API_URL env variable)
|
|
168
172
|
|
|
169
173
|
DESCRIPTION
|
|
170
174
|
List all organizations (admin only)
|
|
@@ -179,7 +183,7 @@ EXAMPLES
|
|
|
179
183
|
$ pump-cli admin organization list --sort-by=created --desc
|
|
180
184
|
```
|
|
181
185
|
|
|
182
|
-
_See code: [src/commands/admin/organization/list.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.
|
|
186
|
+
_See code: [src/commands/admin/organization/list.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.5/src/commands/admin/organization/list.ts)_
|
|
183
187
|
|
|
184
188
|
## `pump-cli admin user create NAME EMAIL`
|
|
185
189
|
|
|
@@ -187,7 +191,7 @@ Create a new user (admin only)
|
|
|
187
191
|
|
|
188
192
|
```
|
|
189
193
|
USAGE
|
|
190
|
-
$ pump-cli admin user create NAME EMAIL [-
|
|
194
|
+
$ pump-cli admin user create NAME EMAIL [-k <value>] [-u <value>] [-j] [-a] [-v] [-i <value>]
|
|
191
195
|
|
|
192
196
|
ARGUMENTS
|
|
193
197
|
NAME User's full name
|
|
@@ -197,7 +201,8 @@ FLAGS
|
|
|
197
201
|
-a, --admin Make the user an admin
|
|
198
202
|
-i, --image=<value> User's profile image URL
|
|
199
203
|
-j, --json Output as JSON
|
|
200
|
-
-k, --apikey=<value> API key to use for authentication (overrides API_KEY env variable)
|
|
204
|
+
-k, --apikey=<value> [env: API_KEY] API key to use for authentication (overrides API_KEY env variable)
|
|
205
|
+
-u, --apiUrl=<value> [env: PUMP_API_URL] API URL to use for requests (overrides PUMP_API_URL env variable)
|
|
201
206
|
-v, --verified Mark the user's email as verified
|
|
202
207
|
|
|
203
208
|
DESCRIPTION
|
|
@@ -213,7 +218,7 @@ EXAMPLES
|
|
|
213
218
|
$ pump-cli admin user create "Json User" json@example.com --json
|
|
214
219
|
```
|
|
215
220
|
|
|
216
|
-
_See code: [src/commands/admin/user/create.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.
|
|
221
|
+
_See code: [src/commands/admin/user/create.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.5/src/commands/admin/user/create.ts)_
|
|
217
222
|
|
|
218
223
|
## `pump-cli api-key create NAME`
|
|
219
224
|
|
|
@@ -221,16 +226,18 @@ Create a new API key for your organization
|
|
|
221
226
|
|
|
222
227
|
```
|
|
223
228
|
USAGE
|
|
224
|
-
$ pump-cli api-key create NAME [-
|
|
229
|
+
$ pump-cli api-key create NAME [-k <value>] [-u <value>] [-d <value>] [-s
|
|
230
|
+
active|inactive|revoked|pending|suspended]
|
|
225
231
|
|
|
226
232
|
ARGUMENTS
|
|
227
233
|
NAME API key name
|
|
228
234
|
|
|
229
235
|
FLAGS
|
|
230
236
|
-d, --description=<value> API key description
|
|
231
|
-
-k, --apikey=<value> API key to use for authentication (overrides API_KEY env variable)
|
|
237
|
+
-k, --apikey=<value> [env: API_KEY] API key to use for authentication (overrides API_KEY env variable)
|
|
232
238
|
-s, --status=<option> [default: active] API key status
|
|
233
239
|
<options: active|inactive|revoked|pending|suspended>
|
|
240
|
+
-u, --apiUrl=<value> [env: PUMP_API_URL] API URL to use for requests (overrides PUMP_API_URL env variable)
|
|
234
241
|
|
|
235
242
|
DESCRIPTION
|
|
236
243
|
Create a new API key for your organization
|
|
@@ -243,7 +250,7 @@ EXAMPLES
|
|
|
243
250
|
$ pump-cli api-key create "Test Key" --description="Temporary test key" --status=pending
|
|
244
251
|
```
|
|
245
252
|
|
|
246
|
-
_See code: [src/commands/api-key/create.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.
|
|
253
|
+
_See code: [src/commands/api-key/create.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.5/src/commands/api-key/create.ts)_
|
|
247
254
|
|
|
248
255
|
## `pump-cli api-key delete ID`
|
|
249
256
|
|
|
@@ -251,14 +258,15 @@ Delete an API key
|
|
|
251
258
|
|
|
252
259
|
```
|
|
253
260
|
USAGE
|
|
254
|
-
$ pump-cli api-key delete ID [-
|
|
261
|
+
$ pump-cli api-key delete ID [-k <value>] [-u <value>] [-f]
|
|
255
262
|
|
|
256
263
|
ARGUMENTS
|
|
257
264
|
ID API key ID to delete
|
|
258
265
|
|
|
259
266
|
FLAGS
|
|
260
267
|
-f, --force Skip confirmation prompt
|
|
261
|
-
-k, --apikey=<value> API key to use for authentication (overrides API_KEY env variable)
|
|
268
|
+
-k, --apikey=<value> [env: API_KEY] API key to use for authentication (overrides API_KEY env variable)
|
|
269
|
+
-u, --apiUrl=<value> [env: PUMP_API_URL] API URL to use for requests (overrides PUMP_API_URL env variable)
|
|
262
270
|
|
|
263
271
|
DESCRIPTION
|
|
264
272
|
Delete an API key
|
|
@@ -269,7 +277,7 @@ EXAMPLES
|
|
|
269
277
|
$ pump-cli api-key delete abc-123 --force
|
|
270
278
|
```
|
|
271
279
|
|
|
272
|
-
_See code: [src/commands/api-key/delete.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.
|
|
280
|
+
_See code: [src/commands/api-key/delete.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.5/src/commands/api-key/delete.ts)_
|
|
273
281
|
|
|
274
282
|
## `pump-cli api-key list`
|
|
275
283
|
|
|
@@ -277,13 +285,14 @@ List all API keys for your organization
|
|
|
277
285
|
|
|
278
286
|
```
|
|
279
287
|
USAGE
|
|
280
|
-
$ pump-cli api-key list [-j] [-s active|inactive|revoked|pending|suspended]
|
|
288
|
+
$ pump-cli api-key list [-k <value>] [-u <value>] [-j] [-s active|inactive|revoked|pending|suspended]
|
|
281
289
|
|
|
282
290
|
FLAGS
|
|
283
291
|
-j, --json Output as JSON
|
|
284
|
-
-k, --apikey=<value> API key to use for authentication (overrides API_KEY env variable)
|
|
292
|
+
-k, --apikey=<value> [env: API_KEY] API key to use for authentication (overrides API_KEY env variable)
|
|
285
293
|
-s, --status=<option> Filter by status
|
|
286
294
|
<options: active|inactive|revoked|pending|suspended>
|
|
295
|
+
-u, --apiUrl=<value> [env: PUMP_API_URL] API URL to use for requests (overrides PUMP_API_URL env variable)
|
|
287
296
|
|
|
288
297
|
DESCRIPTION
|
|
289
298
|
List all API keys for your organization
|
|
@@ -296,7 +305,7 @@ EXAMPLES
|
|
|
296
305
|
$ pump-cli api-key list --status=active
|
|
297
306
|
```
|
|
298
307
|
|
|
299
|
-
_See code: [src/commands/api-key/list.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.
|
|
308
|
+
_See code: [src/commands/api-key/list.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.5/src/commands/api-key/list.ts)_
|
|
300
309
|
|
|
301
310
|
## `pump-cli api-key update ID`
|
|
302
311
|
|
|
@@ -304,17 +313,19 @@ Update an existing API key
|
|
|
304
313
|
|
|
305
314
|
```
|
|
306
315
|
USAGE
|
|
307
|
-
$ pump-cli api-key update ID [-
|
|
316
|
+
$ pump-cli api-key update ID [-k <value>] [-u <value>] [-n <value>] [-d <value>] [-s
|
|
317
|
+
active|inactive|revoked|pending|suspended]
|
|
308
318
|
|
|
309
319
|
ARGUMENTS
|
|
310
320
|
ID API key ID to update
|
|
311
321
|
|
|
312
322
|
FLAGS
|
|
313
323
|
-d, --description=<value> New API key description
|
|
314
|
-
-k, --apikey=<value> API key to use for authentication (overrides API_KEY env variable)
|
|
324
|
+
-k, --apikey=<value> [env: API_KEY] API key to use for authentication (overrides API_KEY env variable)
|
|
315
325
|
-n, --name=<value> New API key name
|
|
316
326
|
-s, --status=<option> New API key status
|
|
317
327
|
<options: active|inactive|revoked|pending|suspended>
|
|
328
|
+
-u, --apiUrl=<value> [env: PUMP_API_URL] API URL to use for requests (overrides PUMP_API_URL env variable)
|
|
318
329
|
|
|
319
330
|
DESCRIPTION
|
|
320
331
|
Update an existing API key
|
|
@@ -327,7 +338,7 @@ EXAMPLES
|
|
|
327
338
|
$ pump-cli api-key update abc-123 --status=revoked
|
|
328
339
|
```
|
|
329
340
|
|
|
330
|
-
_See code: [src/commands/api-key/update.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.
|
|
341
|
+
_See code: [src/commands/api-key/update.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.5/src/commands/api-key/update.ts)_
|
|
331
342
|
|
|
332
343
|
## `pump-cli app create NAME`
|
|
333
344
|
|
|
@@ -335,19 +346,20 @@ Create a new application
|
|
|
335
346
|
|
|
336
347
|
```
|
|
337
348
|
USAGE
|
|
338
|
-
$ pump-cli app create NAME -p <value> [-
|
|
339
|
-
[--
|
|
349
|
+
$ pump-cli app create NAME -p <value> [-k <value>] [-u <value>] [-t processor|cron] [-s
|
|
350
|
+
pending|active|inactive] [--cpu <value>] [--memory <value>] [--storage <value>] [--network <value>] [--json]
|
|
340
351
|
|
|
341
352
|
ARGUMENTS
|
|
342
353
|
NAME Application name
|
|
343
354
|
|
|
344
355
|
FLAGS
|
|
345
|
-
-k, --apikey=<value> API key to use for authentication (overrides API_KEY env variable)
|
|
356
|
+
-k, --apikey=<value> [env: API_KEY] API key to use for authentication (overrides API_KEY env variable)
|
|
346
357
|
-p, --project-id=<value> (required) Project ID where the application will be created
|
|
347
358
|
-s, --status=<option> [default: pending] Application status
|
|
348
359
|
<options: pending|active|inactive>
|
|
349
360
|
-t, --type=<option> [default: processor] Application type
|
|
350
361
|
<options: processor|cron>
|
|
362
|
+
-u, --apiUrl=<value> [env: PUMP_API_URL] API URL to use for requests (overrides PUMP_API_URL env variable)
|
|
351
363
|
--cpu=<value> CPU resources (cores)
|
|
352
364
|
--json Output result as JSON
|
|
353
365
|
--memory=<value> Memory resources (MB)
|
|
@@ -367,7 +379,7 @@ EXAMPLES
|
|
|
367
379
|
$ pump-cli app create "My App" --project-id=proj-123 --type=processor --json
|
|
368
380
|
```
|
|
369
381
|
|
|
370
|
-
_See code: [src/commands/app/create.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.
|
|
382
|
+
_See code: [src/commands/app/create.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.5/src/commands/app/create.ts)_
|
|
371
383
|
|
|
372
384
|
## `pump-cli app deploy [FILE]`
|
|
373
385
|
|
|
@@ -375,7 +387,7 @@ Deploy an application by providing a config file
|
|
|
375
387
|
|
|
376
388
|
```
|
|
377
389
|
USAGE
|
|
378
|
-
$ pump-cli app deploy [FILE] -a <value> [-
|
|
390
|
+
$ pump-cli app deploy [FILE] -a <value> [-k <value>] [-u <value>] [-f] [-n <value>] [--json]
|
|
379
391
|
|
|
380
392
|
ARGUMENTS
|
|
381
393
|
[FILE] file to read
|
|
@@ -383,8 +395,9 @@ ARGUMENTS
|
|
|
383
395
|
FLAGS
|
|
384
396
|
-a, --appId=<value> (required) [env: PUMPINC_APP_ID] application id to deploy
|
|
385
397
|
-f, --force
|
|
386
|
-
-k, --apikey=<value> API key to use for authentication (overrides API_KEY env variable)
|
|
398
|
+
-k, --apikey=<value> [env: API_KEY] API key to use for authentication (overrides API_KEY env variable)
|
|
387
399
|
-n, --name=<value> Deployment name
|
|
400
|
+
-u, --apiUrl=<value> [env: PUMP_API_URL] API URL to use for requests (overrides PUMP_API_URL env variable)
|
|
388
401
|
--json Output result as JSON
|
|
389
402
|
|
|
390
403
|
DESCRIPTION
|
|
@@ -394,7 +407,7 @@ EXAMPLES
|
|
|
394
407
|
$ pump-cli app deploy config-file.yaml
|
|
395
408
|
```
|
|
396
409
|
|
|
397
|
-
_See code: [src/commands/app/deploy.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.
|
|
410
|
+
_See code: [src/commands/app/deploy.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.5/src/commands/app/deploy.ts)_
|
|
398
411
|
|
|
399
412
|
## `pump-cli app list [FILE]`
|
|
400
413
|
|
|
@@ -402,13 +415,14 @@ describe the command here
|
|
|
402
415
|
|
|
403
416
|
```
|
|
404
417
|
USAGE
|
|
405
|
-
$ pump-cli app list [FILE] [-
|
|
418
|
+
$ pump-cli app list [FILE] [-k <value>] [-u <value>] [-v]
|
|
406
419
|
|
|
407
420
|
ARGUMENTS
|
|
408
421
|
[FILE] file to read
|
|
409
422
|
|
|
410
423
|
FLAGS
|
|
411
|
-
-k, --apikey=<value> API key to use for authentication (overrides API_KEY env variable)
|
|
424
|
+
-k, --apikey=<value> [env: API_KEY] API key to use for authentication (overrides API_KEY env variable)
|
|
425
|
+
-u, --apiUrl=<value> [env: PUMP_API_URL] API URL to use for requests (overrides PUMP_API_URL env variable)
|
|
412
426
|
-v, --verbose Show detailed application info
|
|
413
427
|
|
|
414
428
|
DESCRIPTION
|
|
@@ -418,7 +432,7 @@ EXAMPLES
|
|
|
418
432
|
$ pump-cli app list
|
|
419
433
|
```
|
|
420
434
|
|
|
421
|
-
_See code: [src/commands/app/list.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.
|
|
435
|
+
_See code: [src/commands/app/list.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.5/src/commands/app/list.ts)_
|
|
422
436
|
|
|
423
437
|
## `pump-cli app secrets APPLICATIONID`
|
|
424
438
|
|
|
@@ -426,13 +440,14 @@ List all secrets for an application
|
|
|
426
440
|
|
|
427
441
|
```
|
|
428
442
|
USAGE
|
|
429
|
-
$ pump-cli app secrets APPLICATIONID [-k <value>]
|
|
443
|
+
$ pump-cli app secrets APPLICATIONID [-k <value>] [-u <value>]
|
|
430
444
|
|
|
431
445
|
ARGUMENTS
|
|
432
446
|
APPLICATIONID Application ID to list secrets for
|
|
433
447
|
|
|
434
448
|
FLAGS
|
|
435
|
-
-k, --apikey=<value> API key to use for authentication (overrides API_KEY env variable)
|
|
449
|
+
-k, --apikey=<value> [env: API_KEY] API key to use for authentication (overrides API_KEY env variable)
|
|
450
|
+
-u, --apiUrl=<value> [env: PUMP_API_URL] API URL to use for requests (overrides PUMP_API_URL env variable)
|
|
436
451
|
|
|
437
452
|
DESCRIPTION
|
|
438
453
|
List all secrets for an application
|
|
@@ -443,7 +458,7 @@ EXAMPLES
|
|
|
443
458
|
$ pump-cli app secrets app_12345 -k your-api-key
|
|
444
459
|
```
|
|
445
460
|
|
|
446
|
-
_See code: [src/commands/app/secrets.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.
|
|
461
|
+
_See code: [src/commands/app/secrets.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.5/src/commands/app/secrets.ts)_
|
|
447
462
|
|
|
448
463
|
## `pump-cli app status [APPLICATIONID]`
|
|
449
464
|
|
|
@@ -451,13 +466,14 @@ Get the status of a specific application by its ID
|
|
|
451
466
|
|
|
452
467
|
```
|
|
453
468
|
USAGE
|
|
454
|
-
$ pump-cli app status [APPLICATIONID] [-k <value>]
|
|
469
|
+
$ pump-cli app status [APPLICATIONID] [-k <value>] [-u <value>]
|
|
455
470
|
|
|
456
471
|
ARGUMENTS
|
|
457
472
|
[APPLICATIONID] Application ID to get status for eg. app_1234567890abcdef
|
|
458
473
|
|
|
459
474
|
FLAGS
|
|
460
|
-
-k, --apikey=<value> API key to use for authentication (overrides API_KEY env variable)
|
|
475
|
+
-k, --apikey=<value> [env: API_KEY] API key to use for authentication (overrides API_KEY env variable)
|
|
476
|
+
-u, --apiUrl=<value> [env: PUMP_API_URL] API URL to use for requests (overrides PUMP_API_URL env variable)
|
|
461
477
|
|
|
462
478
|
DESCRIPTION
|
|
463
479
|
Get the status of a specific application by its ID
|
|
@@ -466,7 +482,7 @@ EXAMPLES
|
|
|
466
482
|
$ pump-cli app status
|
|
467
483
|
```
|
|
468
484
|
|
|
469
|
-
_See code: [src/commands/app/status.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.
|
|
485
|
+
_See code: [src/commands/app/status.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.5/src/commands/app/status.ts)_
|
|
470
486
|
|
|
471
487
|
## `pump-cli app stop`
|
|
472
488
|
|
|
@@ -474,11 +490,12 @@ Stop the running deployment for an application
|
|
|
474
490
|
|
|
475
491
|
```
|
|
476
492
|
USAGE
|
|
477
|
-
$ pump-cli app stop -a <value> [-k <value>] [--json]
|
|
493
|
+
$ pump-cli app stop -a <value> [-k <value>] [-u <value>] [--json]
|
|
478
494
|
|
|
479
495
|
FLAGS
|
|
480
496
|
-a, --appId=<value> (required) [env: PUMPINC_APP_ID] application id to stop deployment for
|
|
481
|
-
-k, --apikey=<value> API key to use for authentication (overrides API_KEY env variable)
|
|
497
|
+
-k, --apikey=<value> [env: API_KEY] API key to use for authentication (overrides API_KEY env variable)
|
|
498
|
+
-u, --apiUrl=<value> [env: PUMP_API_URL] API URL to use for requests (overrides PUMP_API_URL env variable)
|
|
482
499
|
--json Output result as JSON
|
|
483
500
|
|
|
484
501
|
DESCRIPTION
|
|
@@ -488,7 +505,7 @@ EXAMPLES
|
|
|
488
505
|
$ pump-cli app stop --appId <application-id>
|
|
489
506
|
```
|
|
490
507
|
|
|
491
|
-
_See code: [src/commands/app/stop.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.
|
|
508
|
+
_See code: [src/commands/app/stop.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.5/src/commands/app/stop.ts)_
|
|
492
509
|
|
|
493
510
|
## `pump-cli app usage [APPLICATIONID]`
|
|
494
511
|
|
|
@@ -496,14 +513,15 @@ get usage information for an application including execution units and CPU/memor
|
|
|
496
513
|
|
|
497
514
|
```
|
|
498
515
|
USAGE
|
|
499
|
-
$ pump-cli app usage [APPLICATIONID] [-
|
|
516
|
+
$ pump-cli app usage [APPLICATIONID] [-k <value>] [-u <value>] [-h]
|
|
500
517
|
|
|
501
518
|
ARGUMENTS
|
|
502
519
|
[APPLICATIONID] application ID to get usage for
|
|
503
520
|
|
|
504
521
|
FLAGS
|
|
505
522
|
-h, --hide hide deployment details
|
|
506
|
-
-k, --apikey=<value> API key to use for authentication (overrides API_KEY env variable)
|
|
523
|
+
-k, --apikey=<value> [env: API_KEY] API key to use for authentication (overrides API_KEY env variable)
|
|
524
|
+
-u, --apiUrl=<value> [env: PUMP_API_URL] API URL to use for requests (overrides PUMP_API_URL env variable)
|
|
507
525
|
|
|
508
526
|
DESCRIPTION
|
|
509
527
|
get usage information for an application including execution units and CPU/memory usage
|
|
@@ -512,7 +530,7 @@ EXAMPLES
|
|
|
512
530
|
$ pump-cli app usage app_aaaabbbbccccddddeeee
|
|
513
531
|
```
|
|
514
532
|
|
|
515
|
-
_See code: [src/commands/app/usage.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.
|
|
533
|
+
_See code: [src/commands/app/usage.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.5/src/commands/app/usage.ts)_
|
|
516
534
|
|
|
517
535
|
## `pump-cli auth test`
|
|
518
536
|
|
|
@@ -520,10 +538,11 @@ Test API authentication with the configured API key
|
|
|
520
538
|
|
|
521
539
|
```
|
|
522
540
|
USAGE
|
|
523
|
-
$ pump-cli auth test [-
|
|
541
|
+
$ pump-cli auth test [-k <value>] [-u <value>] [-v]
|
|
524
542
|
|
|
525
543
|
FLAGS
|
|
526
|
-
-k, --apikey=<value> API key to use for authentication (overrides API_KEY env variable)
|
|
544
|
+
-k, --apikey=<value> [env: API_KEY] API key to use for authentication (overrides API_KEY env variable)
|
|
545
|
+
-u, --apiUrl=<value> [env: PUMP_API_URL] API URL to use for requests (overrides PUMP_API_URL env variable)
|
|
527
546
|
-v, --verbose Show detailed authentication information
|
|
528
547
|
|
|
529
548
|
DESCRIPTION
|
|
@@ -535,7 +554,7 @@ EXAMPLES
|
|
|
535
554
|
$ pump-cli auth test --verbose
|
|
536
555
|
```
|
|
537
556
|
|
|
538
|
-
_See code: [src/commands/auth/test.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.
|
|
557
|
+
_See code: [src/commands/auth/test.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.5/src/commands/auth/test.ts)_
|
|
539
558
|
|
|
540
559
|
## `pump-cli config validate [FILE]`
|
|
541
560
|
|
|
@@ -543,13 +562,14 @@ validate a config file
|
|
|
543
562
|
|
|
544
563
|
```
|
|
545
564
|
USAGE
|
|
546
|
-
$ pump-cli config validate [FILE] [-k <value>]
|
|
565
|
+
$ pump-cli config validate [FILE] [-k <value>] [-u <value>]
|
|
547
566
|
|
|
548
567
|
ARGUMENTS
|
|
549
568
|
[FILE] file to read
|
|
550
569
|
|
|
551
570
|
FLAGS
|
|
552
|
-
-k, --apikey=<value> API key to use for authentication (overrides API_KEY env variable)
|
|
571
|
+
-k, --apikey=<value> [env: API_KEY] API key to use for authentication (overrides API_KEY env variable)
|
|
572
|
+
-u, --apiUrl=<value> [env: PUMP_API_URL] API URL to use for requests (overrides PUMP_API_URL env variable)
|
|
553
573
|
|
|
554
574
|
DESCRIPTION
|
|
555
575
|
validate a config file
|
|
@@ -558,7 +578,7 @@ EXAMPLES
|
|
|
558
578
|
$ pump-cli config validate <file>
|
|
559
579
|
```
|
|
560
580
|
|
|
561
|
-
_See code: [src/commands/config/validate.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.
|
|
581
|
+
_See code: [src/commands/config/validate.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.5/src/commands/config/validate.ts)_
|
|
562
582
|
|
|
563
583
|
## `pump-cli help [COMMAND]`
|
|
564
584
|
|
|
@@ -876,16 +896,17 @@ Create a new project in your organization
|
|
|
876
896
|
|
|
877
897
|
```
|
|
878
898
|
USAGE
|
|
879
|
-
$ pump-cli project create NAME [-
|
|
899
|
+
$ pump-cli project create NAME [-k <value>] [-u <value>] [-d <value>] [-s active|inactive|archived] [--json]
|
|
880
900
|
|
|
881
901
|
ARGUMENTS
|
|
882
902
|
NAME Project name
|
|
883
903
|
|
|
884
904
|
FLAGS
|
|
885
905
|
-d, --description=<value> Project description
|
|
886
|
-
-k, --apikey=<value> API key to use for authentication (overrides API_KEY env variable)
|
|
906
|
+
-k, --apikey=<value> [env: API_KEY] API key to use for authentication (overrides API_KEY env variable)
|
|
887
907
|
-s, --status=<option> [default: active] Project status
|
|
888
908
|
<options: active|inactive|archived>
|
|
909
|
+
-u, --apiUrl=<value> [env: PUMP_API_URL] API URL to use for requests (overrides PUMP_API_URL env variable)
|
|
889
910
|
--json Output result as JSON
|
|
890
911
|
|
|
891
912
|
DESCRIPTION
|
|
@@ -901,5 +922,5 @@ EXAMPLES
|
|
|
901
922
|
$ pump-cli project create "My Project" --json
|
|
902
923
|
```
|
|
903
924
|
|
|
904
|
-
_See code: [src/commands/project/create.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.
|
|
925
|
+
_See code: [src/commands/project/create.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.5/src/commands/project/create.ts)_
|
|
905
926
|
<!-- commandsstop -->
|
|
@@ -419,6 +419,21 @@ var source_default = chalk;
|
|
|
419
419
|
//#endregion
|
|
420
420
|
//#region src/util/base-command.ts
|
|
421
421
|
var BaseCommand = class extends __oclif_core.Command {
|
|
422
|
+
/**
|
|
423
|
+
* Shared flags available to all commands
|
|
424
|
+
*/
|
|
425
|
+
static baseFlags = {
|
|
426
|
+
apikey: __oclif_core.Flags.string({
|
|
427
|
+
char: "k",
|
|
428
|
+
description: "API key to use for authentication (overrides API_KEY env variable)",
|
|
429
|
+
env: "API_KEY"
|
|
430
|
+
}),
|
|
431
|
+
apiUrl: __oclif_core.Flags.string({
|
|
432
|
+
char: "u",
|
|
433
|
+
description: "API URL to use for requests (overrides PUMP_API_URL env variable)",
|
|
434
|
+
env: "PUMP_API_URL"
|
|
435
|
+
})
|
|
436
|
+
};
|
|
422
437
|
/**
|
|
423
438
|
* Called before the command's run() method.
|
|
424
439
|
* Override this in oclif to add common behavior.
|
|
@@ -427,11 +442,32 @@ var BaseCommand = class extends __oclif_core.Command {
|
|
|
427
442
|
await super.init();
|
|
428
443
|
this.printApiHeader();
|
|
429
444
|
}
|
|
445
|
+
/**
|
|
446
|
+
* Resolve the API key from flags (with env fallback handled by oclif)
|
|
447
|
+
* Returns the API key or throws an error if not configured
|
|
448
|
+
*/
|
|
449
|
+
resolveApiKey(flags) {
|
|
450
|
+
if (!flags.apikey) this.error(source_default.red("❌ API_KEY environment variable is not set. Please configure your API key."));
|
|
451
|
+
return flags.apikey;
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* Resolve the API URL from flags (with env fallback handled by oclif)
|
|
455
|
+
* Returns the API URL with validation
|
|
456
|
+
*/
|
|
457
|
+
resolveApiUrl(flags) {
|
|
458
|
+
const apiUrl = flags.apiUrl || "http://localhost:8000";
|
|
459
|
+
try {
|
|
460
|
+
new URL(apiUrl);
|
|
461
|
+
} catch (error) {
|
|
462
|
+
if (error instanceof TypeError) this.error(source_default.red(`❌ Invalid API URL format: ${apiUrl}. Please provide a valid URL.`));
|
|
463
|
+
}
|
|
464
|
+
return apiUrl;
|
|
465
|
+
}
|
|
430
466
|
printApiHeader() {
|
|
431
467
|
const apiUrl = require_api.getApiUrl();
|
|
432
|
-
this.log(source_default.greenBright("
|
|
433
|
-
this.log(source_default.yellowBright(` [API Endpoint: ${apiUrl}]
|
|
434
|
-
this.log(source_default.greenBright("
|
|
468
|
+
this.log(source_default.greenBright("----------------------------------------------------------------------"));
|
|
469
|
+
this.log(source_default.yellowBright(` [API Endpoint: ${apiUrl}] [use -u to override] `));
|
|
470
|
+
this.log(source_default.greenBright("----------------------------------------------------------------------"));
|
|
435
471
|
this.log("");
|
|
436
472
|
}
|
|
437
473
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('../../../chunk-CbDLau6x.cjs');
|
|
2
|
-
const require_base_command = require('../../../base-command-
|
|
3
|
-
|
|
2
|
+
const require_base_command = require('../../../base-command-nehlpvAK.cjs');
|
|
3
|
+
require('../../../api-XWM8zKbb.cjs');
|
|
4
4
|
const require_api_client = require('../../../api-client-bnV0ib_r.cjs');
|
|
5
5
|
let __oclif_core = require("@oclif/core");
|
|
6
6
|
|
|
@@ -10,13 +10,10 @@ var AdminConfigSet = class AdminConfigSet extends require_base_command.BaseComma
|
|
|
10
10
|
static description = "This command is used to set global configuration keys in the DB (admin only)";
|
|
11
11
|
static examples = ["<%= config.bin %> <%= command.id %>"];
|
|
12
12
|
static flags = {
|
|
13
|
+
...require_base_command.BaseCommand.baseFlags,
|
|
13
14
|
key: __oclif_core.Flags.string({
|
|
14
15
|
char: "c",
|
|
15
16
|
description: "key to set"
|
|
16
|
-
}),
|
|
17
|
-
apikey: __oclif_core.Flags.string({
|
|
18
|
-
char: "k",
|
|
19
|
-
description: "API key to use for authentication (overrides API_KEY env variable)"
|
|
20
17
|
})
|
|
21
18
|
};
|
|
22
19
|
async run() {
|
|
@@ -27,7 +24,7 @@ var AdminConfigSet = class AdminConfigSet extends require_base_command.BaseComma
|
|
|
27
24
|
"pumpImageTag": "pumpImageTag"
|
|
28
25
|
}[flags.key ?? "pumpImageTag"];
|
|
29
26
|
const value = args.value ?? "latest";
|
|
30
|
-
const [_response, error] = (await new require_api_client.ApiClient(
|
|
27
|
+
const [_response, error] = (await new require_api_client.ApiClient(this.resolveApiUrl(flags), this.resolveApiKey(flags)).config.setGlobalKey(requestKey, value)).toTuple();
|
|
31
28
|
if (error) {
|
|
32
29
|
this.error(`Failed to set global config key: ${error.message}`);
|
|
33
30
|
return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('../../../chunk-CbDLau6x.cjs');
|
|
2
|
-
const require_base_command = require('../../../base-command-
|
|
3
|
-
|
|
2
|
+
const require_base_command = require('../../../base-command-nehlpvAK.cjs');
|
|
3
|
+
require('../../../api-XWM8zKbb.cjs');
|
|
4
4
|
const require_api_client = require('../../../api-client-bnV0ib_r.cjs');
|
|
5
5
|
let __oclif_core = require("@oclif/core");
|
|
6
6
|
|
|
@@ -25,6 +25,7 @@ var AdminOrganizationCreate = class AdminOrganizationCreate extends require_base
|
|
|
25
25
|
"<%= config.bin %> <%= command.id %> \"Json Org\" user_1234567890 --json"
|
|
26
26
|
];
|
|
27
27
|
static flags = {
|
|
28
|
+
...require_base_command.BaseCommand.baseFlags,
|
|
28
29
|
json: __oclif_core.Flags.boolean({
|
|
29
30
|
char: "j",
|
|
30
31
|
description: "Output as JSON",
|
|
@@ -42,15 +43,11 @@ var AdminOrganizationCreate = class AdminOrganizationCreate extends require_base
|
|
|
42
43
|
char: "s",
|
|
43
44
|
description: "Skip creating reconciler job for this organization",
|
|
44
45
|
default: false
|
|
45
|
-
}),
|
|
46
|
-
apikey: __oclif_core.Flags.string({
|
|
47
|
-
char: "k",
|
|
48
|
-
description: "API key to use for authentication (overrides API_KEY env variable)"
|
|
49
46
|
})
|
|
50
47
|
};
|
|
51
48
|
async run() {
|
|
52
49
|
const { args, flags } = await this.parse(AdminOrganizationCreate);
|
|
53
|
-
const apiClient = new require_api_client.ApiClient(
|
|
50
|
+
const apiClient = new require_api_client.ApiClient(this.resolveApiUrl(flags), this.resolveApiKey(flags));
|
|
54
51
|
const organizationData = {
|
|
55
52
|
name: args.name,
|
|
56
53
|
userId: args.userId,
|