@pump-inc/cli 0.0.4 → 0.0.6

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 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.4 linux-x64 node-v24.12.0
23
+ @pump-inc/cli/0.0.6 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] [-c <value>] [-k <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.4/src/commands/admin/config/set.ts)_
88
+ _See code: [src/commands/admin/config/set.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.6/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] [-k <value>]
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.4/src/commands/admin/organization/create.ts)_
125
+ _See code: [src/commands/admin/organization/create.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.6/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 [-j] [-m] [-k <value>]
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.4/src/commands/admin/organization/get.ts)_
155
+ _See code: [src/commands/admin/organization/get.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.6/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] [-k <value>]
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.4/src/commands/admin/organization/list.ts)_
186
+ _See code: [src/commands/admin/organization/list.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.6/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 [-j] [-a] [-v] [-i <value>] [-k <value>]
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.4/src/commands/admin/user/create.ts)_
221
+ _See code: [src/commands/admin/user/create.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.6/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 [-d <value>] [-s active|inactive|revoked|pending|suspended] [-k <value>]
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.4/src/commands/api-key/create.ts)_
253
+ _See code: [src/commands/api-key/create.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.6/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 [-f] [-k <value>]
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.4/src/commands/api-key/delete.ts)_
280
+ _See code: [src/commands/api-key/delete.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.6/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] [-k <value>]
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.4/src/commands/api-key/list.ts)_
308
+ _See code: [src/commands/api-key/list.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.6/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 [-n <value>] [-d <value>] [-s active|inactive|revoked|pending|suspended] [-k <value>]
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.4/src/commands/api-key/update.ts)_
341
+ _See code: [src/commands/api-key/update.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.6/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> [-t processor|cron] [-s pending|active|inactive] [--cpu <value>]
339
- [--memory <value>] [--storage <value>] [--network <value>] [-k <value>] [--json]
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.4/src/commands/app/create.ts)_
382
+ _See code: [src/commands/app/create.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.6/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> [-f] [-n <value>] [-k <value>] [--json]
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.4/src/commands/app/deploy.ts)_
410
+ _See code: [src/commands/app/deploy.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.6/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] [-v] [-k <value>]
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.4/src/commands/app/list.ts)_
435
+ _See code: [src/commands/app/list.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.6/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.4/src/commands/app/secrets.ts)_
461
+ _See code: [src/commands/app/secrets.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.6/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.4/src/commands/app/status.ts)_
485
+ _See code: [src/commands/app/status.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.6/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.4/src/commands/app/stop.ts)_
508
+ _See code: [src/commands/app/stop.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.6/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] [-h] [-k <value>]
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.4/src/commands/app/usage.ts)_
533
+ _See code: [src/commands/app/usage.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.6/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 [-v] [-k <value>]
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.4/src/commands/auth/test.ts)_
557
+ _See code: [src/commands/auth/test.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.6/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.4/src/commands/config/validate.ts)_
581
+ _See code: [src/commands/config/validate.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.6/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 [-d <value>] [-s active|inactive|archived] [-k <value>] [--json]
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.4/src/commands/project/create.ts)_
925
+ _See code: [src/commands/project/create.ts](https://github.com/pump-inc/pump-cli/blob/v0.0.6/src/commands/project/create.ts)_
905
926
  <!-- commandsstop -->
@@ -466,7 +466,12 @@ var BaseClient = class {
466
466
  const baseUrl = this.baseUrl.endsWith("/") ? this.baseUrl : `${this.baseUrl}/`;
467
467
  const requestUrl = new URL(endpoint, baseUrl);
468
468
  const response = await fetch(requestUrl.toString(), fetchOptions);
469
- const data = await response.json();
469
+ let data;
470
+ try {
471
+ data = await response.json();
472
+ } catch (_e) {
473
+ if (!response.ok && throwOnError) throw new ApiError("Request failed with non-JSON response", { error: "Non-JSON response" });
474
+ }
470
475
  if (!response.ok && throwOnError) {
471
476
  const errorData = data;
472
477
  throw new ApiError(errorData.error ?? "Request failed", errorData);
@@ -560,7 +565,7 @@ const MOUNT_POINTS = {
560
565
  org: "/api/org",
561
566
  admin: "/api/admin",
562
567
  apiKeys: "/api/api-keys",
563
- auth: "/api/auth",
568
+ auth: "/api",
564
569
  config: "/config",
565
570
  webSettings: "/web-settings",
566
571
  deployments: "/api/deployments"
@@ -725,7 +730,7 @@ const routeDefinitions = {
725
730
  }
726
731
  },
727
732
  auth: { test: {
728
- pattern: "/test",
733
+ pattern: "/test-auth",
729
734
  mount: "auth"
730
735
  } },
731
736
  deployments: {
@@ -1,5 +1,4 @@
1
1
  const require_chunk = require('./chunk-CbDLau6x.cjs');
2
- const require_api = require('./api-XWM8zKbb.cjs');
3
2
  let node_process = require("node:process");
4
3
  node_process = require_chunk.__toESM(node_process);
5
4
  let __oclif_core = require("@oclif/core");
@@ -419,19 +418,56 @@ var source_default = chalk;
419
418
  //#endregion
420
419
  //#region src/util/base-command.ts
421
420
  var BaseCommand = class extends __oclif_core.Command {
421
+ /**
422
+ * Shared flags available to all commands
423
+ */
424
+ static baseFlags = {
425
+ apikey: __oclif_core.Flags.string({
426
+ char: "k",
427
+ description: "API key to use for authentication (overrides API_KEY env variable)",
428
+ env: "API_KEY"
429
+ }),
430
+ apiUrl: __oclif_core.Flags.string({
431
+ char: "u",
432
+ description: "API URL to use for requests (overrides PUMP_API_URL env variable)",
433
+ env: "PUMP_API_URL"
434
+ })
435
+ };
422
436
  /**
423
437
  * Called before the command's run() method.
424
438
  * Override this in oclif to add common behavior.
425
439
  */
426
440
  async init() {
427
441
  await super.init();
428
- this.printApiHeader();
442
+ const { flags } = await this.parse(this.constructor);
443
+ this.printApiHeader(flags);
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;
429
465
  }
430
- printApiHeader() {
431
- 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("------------------------------------------------"));
466
+ printApiHeader(baseFlags) {
467
+ const apiUrl = this.resolveApiUrl(baseFlags);
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,7 +1,6 @@
1
1
  const require_chunk = require('../../../chunk-CbDLau6x.cjs');
2
- const require_base_command = require('../../../base-command-GfDxcqx6.cjs');
3
- const require_api = require('../../../api-XWM8zKbb.cjs');
4
- const require_api_client = require('../../../api-client-bnV0ib_r.cjs');
2
+ const require_base_command = require('../../../base-command-CQh0hr7U.cjs');
3
+ const require_api_client = require('../../../api-client-Bt30TRdD.cjs');
5
4
  let __oclif_core = require("@oclif/core");
6
5
 
7
6
  //#region src/commands/admin/config/set.ts
@@ -10,13 +9,10 @@ var AdminConfigSet = class AdminConfigSet extends require_base_command.BaseComma
10
9
  static description = "This command is used to set global configuration keys in the DB (admin only)";
11
10
  static examples = ["<%= config.bin %> <%= command.id %>"];
12
11
  static flags = {
12
+ ...require_base_command.BaseCommand.baseFlags,
13
13
  key: __oclif_core.Flags.string({
14
14
  char: "c",
15
15
  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
16
  })
21
17
  };
22
18
  async run() {
@@ -27,7 +23,7 @@ var AdminConfigSet = class AdminConfigSet extends require_base_command.BaseComma
27
23
  "pumpImageTag": "pumpImageTag"
28
24
  }[flags.key ?? "pumpImageTag"];
29
25
  const value = args.value ?? "latest";
30
- const [_response, error] = (await new require_api_client.ApiClient(require_api.getApiUrl(), flags.apikey || process.env.API_KEY).config.setGlobalKey(requestKey, value)).toTuple();
26
+ const [_response, error] = (await new require_api_client.ApiClient(this.resolveApiUrl(flags), this.resolveApiKey(flags)).config.setGlobalKey(requestKey, value)).toTuple();
31
27
  if (error) {
32
28
  this.error(`Failed to set global config key: ${error.message}`);
33
29
  return;