@quonfig/cli 0.0.57 → 0.0.59

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
@@ -17,7 +17,7 @@ $ npm install -g @quonfig/cli
17
17
  $ qfg COMMAND
18
18
  running command...
19
19
  $ qfg (--version)
20
- @quonfig/cli/0.0.57 linux-x64 node-v24.4.1
20
+ @quonfig/cli/0.0.59 linux-x64 node-v24.4.1
21
21
  $ qfg --help [COMMAND]
22
22
  USAGE
23
23
  $ qfg COMMAND
@@ -201,7 +201,7 @@ EXAMPLES
201
201
  $ qfg activity restore my.flag --yes
202
202
  ```
203
203
 
204
- _See code: [src/commands/activity.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/activity.ts)_
204
+ _See code: [src/commands/activity.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/activity.ts)_
205
205
 
206
206
  ## `qfg activity deleted`
207
207
 
@@ -230,7 +230,7 @@ EXAMPLES
230
230
  $ qfg activity deleted --json
231
231
  ```
232
232
 
233
- _See code: [src/commands/activity/deleted.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/activity/deleted.ts)_
233
+ _See code: [src/commands/activity/deleted.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/activity/deleted.ts)_
234
234
 
235
235
  ## `qfg activity feed`
236
236
 
@@ -265,7 +265,7 @@ EXAMPLES
265
265
  $ qfg activity feed --json
266
266
  ```
267
267
 
268
- _See code: [src/commands/activity/feed.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/activity/feed.ts)_
268
+ _See code: [src/commands/activity/feed.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/activity/feed.ts)_
269
269
 
270
270
  ## `qfg activity history [NAME]`
271
271
 
@@ -299,7 +299,7 @@ EXAMPLES
299
299
  $ qfg activity history request.timeout --json
300
300
  ```
301
301
 
302
- _See code: [src/commands/activity/history.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/activity/history.ts)_
302
+ _See code: [src/commands/activity/history.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/activity/history.ts)_
303
303
 
304
304
  ## `qfg activity restore [NAME]`
305
305
 
@@ -338,7 +338,7 @@ EXAMPLES
338
338
  $ qfg activity restore request.timeout --type config --yes
339
339
  ```
340
340
 
341
- _See code: [src/commands/activity/restore.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/activity/restore.ts)_
341
+ _See code: [src/commands/activity/restore.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/activity/restore.ts)_
342
342
 
343
343
  ## `qfg audit-log [NAME]`
344
344
 
@@ -366,7 +366,7 @@ EXAMPLES
366
366
  $ qfg audit-log my.flag
367
367
  ```
368
368
 
369
- _See code: [src/commands/audit-log.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/audit-log.ts)_
369
+ _See code: [src/commands/audit-log.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/audit-log.ts)_
370
370
 
371
371
  ## `qfg cleanup`
372
372
 
@@ -407,7 +407,7 @@ EXAMPLES
407
407
  $ qfg cleanup status my.flag.key
408
408
  ```
409
409
 
410
- _See code: [src/commands/cleanup.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/cleanup.ts)_
410
+ _See code: [src/commands/cleanup.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/cleanup.ts)_
411
411
 
412
412
  ## `qfg cleanup list`
413
413
 
@@ -453,7 +453,7 @@ EXAMPLES
453
453
  $ qfg cleanup list --json
454
454
  ```
455
455
 
456
- _See code: [src/commands/cleanup/list.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/cleanup/list.ts)_
456
+ _See code: [src/commands/cleanup/list.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/cleanup/list.ts)_
457
457
 
458
458
  ## `qfg cleanup remove [NAME]`
459
459
 
@@ -498,7 +498,7 @@ EXAMPLES
498
498
  $ qfg cleanup remove my.flag.key --json
499
499
  ```
500
500
 
501
- _See code: [src/commands/cleanup/remove.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/cleanup/remove.ts)_
501
+ _See code: [src/commands/cleanup/remove.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/cleanup/remove.ts)_
502
502
 
503
503
  ## `qfg cleanup status [NAME]`
504
504
 
@@ -538,7 +538,7 @@ EXAMPLES
538
538
  $ qfg cleanup status my.flag.key --json
539
539
  ```
540
540
 
541
- _See code: [src/commands/cleanup/status.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/cleanup/status.ts)_
541
+ _See code: [src/commands/cleanup/status.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/cleanup/status.ts)_
542
542
 
543
543
  ## `qfg cleanup verify [NAME]`
544
544
 
@@ -584,7 +584,7 @@ EXAMPLES
584
584
  $ qfg cleanup verify my.flag.key && qfg delete my.flag.key
585
585
  ```
586
586
 
587
- _See code: [src/commands/cleanup/verify.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/cleanup/verify.ts)_
587
+ _See code: [src/commands/cleanup/verify.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/cleanup/verify.ts)_
588
588
 
589
589
  ## `qfg config-schema`
590
590
 
@@ -613,7 +613,7 @@ EXAMPLES
613
613
  $ qfg config-schema --json-schema # full JSON Schema document (copy into your editor)
614
614
  ```
615
615
 
616
- _See code: [src/commands/config-schema.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/config-schema.ts)_
616
+ _See code: [src/commands/config-schema.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/config-schema.ts)_
617
617
 
618
618
  ## `qfg create NAME`
619
619
 
@@ -700,7 +700,7 @@ EXAMPLES
700
700
  $ qfg set-rollout my.new.flag --environment production --true-percent 20
701
701
  ```
702
702
 
703
- _See code: [src/commands/create.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/create.ts)_
703
+ _See code: [src/commands/create.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/create.ts)_
704
704
 
705
705
  ## `qfg delete NAME`
706
706
 
@@ -746,7 +746,7 @@ EXAMPLES
746
746
  $ qfg delete my.config --yes
747
747
  ```
748
748
 
749
- _See code: [src/commands/delete.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/delete.ts)_
749
+ _See code: [src/commands/delete.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/delete.ts)_
750
750
 
751
751
  ## `qfg flag info [NAME]`
752
752
 
@@ -950,7 +950,7 @@ EXAMPLES
950
950
  $ qfg generate --targets node-ts -o ./dist # combine with targets
951
951
  ```
952
952
 
953
- _See code: [src/commands/generate.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/generate.ts)_
953
+ _See code: [src/commands/generate.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/generate.ts)_
954
954
 
955
955
  ## `qfg generate-new-hex-key`
956
956
 
@@ -973,7 +973,7 @@ EXAMPLES
973
973
  $ qfg generate-new-hex-key
974
974
  ```
975
975
 
976
- _See code: [src/commands/generate-new-hex-key.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/generate-new-hex-key.ts)_
976
+ _See code: [src/commands/generate-new-hex-key.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/generate-new-hex-key.ts)_
977
977
 
978
978
  ## `qfg get [NAME]`
979
979
 
@@ -1005,7 +1005,7 @@ EXAMPLES
1005
1005
  $ qfg get my.config.name --environment=production
1006
1006
  ```
1007
1007
 
1008
- _See code: [src/commands/get.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/get.ts)_
1008
+ _See code: [src/commands/get.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/get.ts)_
1009
1009
 
1010
1010
  ## `qfg history NAME`
1011
1011
 
@@ -1031,7 +1031,7 @@ EXAMPLES
1031
1031
  $ qfg history my.flag
1032
1032
  ```
1033
1033
 
1034
- _See code: [src/commands/history.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/history.ts)_
1034
+ _See code: [src/commands/history.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/history.ts)_
1035
1035
 
1036
1036
  ## `qfg info [NAME]`
1037
1037
 
@@ -1079,7 +1079,7 @@ EXAMPLES
1079
1079
  $ qfg info my.config.name --exclude-evaluations # skip 24h stats
1080
1080
  ```
1081
1081
 
1082
- _See code: [src/commands/info.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/info.ts)_
1082
+ _See code: [src/commands/info.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/info.ts)_
1083
1083
 
1084
1084
  ## `qfg init [DIRECTORY]`
1085
1085
 
@@ -1119,7 +1119,7 @@ EXAMPLES
1119
1119
  $ qfg init --dry-run
1120
1120
  ```
1121
1121
 
1122
- _See code: [src/commands/init.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/init.ts)_
1122
+ _See code: [src/commands/init.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/init.ts)_
1123
1123
 
1124
1124
  ## `qfg interactive`
1125
1125
 
@@ -1149,7 +1149,7 @@ EXAMPLES
1149
1149
  $ qfg
1150
1150
  ```
1151
1151
 
1152
- _See code: [src/commands/interactive.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/interactive.ts)_
1152
+ _See code: [src/commands/interactive.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/interactive.ts)_
1153
1153
 
1154
1154
  ## `qfg list`
1155
1155
 
@@ -1189,7 +1189,7 @@ EXAMPLES
1189
1189
  $ qfg list --feature-flags
1190
1190
  ```
1191
1191
 
1192
- _See code: [src/commands/list.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/list.ts)_
1192
+ _See code: [src/commands/list.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/list.ts)_
1193
1193
 
1194
1194
  ## `qfg log`
1195
1195
 
@@ -1214,7 +1214,7 @@ EXAMPLES
1214
1214
  $ qfg log --limit 5
1215
1215
  ```
1216
1216
 
1217
- _See code: [src/commands/log.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/log.ts)_
1217
+ _See code: [src/commands/log.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/log.ts)_
1218
1218
 
1219
1219
  ## `qfg log-level NAME`
1220
1220
 
@@ -1279,7 +1279,7 @@ EXAMPLES
1279
1279
  $ qfg log-level log-level.my-app --target=Chatty --value=INFO --environment=production
1280
1280
  ```
1281
1281
 
1282
- _See code: [src/commands/log-level.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/log-level.ts)_
1282
+ _See code: [src/commands/log-level.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/log-level.ts)_
1283
1283
 
1284
1284
  ## `qfg login`
1285
1285
 
@@ -1304,7 +1304,7 @@ EXAMPLES
1304
1304
  $ qfg login --profile myprofile
1305
1305
  ```
1306
1306
 
1307
- _See code: [src/commands/login.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/login.ts)_
1307
+ _See code: [src/commands/login.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/login.ts)_
1308
1308
 
1309
1309
  ## `qfg logout`
1310
1310
 
@@ -1327,7 +1327,7 @@ EXAMPLES
1327
1327
  $ qfg logout
1328
1328
  ```
1329
1329
 
1330
- _See code: [src/commands/logout.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/logout.ts)_
1330
+ _See code: [src/commands/logout.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/logout.ts)_
1331
1331
 
1332
1332
  ## `qfg migrate`
1333
1333
 
@@ -1390,7 +1390,7 @@ EXAMPLES
1390
1390
  $ qfg migrate --from launch --source-api-key $LAUNCH_API_KEY --dir ./quonfig-repo --staging
1391
1391
  ```
1392
1392
 
1393
- _See code: [src/commands/migrate.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/migrate.ts)_
1393
+ _See code: [src/commands/migrate.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/migrate.ts)_
1394
1394
 
1395
1395
  ## `qfg migrate doctor`
1396
1396
 
@@ -1428,7 +1428,7 @@ EXAMPLES
1428
1428
  $ qfg migrate doctor --json
1429
1429
  ```
1430
1430
 
1431
- _See code: [src/commands/migrate/doctor.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/migrate/doctor.ts)_
1431
+ _See code: [src/commands/migrate/doctor.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/migrate/doctor.ts)_
1432
1432
 
1433
1433
  ## `qfg migrate my-code`
1434
1434
 
@@ -1460,7 +1460,7 @@ EXAMPLES
1460
1460
  $ qfg migrate my-code --dry-run
1461
1461
  ```
1462
1462
 
1463
- _See code: [src/commands/migrate/my-code.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/migrate/my-code.ts)_
1463
+ _See code: [src/commands/migrate/my-code.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/migrate/my-code.ts)_
1464
1464
 
1465
1465
  ## `qfg migrate status`
1466
1466
 
@@ -1491,7 +1491,7 @@ EXAMPLES
1491
1491
  $ qfg migrate status --json
1492
1492
  ```
1493
1493
 
1494
- _See code: [src/commands/migrate/status.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/migrate/status.ts)_
1494
+ _See code: [src/commands/migrate/status.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/migrate/status.ts)_
1495
1495
 
1496
1496
  ## `qfg override [NAME] [VALUE]`
1497
1497
 
@@ -1546,7 +1546,7 @@ EXAMPLES
1546
1546
  $ qfg override my.flag true --env=staging
1547
1547
  ```
1548
1548
 
1549
- _See code: [src/commands/override.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/override.ts)_
1549
+ _See code: [src/commands/override.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/override.ts)_
1550
1550
 
1551
1551
  ## `qfg pull`
1552
1552
 
@@ -1594,7 +1594,7 @@ EXAMPLES
1594
1594
  $ qfg pull # uses QUONFIG_DIR env var
1595
1595
  ```
1596
1596
 
1597
- _See code: [src/commands/pull.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/pull.ts)_
1597
+ _See code: [src/commands/pull.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/pull.ts)_
1598
1598
 
1599
1599
  ## `qfg push`
1600
1600
 
@@ -1643,7 +1643,7 @@ EXAMPLES
1643
1643
  $ qfg push --dir ./our-config --yes
1644
1644
  ```
1645
1645
 
1646
- _See code: [src/commands/push.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/push.ts)_
1646
+ _See code: [src/commands/push.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/push.ts)_
1647
1647
 
1648
1648
  ## `qfg run [COMMAND]`
1649
1649
 
@@ -1694,7 +1694,7 @@ EXAMPLES
1694
1694
  $ qfg run --env DATABASE_URL=db.url --preserve-env --environment=staging -- npm test
1695
1695
  ```
1696
1696
 
1697
- _See code: [src/commands/run.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/run.ts)_
1697
+ _See code: [src/commands/run.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/run.ts)_
1698
1698
 
1699
1699
  ## `qfg schema NAME`
1700
1700
 
@@ -1732,7 +1732,7 @@ EXAMPLES
1732
1732
  $ qfg schema my-schema --set-json-schema=@schemas/my-schema.json --protected
1733
1733
  ```
1734
1734
 
1735
- _See code: [src/commands/schema.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/schema.ts)_
1735
+ _See code: [src/commands/schema.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/schema.ts)_
1736
1736
 
1737
1737
  ## `qfg sdk-key`
1738
1738
 
@@ -1759,7 +1759,7 @@ EXAMPLES
1759
1759
  $ qfg sdk-key revoke <key-id>
1760
1760
  ```
1761
1761
 
1762
- _See code: [src/commands/sdk-key.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/sdk-key.ts)_
1762
+ _See code: [src/commands/sdk-key.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/sdk-key.ts)_
1763
1763
 
1764
1764
  ## `qfg sdk-key create`
1765
1765
 
@@ -1791,7 +1791,7 @@ EXAMPLES
1791
1791
  $ qfg sdk-key create --environment staging --type browser
1792
1792
  ```
1793
1793
 
1794
- _See code: [src/commands/sdk-key/create.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/sdk-key/create.ts)_
1794
+ _See code: [src/commands/sdk-key/create.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/sdk-key/create.ts)_
1795
1795
 
1796
1796
  ## `qfg sdk-key list`
1797
1797
 
@@ -1820,7 +1820,7 @@ EXAMPLES
1820
1820
  $ qfg sdk-key list --environment production
1821
1821
  ```
1822
1822
 
1823
- _See code: [src/commands/sdk-key/list.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/sdk-key/list.ts)_
1823
+ _See code: [src/commands/sdk-key/list.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/sdk-key/list.ts)_
1824
1824
 
1825
1825
  ## `qfg sdk-key revoke KEYID`
1826
1826
 
@@ -1847,7 +1847,7 @@ EXAMPLES
1847
1847
  $ qfg sdk-key revoke a1b2c3d4-e5f6-7890-abcd-ef1234567890
1848
1848
  ```
1849
1849
 
1850
- _See code: [src/commands/sdk-key/revoke.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/sdk-key/revoke.ts)_
1850
+ _See code: [src/commands/sdk-key/revoke.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/sdk-key/revoke.ts)_
1851
1851
 
1852
1852
  ## `qfg serve`
1853
1853
 
@@ -1904,7 +1904,7 @@ EXAMPLES
1904
1904
  $ qfg serve --port 6581 --frontend-sdk-key PUBLIC_KEY
1905
1905
  ```
1906
1906
 
1907
- _See code: [src/commands/serve.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/serve.ts)_
1907
+ _See code: [src/commands/serve.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/serve.ts)_
1908
1908
 
1909
1909
  ## `qfg set-default [NAME]`
1910
1910
 
@@ -1975,7 +1975,7 @@ EXAMPLES
1975
1975
  $ qfg pull && qfg config-schema
1976
1976
  ```
1977
1977
 
1978
- _See code: [src/commands/set-default.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/set-default.ts)_
1978
+ _See code: [src/commands/set-default.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/set-default.ts)_
1979
1979
 
1980
1980
  ## `qfg set-rollout [NAME]`
1981
1981
 
@@ -2052,7 +2052,7 @@ EXAMPLES
2052
2052
  $ qfg set-rollout my.variant.flag --environment production --weights "a:33,b:33,c:34" --hash-by user.id
2053
2053
  ```
2054
2054
 
2055
- _See code: [src/commands/set-rollout.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/set-rollout.ts)_
2055
+ _See code: [src/commands/set-rollout.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/set-rollout.ts)_
2056
2056
 
2057
2057
  ## `qfg sync`
2058
2058
 
@@ -2084,7 +2084,7 @@ EXAMPLES
2084
2084
  $ qfg sync --watch --dir ./our-config --interval 30
2085
2085
  ```
2086
2086
 
2087
- _See code: [src/commands/sync.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/sync.ts)_
2087
+ _See code: [src/commands/sync.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/sync.ts)_
2088
2088
 
2089
2089
  ## `qfg toggle [NAME]`
2090
2090
 
@@ -2186,7 +2186,7 @@ EXAMPLES
2186
2186
  $ qfg verify --json
2187
2187
  ```
2188
2188
 
2189
- _See code: [src/commands/verify.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/verify.ts)_
2189
+ _See code: [src/commands/verify.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/verify.ts)_
2190
2190
 
2191
2191
  ## `qfg whoami`
2192
2192
 
@@ -2209,7 +2209,7 @@ EXAMPLES
2209
2209
  $ qfg whoami
2210
2210
  ```
2211
2211
 
2212
- _See code: [src/commands/whoami.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/whoami.ts)_
2212
+ _See code: [src/commands/whoami.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/whoami.ts)_
2213
2213
 
2214
2214
  ## `qfg workspace`
2215
2215
 
@@ -2232,7 +2232,7 @@ EXAMPLES
2232
2232
  $ qfg workspace
2233
2233
  ```
2234
2234
 
2235
- _See code: [src/commands/workspace.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/workspace.ts)_
2235
+ _See code: [src/commands/workspace.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/workspace.ts)_
2236
2236
 
2237
2237
  ## `qfg workspace bootstrap`
2238
2238
 
@@ -2265,7 +2265,7 @@ EXAMPLES
2265
2265
  $ qfg workspace bootstrap --dir ./our-config --skip-validate
2266
2266
  ```
2267
2267
 
2268
- _See code: [src/commands/workspace/bootstrap.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/workspace/bootstrap.ts)_
2268
+ _See code: [src/commands/workspace/bootstrap.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/workspace/bootstrap.ts)_
2269
2269
 
2270
2270
  ## `qfg workspace create SLUG`
2271
2271
 
@@ -2299,7 +2299,7 @@ EXAMPLES
2299
2299
  $ qfg workspace create my-team --org 11111111-1111-1111-1111-111111111111
2300
2300
  ```
2301
2301
 
2302
- _See code: [src/commands/workspace/create.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/workspace/create.ts)_
2302
+ _See code: [src/commands/workspace/create.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/workspace/create.ts)_
2303
2303
 
2304
2304
  ## `qfg workspace switch [SLUG]`
2305
2305
 
@@ -2327,7 +2327,7 @@ EXAMPLES
2327
2327
  $ qfg workspace switch acme/production
2328
2328
  ```
2329
2329
 
2330
- _See code: [src/commands/workspace/switch.ts](https://github.com/quonfig/cli/blob/v0.0.57/src/commands/workspace/switch.ts)_
2330
+ _See code: [src/commands/workspace/switch.ts](https://github.com/quonfig/cli/blob/v0.0.59/src/commands/workspace/switch.ts)_
2331
2331
  <!-- commandsstop -->
2332
2332
 
2333
2333
  ## Local Development
@@ -2,6 +2,8 @@ import type { LaunchChangeEntry, LaunchChangeHistoryResponse } from './types.js'
2
2
  export declare function setLaunchBaseUrl(url: string): void;
3
3
  export declare function selectLaunchBaseUrl(staging: boolean): string;
4
4
  export declare function applyLaunchBaseUrl(staging: boolean): void;
5
+ export declare function __setSleepForTests(fn: (ms: number) => Promise<void>): void;
6
+ export declare function __resetSleepForTests(): void;
5
7
  export declare function fetchEnvironments(apiKey: string): Promise<Record<string, string>>;
6
8
  export declare function fetchChangeHistoryPage(apiKey: string, cursor?: string): Promise<LaunchChangeHistoryResponse>;
7
9
  export declare function fetchAllChangeHistory(apiKey: string, sinceEpochMs?: number, onProgress?: (fetched: number) => void): Promise<LaunchChangeEntry[]>;
@@ -1,6 +1,20 @@
1
1
  const PROD_BASE_URL = 'https://api.reforge.com';
2
2
  const STAGING_BASE_URL = 'https://api.goatsofreforge.com';
3
3
  const PAGE_LIMIT = 50;
4
+ /**
5
+ * Hard cap on retries for a single request before we give up. Mirrors the
6
+ * launchdarkly/flagsmith adapters.
7
+ */
8
+ const MAX_RETRIES = 6;
9
+ /** Fallback wait when a response carries no usable backoff header. */
10
+ const DEFAULT_BACKOFF_MS = 2000;
11
+ /**
12
+ * Politeness pause between history pages. On a large account this endpoint is
13
+ * walked for hundreds of sequential pages; a small fixed delay keeps us from
14
+ * tripping a rate limit. (Reforge sends no rate-budget headers to pre-throttle
15
+ * against, unlike LaunchDarkly/Flagsmith.)
16
+ */
17
+ const INTER_PAGE_THROTTLE_MS = 300;
4
18
  let baseUrl = PROD_BASE_URL;
5
19
  export function setLaunchBaseUrl(url) {
6
20
  baseUrl = url;
@@ -14,20 +28,87 @@ export function applyLaunchBaseUrl(staging) {
14
28
  function makeToken(apiKey) {
15
29
  return Buffer.from(`authuser:${apiKey}`).toString('base64');
16
30
  }
31
+ /** Real timer-backed sleep — swapped out in tests so MSW runs don't actually wait. */
32
+ function timerSleep(ms) {
33
+ return new Promise((resolve) => {
34
+ setTimeout(resolve, ms);
35
+ });
36
+ }
37
+ /** Test seam: a no-op sleep is swapped in so MSW tests don't actually wait. */
38
+ let sleepImpl = timerSleep;
39
+ export function __setSleepForTests(fn) {
40
+ sleepImpl = fn;
41
+ }
42
+ export function __resetSleepForTests() {
43
+ sleepImpl = timerSleep;
44
+ }
45
+ /**
46
+ * Only transient errors are retried: 429 (throttling) and 5xx (availability).
47
+ *
48
+ * A 403 is NOT retried. It is either a genuine authorization failure (a bad or
49
+ * under-scoped key) or a hard edge/WAF block — neither clears by waiting, so
50
+ * retrying just burns the whole backoff budget (~2 min) before surfacing the
51
+ * same error. Fail fast with a clear message instead. (Observed: Reforge's
52
+ * edge WAF blocked change-history cursors whose flag key contained certain
53
+ * substrings; that is a server-side rule, fixed upstream, not something the
54
+ * client can retry past.)
55
+ */
56
+ function isRetryable(status) {
57
+ return status === 429 || status === 502 || status === 503 || status === 504;
58
+ }
59
+ /**
60
+ * Exponential backoff with jitter: ~2s, 4s, 8s … clamped to 60s, ±20% jitter
61
+ * so concurrent/retried requests don't resynchronize into the next block. A
62
+ * standard `Retry-After` header, if present, raises (never lowers) the wait.
63
+ */
64
+ function backoffMs(headers, attempt) {
65
+ let wait = Math.min(60_000, DEFAULT_BACKOFF_MS * 2 ** attempt);
66
+ const retryAfter = headers.get('Retry-After');
67
+ if (retryAfter !== null) {
68
+ const sec = Number(retryAfter);
69
+ if (Number.isFinite(sec))
70
+ wait = Math.max(wait, sec * 1000);
71
+ }
72
+ // ±20% jitter. Math.random is fine here (not a deterministic-replay context).
73
+ const jitter = wait * 0.2 * (Math.random() * 2 - 1);
74
+ return Math.min(60_000, Math.max(0, Math.round(wait + jitter)));
75
+ }
76
+ /** Trim a (potentially large HTML) error body so the thrown message stays readable. */
77
+ function truncateBody(body) {
78
+ const flat = body.replaceAll(/\s+/g, ' ').trim();
79
+ return flat.length > 300 ? `${flat.slice(0, 300)}…` : flat;
80
+ }
81
+ /**
82
+ * Single GET with HTTP Basic auth, retrying transient errors (429, 5xx) with
83
+ * exponential backoff. 403 and other non-ok statuses throw immediately — only
84
+ * throttling/availability errors are retried.
85
+ */
17
86
  async function apiFetch(path, apiKey) {
18
87
  const url = `${baseUrl}${path}`;
19
88
  const token = makeToken(apiKey);
20
- const res = await fetch(url, {
21
- headers: {
22
- Accept: 'application/json',
23
- Authorization: `Basic ${token}`,
24
- },
25
- });
26
- if (!res.ok) {
89
+ for (let attempt = 0; attempt <= MAX_RETRIES; attempt++) {
90
+ // eslint-disable-next-line no-await-in-loop
91
+ const res = await fetch(url, {
92
+ headers: {
93
+ Accept: 'application/json',
94
+ Authorization: `Basic ${token}`,
95
+ },
96
+ });
97
+ if (res.ok)
98
+ return res.json();
99
+ const retryable = isRetryable(res.status);
100
+ if (retryable && attempt < MAX_RETRIES) {
101
+ // eslint-disable-next-line no-await-in-loop
102
+ await sleepImpl(backoffMs(res.headers, attempt));
103
+ continue;
104
+ }
105
+ // eslint-disable-next-line no-await-in-loop
27
106
  const body = await res.text().catch(() => '(no body)');
28
- throw new Error(`Launch API request failed: ${res.status} ${res.statusText} — ${url}\n${body}`);
107
+ const hint = retryable ? ` (gave up after ${MAX_RETRIES + 1} attempts)` : '';
108
+ throw new Error(`Launch API request failed: ${res.status} ${res.statusText}${hint} — ${url}\n${truncateBody(body)}`);
29
109
  }
30
- return res.json();
110
+ // Unreachable — the loop either returns or throws.
111
+ throw new Error(`Launch API request failed: retries exhausted — ${url}`);
31
112
  }
32
113
  export async function fetchEnvironments(apiKey) {
33
114
  const data = (await apiFetch('/api/v1/project-environments', apiKey));
@@ -73,6 +154,10 @@ export async function fetchAllChangeHistory(apiKey, sinceEpochMs, onProgress) {
73
154
  break;
74
155
  seenCursors.add(page.cursor);
75
156
  cursor = page.cursor;
157
+ // Smooth the request burst so we don't trip Reforge's edge rate-limit in
158
+ // the first place (it has no rate-budget headers to pre-throttle against).
159
+ // eslint-disable-next-line no-await-in-loop
160
+ await sleepImpl(INTER_PAGE_THROTTLE_MS);
76
161
  }
77
162
  return collected.reverse();
78
163
  }
@@ -62,6 +62,14 @@ const ensureCloneOrReuse = async (remoteUrl, localDir, branch) => {
62
62
  if (fs.existsSync(localDir) && (await isGitRepo(localDir))) {
63
63
  const origin = await getOriginUrl(localDir);
64
64
  if (origin && normalizeRemoteUrl(origin) === normalizeRemoteUrl(remoteUrl)) {
65
+ // The local clone is the right repo, but its `origin` may carry a STALE
66
+ // embedded token. Write-scope PATs are 1h TTL and tokens can be swept, so
67
+ // a dir reused across runs (the canonical "re-run the migrator" flow) ends
68
+ // up authenticating git with a dead credential — `git fetch`/`git push`
69
+ // then fail with "remote: Failed to authenticate user". Re-point origin at
70
+ // the freshly-minted remoteUrl so every network op below uses the live
71
+ // token, not the one baked into origin at clone time (qfg-fsdj).
72
+ await runGit(localDir, ['remote', 'set-url', 'origin', remoteUrl]);
65
73
  // Reuse: fetch + ff-merge
66
74
  await runGit(localDir, ['fetch', 'origin', branch]);
67
75
  await runGit(localDir, ['checkout', branch]);
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.0.57";
1
+ declare const _default: "0.0.59";
2
2
  export default _default;
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // AUTO-GENERATED from package.json by scripts/generate-version.mjs — do not edit.
2
- export default '0.0.57';
2
+ export default '0.0.59';
@@ -3646,13 +3646,14 @@
3646
3646
  "status.js"
3647
3647
  ]
3648
3648
  },
3649
- "sdk-key:create": {
3649
+ "workspace:bootstrap": {
3650
3650
  "aliases": [],
3651
3651
  "args": {},
3652
- "description": "Create a new SDK key",
3652
+ "description": "Push a local git repo to Gitea as this workspace's config repository",
3653
3653
  "examples": [
3654
- "<%= config.bin %> <%= command.id %> --environment production --type server",
3655
- "<%= config.bin %> <%= command.id %> --environment staging --type browser"
3654
+ "<%= config.bin %> workspace bootstrap --dir ./our-config",
3655
+ "<%= config.bin %> workspace bootstrap --dir ./launch-migrator/output",
3656
+ "<%= config.bin %> workspace bootstrap --dir ./our-config --skip-validate"
3656
3657
  ],
3657
3658
  "flags": {
3658
3659
  "json": {
@@ -3684,53 +3685,30 @@
3684
3685
  "allowNo": false,
3685
3686
  "type": "boolean"
3686
3687
  },
3687
- "workspace": {
3688
- "char": "w",
3689
- "description": "Workspace slug to use (overrides QUONFIG_WORKSPACE env var and saved default)",
3690
- "helpGroup": "GLOBAL",
3691
- "name": "workspace",
3692
- "required": false,
3693
- "hasDynamicHelp": false,
3694
- "multiple": false,
3695
- "type": "option"
3696
- },
3697
- "profile": {
3698
- "char": "p",
3699
- "description": "Deprecated: use --workspace instead",
3700
- "helpGroup": "GLOBAL",
3701
- "hidden": true,
3702
- "name": "profile",
3688
+ "dir": {
3689
+ "description": "Local directory to push (defaults to current directory)",
3690
+ "name": "dir",
3703
3691
  "required": false,
3704
3692
  "hasDynamicHelp": false,
3705
3693
  "multiple": false,
3706
3694
  "type": "option"
3707
3695
  },
3708
- "environment": {
3709
- "char": "e",
3710
- "description": "Environment name (e.g. production, staging)",
3711
- "name": "environment",
3712
- "required": false,
3713
- "hasDynamicHelp": false,
3714
- "multiple": false,
3715
- "type": "option"
3696
+ "force": {
3697
+ "description": "Force push even if remote already has commits",
3698
+ "name": "force",
3699
+ "allowNo": false,
3700
+ "type": "boolean"
3716
3701
  },
3717
- "type": {
3718
- "char": "t",
3719
- "description": "Key type: server (backend) or browser (frontend)",
3720
- "name": "type",
3721
- "required": false,
3722
- "hasDynamicHelp": false,
3723
- "multiple": false,
3724
- "options": [
3725
- "server",
3726
- "browser"
3727
- ],
3728
- "type": "option"
3702
+ "skip-validate": {
3703
+ "description": "Skip config validation before pushing",
3704
+ "name": "skip-validate",
3705
+ "allowNo": false,
3706
+ "type": "boolean"
3729
3707
  }
3730
3708
  },
3731
3709
  "hasDynamicHelp": false,
3732
3710
  "hiddenAliases": [],
3733
- "id": "sdk-key:create",
3711
+ "id": "workspace:bootstrap",
3734
3712
  "pluginAlias": "@quonfig/cli",
3735
3713
  "pluginName": "@quonfig/cli",
3736
3714
  "pluginType": "core",
@@ -3740,17 +3718,24 @@
3740
3718
  "relativePath": [
3741
3719
  "dist",
3742
3720
  "commands",
3743
- "sdk-key",
3744
- "create.js"
3721
+ "workspace",
3722
+ "bootstrap.js"
3745
3723
  ]
3746
3724
  },
3747
- "sdk-key:list": {
3725
+ "workspace:create": {
3748
3726
  "aliases": [],
3749
- "args": {},
3750
- "description": "List SDK keys for your workspace",
3727
+ "args": {
3728
+ "slug": {
3729
+ "description": "Workspace slug (lowercase letters, numbers, hyphens)",
3730
+ "name": "slug",
3731
+ "required": true
3732
+ }
3733
+ },
3734
+ "description": "Create a new workspace. Provisions the Gitea repo and default environments, identical to the app's New Workspace UI.",
3751
3735
  "examples": [
3752
- "<%= config.bin %> <%= command.id %>",
3753
- "<%= config.bin %> <%= command.id %> --environment production"
3736
+ "<%= config.bin %> <%= command.id %> my-team",
3737
+ "<%= config.bin %> <%= command.id %> lt-21-smoke --name \"Load Test 21\"",
3738
+ "<%= config.bin %> <%= command.id %> my-team --org 11111111-1111-1111-1111-111111111111"
3754
3739
  ],
3755
3740
  "flags": {
3756
3741
  "json": {
@@ -3782,31 +3767,17 @@
3782
3767
  "allowNo": false,
3783
3768
  "type": "boolean"
3784
3769
  },
3785
- "workspace": {
3786
- "char": "w",
3787
- "description": "Workspace slug to use (overrides QUONFIG_WORKSPACE env var and saved default)",
3788
- "helpGroup": "GLOBAL",
3789
- "name": "workspace",
3790
- "required": false,
3791
- "hasDynamicHelp": false,
3792
- "multiple": false,
3793
- "type": "option"
3794
- },
3795
- "profile": {
3796
- "char": "p",
3797
- "description": "Deprecated: use --workspace instead",
3798
- "helpGroup": "GLOBAL",
3799
- "hidden": true,
3800
- "name": "profile",
3770
+ "name": {
3771
+ "description": "Human-readable display name (defaults to the slug)",
3772
+ "name": "name",
3801
3773
  "required": false,
3802
3774
  "hasDynamicHelp": false,
3803
3775
  "multiple": false,
3804
3776
  "type": "option"
3805
3777
  },
3806
- "environment": {
3807
- "char": "e",
3808
- "description": "Filter by environment name",
3809
- "name": "environment",
3778
+ "org": {
3779
+ "description": "Organization UUID or slug. Required when you belong to more than one organization; inferred otherwise.",
3780
+ "name": "org",
3810
3781
  "required": false,
3811
3782
  "hasDynamicHelp": false,
3812
3783
  "multiple": false,
@@ -3815,7 +3786,7 @@
3815
3786
  },
3816
3787
  "hasDynamicHelp": false,
3817
3788
  "hiddenAliases": [],
3818
- "id": "sdk-key:list",
3789
+ "id": "workspace:create",
3819
3790
  "pluginAlias": "@quonfig/cli",
3820
3791
  "pluginName": "@quonfig/cli",
3821
3792
  "pluginType": "core",
@@ -3825,22 +3796,23 @@
3825
3796
  "relativePath": [
3826
3797
  "dist",
3827
3798
  "commands",
3828
- "sdk-key",
3829
- "list.js"
3799
+ "workspace",
3800
+ "create.js"
3830
3801
  ]
3831
3802
  },
3832
- "sdk-key:revoke": {
3803
+ "workspace:switch": {
3833
3804
  "aliases": [],
3834
3805
  "args": {
3835
- "keyId": {
3836
- "description": "ID of the SDK key to revoke",
3837
- "name": "keyId",
3838
- "required": true
3806
+ "slug": {
3807
+ "description": "Workspace pin in `<org-slug>/<workspace-slug>` form. Omit for an interactive picker.",
3808
+ "name": "slug",
3809
+ "required": false
3839
3810
  }
3840
3811
  },
3841
- "description": "Revoke an SDK key by its ID",
3812
+ "description": "Switch the saved default profile to a different (org, workspace) pair",
3842
3813
  "examples": [
3843
- "<%= config.bin %> <%= command.id %> a1b2c3d4-e5f6-7890-abcd-ef1234567890"
3814
+ "<%= config.bin %> <%= command.id %>",
3815
+ "<%= config.bin %> <%= command.id %> acme/production"
3844
3816
  ],
3845
3817
  "flags": {
3846
3818
  "json": {
@@ -3871,32 +3843,11 @@
3871
3843
  "name": "verbose",
3872
3844
  "allowNo": false,
3873
3845
  "type": "boolean"
3874
- },
3875
- "workspace": {
3876
- "char": "w",
3877
- "description": "Workspace slug to use (overrides QUONFIG_WORKSPACE env var and saved default)",
3878
- "helpGroup": "GLOBAL",
3879
- "name": "workspace",
3880
- "required": false,
3881
- "hasDynamicHelp": false,
3882
- "multiple": false,
3883
- "type": "option"
3884
- },
3885
- "profile": {
3886
- "char": "p",
3887
- "description": "Deprecated: use --workspace instead",
3888
- "helpGroup": "GLOBAL",
3889
- "hidden": true,
3890
- "name": "profile",
3891
- "required": false,
3892
- "hasDynamicHelp": false,
3893
- "multiple": false,
3894
- "type": "option"
3895
3846
  }
3896
3847
  },
3897
3848
  "hasDynamicHelp": false,
3898
3849
  "hiddenAliases": [],
3899
- "id": "sdk-key:revoke",
3850
+ "id": "workspace:switch",
3900
3851
  "pluginAlias": "@quonfig/cli",
3901
3852
  "pluginName": "@quonfig/cli",
3902
3853
  "pluginType": "core",
@@ -3906,18 +3857,17 @@
3906
3857
  "relativePath": [
3907
3858
  "dist",
3908
3859
  "commands",
3909
- "sdk-key",
3910
- "revoke.js"
3860
+ "workspace",
3861
+ "switch.js"
3911
3862
  ]
3912
3863
  },
3913
- "workspace:bootstrap": {
3864
+ "sdk-key:create": {
3914
3865
  "aliases": [],
3915
3866
  "args": {},
3916
- "description": "Push a local git repo to Gitea as this workspace's config repository",
3867
+ "description": "Create a new SDK key",
3917
3868
  "examples": [
3918
- "<%= config.bin %> workspace bootstrap --dir ./our-config",
3919
- "<%= config.bin %> workspace bootstrap --dir ./launch-migrator/output",
3920
- "<%= config.bin %> workspace bootstrap --dir ./our-config --skip-validate"
3869
+ "<%= config.bin %> <%= command.id %> --environment production --type server",
3870
+ "<%= config.bin %> <%= command.id %> --environment staging --type browser"
3921
3871
  ],
3922
3872
  "flags": {
3923
3873
  "json": {
@@ -3949,30 +3899,53 @@
3949
3899
  "allowNo": false,
3950
3900
  "type": "boolean"
3951
3901
  },
3952
- "dir": {
3953
- "description": "Local directory to push (defaults to current directory)",
3954
- "name": "dir",
3902
+ "workspace": {
3903
+ "char": "w",
3904
+ "description": "Workspace slug to use (overrides QUONFIG_WORKSPACE env var and saved default)",
3905
+ "helpGroup": "GLOBAL",
3906
+ "name": "workspace",
3955
3907
  "required": false,
3956
3908
  "hasDynamicHelp": false,
3957
3909
  "multiple": false,
3958
3910
  "type": "option"
3959
3911
  },
3960
- "force": {
3961
- "description": "Force push even if remote already has commits",
3962
- "name": "force",
3963
- "allowNo": false,
3964
- "type": "boolean"
3912
+ "profile": {
3913
+ "char": "p",
3914
+ "description": "Deprecated: use --workspace instead",
3915
+ "helpGroup": "GLOBAL",
3916
+ "hidden": true,
3917
+ "name": "profile",
3918
+ "required": false,
3919
+ "hasDynamicHelp": false,
3920
+ "multiple": false,
3921
+ "type": "option"
3965
3922
  },
3966
- "skip-validate": {
3967
- "description": "Skip config validation before pushing",
3968
- "name": "skip-validate",
3969
- "allowNo": false,
3970
- "type": "boolean"
3923
+ "environment": {
3924
+ "char": "e",
3925
+ "description": "Environment name (e.g. production, staging)",
3926
+ "name": "environment",
3927
+ "required": false,
3928
+ "hasDynamicHelp": false,
3929
+ "multiple": false,
3930
+ "type": "option"
3931
+ },
3932
+ "type": {
3933
+ "char": "t",
3934
+ "description": "Key type: server (backend) or browser (frontend)",
3935
+ "name": "type",
3936
+ "required": false,
3937
+ "hasDynamicHelp": false,
3938
+ "multiple": false,
3939
+ "options": [
3940
+ "server",
3941
+ "browser"
3942
+ ],
3943
+ "type": "option"
3971
3944
  }
3972
3945
  },
3973
3946
  "hasDynamicHelp": false,
3974
3947
  "hiddenAliases": [],
3975
- "id": "workspace:bootstrap",
3948
+ "id": "sdk-key:create",
3976
3949
  "pluginAlias": "@quonfig/cli",
3977
3950
  "pluginName": "@quonfig/cli",
3978
3951
  "pluginType": "core",
@@ -3982,24 +3955,17 @@
3982
3955
  "relativePath": [
3983
3956
  "dist",
3984
3957
  "commands",
3985
- "workspace",
3986
- "bootstrap.js"
3958
+ "sdk-key",
3959
+ "create.js"
3987
3960
  ]
3988
3961
  },
3989
- "workspace:create": {
3962
+ "sdk-key:list": {
3990
3963
  "aliases": [],
3991
- "args": {
3992
- "slug": {
3993
- "description": "Workspace slug (lowercase letters, numbers, hyphens)",
3994
- "name": "slug",
3995
- "required": true
3996
- }
3997
- },
3998
- "description": "Create a new workspace. Provisions the Gitea repo and default environments, identical to the app's New Workspace UI.",
3964
+ "args": {},
3965
+ "description": "List SDK keys for your workspace",
3999
3966
  "examples": [
4000
- "<%= config.bin %> <%= command.id %> my-team",
4001
- "<%= config.bin %> <%= command.id %> lt-21-smoke --name \"Load Test 21\"",
4002
- "<%= config.bin %> <%= command.id %> my-team --org 11111111-1111-1111-1111-111111111111"
3967
+ "<%= config.bin %> <%= command.id %>",
3968
+ "<%= config.bin %> <%= command.id %> --environment production"
4003
3969
  ],
4004
3970
  "flags": {
4005
3971
  "json": {
@@ -4031,17 +3997,31 @@
4031
3997
  "allowNo": false,
4032
3998
  "type": "boolean"
4033
3999
  },
4034
- "name": {
4035
- "description": "Human-readable display name (defaults to the slug)",
4036
- "name": "name",
4000
+ "workspace": {
4001
+ "char": "w",
4002
+ "description": "Workspace slug to use (overrides QUONFIG_WORKSPACE env var and saved default)",
4003
+ "helpGroup": "GLOBAL",
4004
+ "name": "workspace",
4037
4005
  "required": false,
4038
4006
  "hasDynamicHelp": false,
4039
4007
  "multiple": false,
4040
4008
  "type": "option"
4041
4009
  },
4042
- "org": {
4043
- "description": "Organization UUID or slug. Required when you belong to more than one organization; inferred otherwise.",
4044
- "name": "org",
4010
+ "profile": {
4011
+ "char": "p",
4012
+ "description": "Deprecated: use --workspace instead",
4013
+ "helpGroup": "GLOBAL",
4014
+ "hidden": true,
4015
+ "name": "profile",
4016
+ "required": false,
4017
+ "hasDynamicHelp": false,
4018
+ "multiple": false,
4019
+ "type": "option"
4020
+ },
4021
+ "environment": {
4022
+ "char": "e",
4023
+ "description": "Filter by environment name",
4024
+ "name": "environment",
4045
4025
  "required": false,
4046
4026
  "hasDynamicHelp": false,
4047
4027
  "multiple": false,
@@ -4050,7 +4030,7 @@
4050
4030
  },
4051
4031
  "hasDynamicHelp": false,
4052
4032
  "hiddenAliases": [],
4053
- "id": "workspace:create",
4033
+ "id": "sdk-key:list",
4054
4034
  "pluginAlias": "@quonfig/cli",
4055
4035
  "pluginName": "@quonfig/cli",
4056
4036
  "pluginType": "core",
@@ -4060,23 +4040,22 @@
4060
4040
  "relativePath": [
4061
4041
  "dist",
4062
4042
  "commands",
4063
- "workspace",
4064
- "create.js"
4043
+ "sdk-key",
4044
+ "list.js"
4065
4045
  ]
4066
4046
  },
4067
- "workspace:switch": {
4047
+ "sdk-key:revoke": {
4068
4048
  "aliases": [],
4069
4049
  "args": {
4070
- "slug": {
4071
- "description": "Workspace pin in `<org-slug>/<workspace-slug>` form. Omit for an interactive picker.",
4072
- "name": "slug",
4073
- "required": false
4050
+ "keyId": {
4051
+ "description": "ID of the SDK key to revoke",
4052
+ "name": "keyId",
4053
+ "required": true
4074
4054
  }
4075
4055
  },
4076
- "description": "Switch the saved default profile to a different (org, workspace) pair",
4056
+ "description": "Revoke an SDK key by its ID",
4077
4057
  "examples": [
4078
- "<%= config.bin %> <%= command.id %>",
4079
- "<%= config.bin %> <%= command.id %> acme/production"
4058
+ "<%= config.bin %> <%= command.id %> a1b2c3d4-e5f6-7890-abcd-ef1234567890"
4080
4059
  ],
4081
4060
  "flags": {
4082
4061
  "json": {
@@ -4107,11 +4086,32 @@
4107
4086
  "name": "verbose",
4108
4087
  "allowNo": false,
4109
4088
  "type": "boolean"
4089
+ },
4090
+ "workspace": {
4091
+ "char": "w",
4092
+ "description": "Workspace slug to use (overrides QUONFIG_WORKSPACE env var and saved default)",
4093
+ "helpGroup": "GLOBAL",
4094
+ "name": "workspace",
4095
+ "required": false,
4096
+ "hasDynamicHelp": false,
4097
+ "multiple": false,
4098
+ "type": "option"
4099
+ },
4100
+ "profile": {
4101
+ "char": "p",
4102
+ "description": "Deprecated: use --workspace instead",
4103
+ "helpGroup": "GLOBAL",
4104
+ "hidden": true,
4105
+ "name": "profile",
4106
+ "required": false,
4107
+ "hasDynamicHelp": false,
4108
+ "multiple": false,
4109
+ "type": "option"
4110
4110
  }
4111
4111
  },
4112
4112
  "hasDynamicHelp": false,
4113
4113
  "hiddenAliases": [],
4114
- "id": "workspace:switch",
4114
+ "id": "sdk-key:revoke",
4115
4115
  "pluginAlias": "@quonfig/cli",
4116
4116
  "pluginName": "@quonfig/cli",
4117
4117
  "pluginType": "core",
@@ -4121,10 +4121,10 @@
4121
4121
  "relativePath": [
4122
4122
  "dist",
4123
4123
  "commands",
4124
- "workspace",
4125
- "switch.js"
4124
+ "sdk-key",
4125
+ "revoke.js"
4126
4126
  ]
4127
4127
  }
4128
4128
  },
4129
- "version": "0.0.57"
4129
+ "version": "0.0.59"
4130
4130
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "packageManager": "yarn@4.11.0+sha512.4e54aeace9141df2f0177c266b05ec50dc044638157dae128c471ba65994ac802122d7ab35bcd9e81641228b7dcf24867d28e750e0bcae8a05277d600008ad54",
3
3
  "name": "@quonfig/cli",
4
- "version": "0.0.57",
4
+ "version": "0.0.59",
5
5
  "bugs": {
6
6
  "url": "https://github.com/quonfig/cli/issues"
7
7
  },