@quonfig/cli 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +125 -55
- package/dist/commands/environments.d.ts +8 -0
- package/dist/commands/environments.js +32 -0
- package/dist/commands/info.d.ts +1 -0
- package/dist/commands/info.js +59 -31
- package/dist/commands/set-default.js +28 -17
- package/dist/commands/set-rollout.js +2 -2
- package/dist/ui/get-confirmation.d.ts +10 -1
- package/dist/ui/get-confirmation.js +13 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/oclif.manifest.json +261 -184
- package/package.json +1 -1
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.
|
|
20
|
+
@quonfig/cli/0.6.0 linux-x64 node-v24.4.1
|
|
21
21
|
$ qfg --help [COMMAND]
|
|
22
22
|
USAGE
|
|
23
23
|
$ qfg COMMAND
|
|
@@ -137,6 +137,8 @@ script doesn't need to know which env it's running in.
|
|
|
137
137
|
* [`qfg contexts search CONTEXTTYPE QUERY`](#qfg-contexts-search-contexttype-query)
|
|
138
138
|
* [`qfg create NAME`](#qfg-create-name)
|
|
139
139
|
* [`qfg delete NAME`](#qfg-delete-name)
|
|
140
|
+
* [`qfg environments`](#qfg-environments)
|
|
141
|
+
* [`qfg envs`](#qfg-envs)
|
|
140
142
|
* [`qfg flag info [NAME]`](#qfg-flag-info-name)
|
|
141
143
|
* [`qfg flag list`](#qfg-flag-list)
|
|
142
144
|
* [`qfg flag show [NAME]`](#qfg-flag-show-name)
|
|
@@ -204,7 +206,7 @@ EXAMPLES
|
|
|
204
206
|
$ qfg activity restore my.flag --yes
|
|
205
207
|
```
|
|
206
208
|
|
|
207
|
-
_See code: [src/commands/activity.ts](https://github.com/quonfig/cli/blob/v0.
|
|
209
|
+
_See code: [src/commands/activity.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/activity.ts)_
|
|
208
210
|
|
|
209
211
|
## `qfg activity deleted`
|
|
210
212
|
|
|
@@ -233,7 +235,7 @@ EXAMPLES
|
|
|
233
235
|
$ qfg activity deleted --json
|
|
234
236
|
```
|
|
235
237
|
|
|
236
|
-
_See code: [src/commands/activity/deleted.ts](https://github.com/quonfig/cli/blob/v0.
|
|
238
|
+
_See code: [src/commands/activity/deleted.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/activity/deleted.ts)_
|
|
237
239
|
|
|
238
240
|
## `qfg activity feed`
|
|
239
241
|
|
|
@@ -268,7 +270,7 @@ EXAMPLES
|
|
|
268
270
|
$ qfg activity feed --json
|
|
269
271
|
```
|
|
270
272
|
|
|
271
|
-
_See code: [src/commands/activity/feed.ts](https://github.com/quonfig/cli/blob/v0.
|
|
273
|
+
_See code: [src/commands/activity/feed.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/activity/feed.ts)_
|
|
272
274
|
|
|
273
275
|
## `qfg activity history [NAME]`
|
|
274
276
|
|
|
@@ -302,7 +304,7 @@ EXAMPLES
|
|
|
302
304
|
$ qfg activity history request.timeout --json
|
|
303
305
|
```
|
|
304
306
|
|
|
305
|
-
_See code: [src/commands/activity/history.ts](https://github.com/quonfig/cli/blob/v0.
|
|
307
|
+
_See code: [src/commands/activity/history.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/activity/history.ts)_
|
|
306
308
|
|
|
307
309
|
## `qfg activity restore [NAME]`
|
|
308
310
|
|
|
@@ -341,7 +343,7 @@ EXAMPLES
|
|
|
341
343
|
$ qfg activity restore request.timeout --type config --yes
|
|
342
344
|
```
|
|
343
345
|
|
|
344
|
-
_See code: [src/commands/activity/restore.ts](https://github.com/quonfig/cli/blob/v0.
|
|
346
|
+
_See code: [src/commands/activity/restore.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/activity/restore.ts)_
|
|
345
347
|
|
|
346
348
|
## `qfg agent install-skill`
|
|
347
349
|
|
|
@@ -386,7 +388,7 @@ EXAMPLES
|
|
|
386
388
|
$ qfg agent install-skill --force
|
|
387
389
|
```
|
|
388
390
|
|
|
389
|
-
_See code: [src/commands/agent/install-skill.ts](https://github.com/quonfig/cli/blob/v0.
|
|
391
|
+
_See code: [src/commands/agent/install-skill.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/agent/install-skill.ts)_
|
|
390
392
|
|
|
391
393
|
## `qfg audit-log [NAME]`
|
|
392
394
|
|
|
@@ -414,7 +416,7 @@ EXAMPLES
|
|
|
414
416
|
$ qfg audit-log my.flag
|
|
415
417
|
```
|
|
416
418
|
|
|
417
|
-
_See code: [src/commands/audit-log.ts](https://github.com/quonfig/cli/blob/v0.
|
|
419
|
+
_See code: [src/commands/audit-log.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/audit-log.ts)_
|
|
418
420
|
|
|
419
421
|
## `qfg cleanup`
|
|
420
422
|
|
|
@@ -456,7 +458,7 @@ EXAMPLES
|
|
|
456
458
|
$ qfg cleanup status my.flag.key
|
|
457
459
|
```
|
|
458
460
|
|
|
459
|
-
_See code: [src/commands/cleanup.ts](https://github.com/quonfig/cli/blob/v0.
|
|
461
|
+
_See code: [src/commands/cleanup.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/cleanup.ts)_
|
|
460
462
|
|
|
461
463
|
## `qfg cleanup list`
|
|
462
464
|
|
|
@@ -503,7 +505,7 @@ EXAMPLES
|
|
|
503
505
|
$ qfg cleanup list --json
|
|
504
506
|
```
|
|
505
507
|
|
|
506
|
-
_See code: [src/commands/cleanup/list.ts](https://github.com/quonfig/cli/blob/v0.
|
|
508
|
+
_See code: [src/commands/cleanup/list.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/cleanup/list.ts)_
|
|
507
509
|
|
|
508
510
|
## `qfg cleanup remove [NAME]`
|
|
509
511
|
|
|
@@ -550,7 +552,7 @@ EXAMPLES
|
|
|
550
552
|
$ qfg cleanup remove my.flag.key --json
|
|
551
553
|
```
|
|
552
554
|
|
|
553
|
-
_See code: [src/commands/cleanup/remove.ts](https://github.com/quonfig/cli/blob/v0.
|
|
555
|
+
_See code: [src/commands/cleanup/remove.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/cleanup/remove.ts)_
|
|
554
556
|
|
|
555
557
|
## `qfg cleanup status [NAME]`
|
|
556
558
|
|
|
@@ -590,7 +592,7 @@ EXAMPLES
|
|
|
590
592
|
$ qfg cleanup status my.flag.key --json
|
|
591
593
|
```
|
|
592
594
|
|
|
593
|
-
_See code: [src/commands/cleanup/status.ts](https://github.com/quonfig/cli/blob/v0.
|
|
595
|
+
_See code: [src/commands/cleanup/status.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/cleanup/status.ts)_
|
|
594
596
|
|
|
595
597
|
## `qfg cleanup verify [NAME]`
|
|
596
598
|
|
|
@@ -636,7 +638,7 @@ EXAMPLES
|
|
|
636
638
|
$ qfg cleanup verify my.flag.key && qfg delete my.flag.key
|
|
637
639
|
```
|
|
638
640
|
|
|
639
|
-
_See code: [src/commands/cleanup/verify.ts](https://github.com/quonfig/cli/blob/v0.
|
|
641
|
+
_See code: [src/commands/cleanup/verify.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/cleanup/verify.ts)_
|
|
640
642
|
|
|
641
643
|
## `qfg config-schema`
|
|
642
644
|
|
|
@@ -665,7 +667,7 @@ EXAMPLES
|
|
|
665
667
|
$ qfg config-schema --json-schema # full JSON Schema document (copy into your editor)
|
|
666
668
|
```
|
|
667
669
|
|
|
668
|
-
_See code: [src/commands/config-schema.ts](https://github.com/quonfig/cli/blob/v0.
|
|
670
|
+
_See code: [src/commands/config-schema.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/config-schema.ts)_
|
|
669
671
|
|
|
670
672
|
## `qfg contexts`
|
|
671
673
|
|
|
@@ -688,7 +690,7 @@ EXAMPLES
|
|
|
688
690
|
$ qfg contexts search organization formhealth
|
|
689
691
|
```
|
|
690
692
|
|
|
691
|
-
_See code: [src/commands/contexts.ts](https://github.com/quonfig/cli/blob/v0.
|
|
693
|
+
_See code: [src/commands/contexts.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/contexts.ts)_
|
|
692
694
|
|
|
693
695
|
## `qfg contexts search CONTEXTTYPE QUERY`
|
|
694
696
|
|
|
@@ -740,7 +742,7 @@ EXAMPLES
|
|
|
740
742
|
$ qfg contexts search organization formhealth --json
|
|
741
743
|
```
|
|
742
744
|
|
|
743
|
-
_See code: [src/commands/contexts/search.ts](https://github.com/quonfig/cli/blob/v0.
|
|
745
|
+
_See code: [src/commands/contexts/search.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/contexts/search.ts)_
|
|
744
746
|
|
|
745
747
|
## `qfg create NAME`
|
|
746
748
|
|
|
@@ -850,7 +852,7 @@ EXAMPLES
|
|
|
850
852
|
$ qfg set-rollout my.new.flag --environment production --true-percent 20
|
|
851
853
|
```
|
|
852
854
|
|
|
853
|
-
_See code: [src/commands/create.ts](https://github.com/quonfig/cli/blob/v0.
|
|
855
|
+
_See code: [src/commands/create.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/create.ts)_
|
|
854
856
|
|
|
855
857
|
## `qfg delete NAME`
|
|
856
858
|
|
|
@@ -896,7 +898,73 @@ EXAMPLES
|
|
|
896
898
|
$ qfg delete my.config --yes
|
|
897
899
|
```
|
|
898
900
|
|
|
899
|
-
_See code: [src/commands/delete.ts](https://github.com/quonfig/cli/blob/v0.
|
|
901
|
+
_See code: [src/commands/delete.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/delete.ts)_
|
|
902
|
+
|
|
903
|
+
## `qfg environments`
|
|
904
|
+
|
|
905
|
+
List the environments in your workspace.
|
|
906
|
+
|
|
907
|
+
```
|
|
908
|
+
USAGE
|
|
909
|
+
$ qfg environments [--json] [--interactive] [--no-color] [--verbose] [-w <value>]
|
|
910
|
+
|
|
911
|
+
GLOBAL FLAGS
|
|
912
|
+
-w, --workspace=<value> Workspace slug to use (overrides QUONFIG_WORKSPACE env var and saved default)
|
|
913
|
+
--[no-]interactive Force interactive mode
|
|
914
|
+
--json Format output as json.
|
|
915
|
+
--no-color Do not colorize output
|
|
916
|
+
--verbose Verbose output
|
|
917
|
+
|
|
918
|
+
DESCRIPTION
|
|
919
|
+
List the environments in your workspace.
|
|
920
|
+
|
|
921
|
+
Use these names with --environment (set-default, set-rollout, get, run, ...).
|
|
922
|
+
"[Default]" is not an environment: it names the default rules that every
|
|
923
|
+
environment without rules of its own inherits. Protected environments may
|
|
924
|
+
require extra permissions to change.
|
|
925
|
+
|
|
926
|
+
ALIASES
|
|
927
|
+
$ qfg envs
|
|
928
|
+
|
|
929
|
+
EXAMPLES
|
|
930
|
+
$ qfg environments
|
|
931
|
+
|
|
932
|
+
$ qfg environments --json
|
|
933
|
+
```
|
|
934
|
+
|
|
935
|
+
_See code: [src/commands/environments.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/environments.ts)_
|
|
936
|
+
|
|
937
|
+
## `qfg envs`
|
|
938
|
+
|
|
939
|
+
List the environments in your workspace.
|
|
940
|
+
|
|
941
|
+
```
|
|
942
|
+
USAGE
|
|
943
|
+
$ qfg envs [--json] [--interactive] [--no-color] [--verbose] [-w <value>]
|
|
944
|
+
|
|
945
|
+
GLOBAL FLAGS
|
|
946
|
+
-w, --workspace=<value> Workspace slug to use (overrides QUONFIG_WORKSPACE env var and saved default)
|
|
947
|
+
--[no-]interactive Force interactive mode
|
|
948
|
+
--json Format output as json.
|
|
949
|
+
--no-color Do not colorize output
|
|
950
|
+
--verbose Verbose output
|
|
951
|
+
|
|
952
|
+
DESCRIPTION
|
|
953
|
+
List the environments in your workspace.
|
|
954
|
+
|
|
955
|
+
Use these names with --environment (set-default, set-rollout, get, run, ...).
|
|
956
|
+
"[Default]" is not an environment: it names the default rules that every
|
|
957
|
+
environment without rules of its own inherits. Protected environments may
|
|
958
|
+
require extra permissions to change.
|
|
959
|
+
|
|
960
|
+
ALIASES
|
|
961
|
+
$ qfg envs
|
|
962
|
+
|
|
963
|
+
EXAMPLES
|
|
964
|
+
$ qfg envs
|
|
965
|
+
|
|
966
|
+
$ qfg envs --json
|
|
967
|
+
```
|
|
900
968
|
|
|
901
969
|
## `qfg flag info [NAME]`
|
|
902
970
|
|
|
@@ -1100,7 +1168,7 @@ EXAMPLES
|
|
|
1100
1168
|
$ qfg generate --targets node-ts -o ./dist # combine with targets
|
|
1101
1169
|
```
|
|
1102
1170
|
|
|
1103
|
-
_See code: [src/commands/generate.ts](https://github.com/quonfig/cli/blob/v0.
|
|
1171
|
+
_See code: [src/commands/generate.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/generate.ts)_
|
|
1104
1172
|
|
|
1105
1173
|
## `qfg generate-new-hex-key`
|
|
1106
1174
|
|
|
@@ -1123,7 +1191,7 @@ EXAMPLES
|
|
|
1123
1191
|
$ qfg generate-new-hex-key
|
|
1124
1192
|
```
|
|
1125
1193
|
|
|
1126
|
-
_See code: [src/commands/generate-new-hex-key.ts](https://github.com/quonfig/cli/blob/v0.
|
|
1194
|
+
_See code: [src/commands/generate-new-hex-key.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/generate-new-hex-key.ts)_
|
|
1127
1195
|
|
|
1128
1196
|
## `qfg get [NAME]`
|
|
1129
1197
|
|
|
@@ -1168,7 +1236,7 @@ EXAMPLES
|
|
|
1168
1236
|
$ qfg get stripe.api-key --environment=production --reveal # plaintext
|
|
1169
1237
|
```
|
|
1170
1238
|
|
|
1171
|
-
_See code: [src/commands/get.ts](https://github.com/quonfig/cli/blob/v0.
|
|
1239
|
+
_See code: [src/commands/get.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/get.ts)_
|
|
1172
1240
|
|
|
1173
1241
|
## `qfg history NAME`
|
|
1174
1242
|
|
|
@@ -1194,7 +1262,7 @@ EXAMPLES
|
|
|
1194
1262
|
$ qfg history my.flag
|
|
1195
1263
|
```
|
|
1196
1264
|
|
|
1197
|
-
_See code: [src/commands/history.ts](https://github.com/quonfig/cli/blob/v0.
|
|
1265
|
+
_See code: [src/commands/history.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/history.ts)_
|
|
1198
1266
|
|
|
1199
1267
|
## `qfg info [NAME]`
|
|
1200
1268
|
|
|
@@ -1242,7 +1310,7 @@ EXAMPLES
|
|
|
1242
1310
|
$ qfg info my.config.name --exclude-evaluations # skip 24h stats
|
|
1243
1311
|
```
|
|
1244
1312
|
|
|
1245
|
-
_See code: [src/commands/info.ts](https://github.com/quonfig/cli/blob/v0.
|
|
1313
|
+
_See code: [src/commands/info.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/info.ts)_
|
|
1246
1314
|
|
|
1247
1315
|
## `qfg init [DIRECTORY]`
|
|
1248
1316
|
|
|
@@ -1282,7 +1350,7 @@ EXAMPLES
|
|
|
1282
1350
|
$ qfg init --dry-run
|
|
1283
1351
|
```
|
|
1284
1352
|
|
|
1285
|
-
_See code: [src/commands/init.ts](https://github.com/quonfig/cli/blob/v0.
|
|
1353
|
+
_See code: [src/commands/init.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/init.ts)_
|
|
1286
1354
|
|
|
1287
1355
|
## `qfg interactive`
|
|
1288
1356
|
|
|
@@ -1312,7 +1380,7 @@ EXAMPLES
|
|
|
1312
1380
|
$ qfg
|
|
1313
1381
|
```
|
|
1314
1382
|
|
|
1315
|
-
_See code: [src/commands/interactive.ts](https://github.com/quonfig/cli/blob/v0.
|
|
1383
|
+
_See code: [src/commands/interactive.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/interactive.ts)_
|
|
1316
1384
|
|
|
1317
1385
|
## `qfg list`
|
|
1318
1386
|
|
|
@@ -1352,7 +1420,7 @@ EXAMPLES
|
|
|
1352
1420
|
$ qfg list --feature-flags
|
|
1353
1421
|
```
|
|
1354
1422
|
|
|
1355
|
-
_See code: [src/commands/list.ts](https://github.com/quonfig/cli/blob/v0.
|
|
1423
|
+
_See code: [src/commands/list.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/list.ts)_
|
|
1356
1424
|
|
|
1357
1425
|
## `qfg log`
|
|
1358
1426
|
|
|
@@ -1377,7 +1445,7 @@ EXAMPLES
|
|
|
1377
1445
|
$ qfg log --limit 5
|
|
1378
1446
|
```
|
|
1379
1447
|
|
|
1380
|
-
_See code: [src/commands/log.ts](https://github.com/quonfig/cli/blob/v0.
|
|
1448
|
+
_See code: [src/commands/log.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/log.ts)_
|
|
1381
1449
|
|
|
1382
1450
|
## `qfg log-level NAME`
|
|
1383
1451
|
|
|
@@ -1442,7 +1510,7 @@ EXAMPLES
|
|
|
1442
1510
|
$ qfg log-level log-level.my-app --target=Chatty --value=INFO --environment=production
|
|
1443
1511
|
```
|
|
1444
1512
|
|
|
1445
|
-
_See code: [src/commands/log-level.ts](https://github.com/quonfig/cli/blob/v0.
|
|
1513
|
+
_See code: [src/commands/log-level.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/log-level.ts)_
|
|
1446
1514
|
|
|
1447
1515
|
## `qfg login`
|
|
1448
1516
|
|
|
@@ -1467,7 +1535,7 @@ EXAMPLES
|
|
|
1467
1535
|
$ qfg login --profile myprofile
|
|
1468
1536
|
```
|
|
1469
1537
|
|
|
1470
|
-
_See code: [src/commands/login.ts](https://github.com/quonfig/cli/blob/v0.
|
|
1538
|
+
_See code: [src/commands/login.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/login.ts)_
|
|
1471
1539
|
|
|
1472
1540
|
## `qfg logout`
|
|
1473
1541
|
|
|
@@ -1490,7 +1558,7 @@ EXAMPLES
|
|
|
1490
1558
|
$ qfg logout
|
|
1491
1559
|
```
|
|
1492
1560
|
|
|
1493
|
-
_See code: [src/commands/logout.ts](https://github.com/quonfig/cli/blob/v0.
|
|
1561
|
+
_See code: [src/commands/logout.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/logout.ts)_
|
|
1494
1562
|
|
|
1495
1563
|
## `qfg migrate`
|
|
1496
1564
|
|
|
@@ -1555,7 +1623,7 @@ EXAMPLES
|
|
|
1555
1623
|
$ qfg migrate --from launch --source-api-key $LAUNCH_API_KEY --dir ./quonfig-repo --staging
|
|
1556
1624
|
```
|
|
1557
1625
|
|
|
1558
|
-
_See code: [src/commands/migrate.ts](https://github.com/quonfig/cli/blob/v0.
|
|
1626
|
+
_See code: [src/commands/migrate.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/migrate.ts)_
|
|
1559
1627
|
|
|
1560
1628
|
## `qfg migrate doctor`
|
|
1561
1629
|
|
|
@@ -1593,7 +1661,7 @@ EXAMPLES
|
|
|
1593
1661
|
$ qfg migrate doctor --json
|
|
1594
1662
|
```
|
|
1595
1663
|
|
|
1596
|
-
_See code: [src/commands/migrate/doctor.ts](https://github.com/quonfig/cli/blob/v0.
|
|
1664
|
+
_See code: [src/commands/migrate/doctor.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/migrate/doctor.ts)_
|
|
1597
1665
|
|
|
1598
1666
|
## `qfg migrate my-code`
|
|
1599
1667
|
|
|
@@ -1625,7 +1693,7 @@ EXAMPLES
|
|
|
1625
1693
|
$ qfg migrate my-code --dry-run
|
|
1626
1694
|
```
|
|
1627
1695
|
|
|
1628
|
-
_See code: [src/commands/migrate/my-code.ts](https://github.com/quonfig/cli/blob/v0.
|
|
1696
|
+
_See code: [src/commands/migrate/my-code.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/migrate/my-code.ts)_
|
|
1629
1697
|
|
|
1630
1698
|
## `qfg migrate status`
|
|
1631
1699
|
|
|
@@ -1656,7 +1724,7 @@ EXAMPLES
|
|
|
1656
1724
|
$ qfg migrate status --json
|
|
1657
1725
|
```
|
|
1658
1726
|
|
|
1659
|
-
_See code: [src/commands/migrate/status.ts](https://github.com/quonfig/cli/blob/v0.
|
|
1727
|
+
_See code: [src/commands/migrate/status.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/migrate/status.ts)_
|
|
1660
1728
|
|
|
1661
1729
|
## `qfg override [NAME] [VALUE]`
|
|
1662
1730
|
|
|
@@ -1711,7 +1779,7 @@ EXAMPLES
|
|
|
1711
1779
|
$ qfg override my.flag true --env=staging
|
|
1712
1780
|
```
|
|
1713
1781
|
|
|
1714
|
-
_See code: [src/commands/override.ts](https://github.com/quonfig/cli/blob/v0.
|
|
1782
|
+
_See code: [src/commands/override.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/override.ts)_
|
|
1715
1783
|
|
|
1716
1784
|
## `qfg pull`
|
|
1717
1785
|
|
|
@@ -1758,7 +1826,7 @@ EXAMPLES
|
|
|
1758
1826
|
$ qfg pull # uses QUONFIG_DIR env var
|
|
1759
1827
|
```
|
|
1760
1828
|
|
|
1761
|
-
_See code: [src/commands/pull.ts](https://github.com/quonfig/cli/blob/v0.
|
|
1829
|
+
_See code: [src/commands/pull.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/pull.ts)_
|
|
1762
1830
|
|
|
1763
1831
|
## `qfg push`
|
|
1764
1832
|
|
|
@@ -1807,7 +1875,7 @@ EXAMPLES
|
|
|
1807
1875
|
$ qfg push --dir ./our-config --yes
|
|
1808
1876
|
```
|
|
1809
1877
|
|
|
1810
|
-
_See code: [src/commands/push.ts](https://github.com/quonfig/cli/blob/v0.
|
|
1878
|
+
_See code: [src/commands/push.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/push.ts)_
|
|
1811
1879
|
|
|
1812
1880
|
## `qfg run [COMMAND]`
|
|
1813
1881
|
|
|
@@ -1858,7 +1926,7 @@ EXAMPLES
|
|
|
1858
1926
|
$ qfg run --env DATABASE_URL=db.url --preserve-env --environment=staging -- npm test
|
|
1859
1927
|
```
|
|
1860
1928
|
|
|
1861
|
-
_See code: [src/commands/run.ts](https://github.com/quonfig/cli/blob/v0.
|
|
1929
|
+
_See code: [src/commands/run.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/run.ts)_
|
|
1862
1930
|
|
|
1863
1931
|
## `qfg schema NAME`
|
|
1864
1932
|
|
|
@@ -1896,7 +1964,7 @@ EXAMPLES
|
|
|
1896
1964
|
$ qfg schema my-schema --set-json-schema=@schemas/my-schema.json --protected
|
|
1897
1965
|
```
|
|
1898
1966
|
|
|
1899
|
-
_See code: [src/commands/schema.ts](https://github.com/quonfig/cli/blob/v0.
|
|
1967
|
+
_See code: [src/commands/schema.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/schema.ts)_
|
|
1900
1968
|
|
|
1901
1969
|
## `qfg sdk-key`
|
|
1902
1970
|
|
|
@@ -1923,7 +1991,7 @@ EXAMPLES
|
|
|
1923
1991
|
$ qfg sdk-key revoke <key-id>
|
|
1924
1992
|
```
|
|
1925
1993
|
|
|
1926
|
-
_See code: [src/commands/sdk-key.ts](https://github.com/quonfig/cli/blob/v0.
|
|
1994
|
+
_See code: [src/commands/sdk-key.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/sdk-key.ts)_
|
|
1927
1995
|
|
|
1928
1996
|
## `qfg sdk-key create`
|
|
1929
1997
|
|
|
@@ -1955,7 +2023,7 @@ EXAMPLES
|
|
|
1955
2023
|
$ qfg sdk-key create --environment staging --type browser
|
|
1956
2024
|
```
|
|
1957
2025
|
|
|
1958
|
-
_See code: [src/commands/sdk-key/create.ts](https://github.com/quonfig/cli/blob/v0.
|
|
2026
|
+
_See code: [src/commands/sdk-key/create.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/sdk-key/create.ts)_
|
|
1959
2027
|
|
|
1960
2028
|
## `qfg sdk-key list`
|
|
1961
2029
|
|
|
@@ -1984,7 +2052,7 @@ EXAMPLES
|
|
|
1984
2052
|
$ qfg sdk-key list --environment production
|
|
1985
2053
|
```
|
|
1986
2054
|
|
|
1987
|
-
_See code: [src/commands/sdk-key/list.ts](https://github.com/quonfig/cli/blob/v0.
|
|
2055
|
+
_See code: [src/commands/sdk-key/list.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/sdk-key/list.ts)_
|
|
1988
2056
|
|
|
1989
2057
|
## `qfg sdk-key revoke KEYID`
|
|
1990
2058
|
|
|
@@ -2011,7 +2079,7 @@ EXAMPLES
|
|
|
2011
2079
|
$ qfg sdk-key revoke a1b2c3d4-e5f6-7890-abcd-ef1234567890
|
|
2012
2080
|
```
|
|
2013
2081
|
|
|
2014
|
-
_See code: [src/commands/sdk-key/revoke.ts](https://github.com/quonfig/cli/blob/v0.
|
|
2082
|
+
_See code: [src/commands/sdk-key/revoke.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/sdk-key/revoke.ts)_
|
|
2015
2083
|
|
|
2016
2084
|
## `qfg serve`
|
|
2017
2085
|
|
|
@@ -2069,7 +2137,7 @@ EXAMPLES
|
|
|
2069
2137
|
$ qfg serve --port 6581 --frontend-sdk-key PUBLIC_KEY
|
|
2070
2138
|
```
|
|
2071
2139
|
|
|
2072
|
-
_See code: [src/commands/serve.ts](https://github.com/quonfig/cli/blob/v0.
|
|
2140
|
+
_See code: [src/commands/serve.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/serve.ts)_
|
|
2073
2141
|
|
|
2074
2142
|
## `qfg set-default [NAME]`
|
|
2075
2143
|
|
|
@@ -2085,7 +2153,8 @@ ARGUMENTS
|
|
|
2085
2153
|
NAME config/feature-flag/etc. name
|
|
2086
2154
|
|
|
2087
2155
|
FLAGS
|
|
2088
|
-
--confidential
|
|
2156
|
+
--[no-]confidential mark the value as confidential. Auto-detected when the key already holds a confidential
|
|
2157
|
+
value; pass --no-confidential to store it in the clear
|
|
2089
2158
|
--confirm confirm without prompt
|
|
2090
2159
|
--env-var=<value> store no value: the SDK reads it from this env var at RUNTIME. To read a value from a local
|
|
2091
2160
|
env var NOW, use --value-from-env
|
|
@@ -2172,7 +2241,7 @@ EXAMPLES
|
|
|
2172
2241
|
$ qfg pull && qfg config-schema
|
|
2173
2242
|
```
|
|
2174
2243
|
|
|
2175
|
-
_See code: [src/commands/set-default.ts](https://github.com/quonfig/cli/blob/v0.
|
|
2244
|
+
_See code: [src/commands/set-default.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/set-default.ts)_
|
|
2176
2245
|
|
|
2177
2246
|
## `qfg set-rollout [NAME]`
|
|
2178
2247
|
|
|
@@ -2263,7 +2332,7 @@ EXAMPLES
|
|
|
2263
2332
|
$ qfg set-rollout my.variant.flag --environment production --weights "a:33,b:33,c:34" --hash-by user.id
|
|
2264
2333
|
```
|
|
2265
2334
|
|
|
2266
|
-
_See code: [src/commands/set-rollout.ts](https://github.com/quonfig/cli/blob/v0.
|
|
2335
|
+
_See code: [src/commands/set-rollout.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/set-rollout.ts)_
|
|
2267
2336
|
|
|
2268
2337
|
## `qfg sync`
|
|
2269
2338
|
|
|
@@ -2295,7 +2364,7 @@ EXAMPLES
|
|
|
2295
2364
|
$ qfg sync --watch --dir ./our-config --interval 30
|
|
2296
2365
|
```
|
|
2297
2366
|
|
|
2298
|
-
_See code: [src/commands/sync.ts](https://github.com/quonfig/cli/blob/v0.
|
|
2367
|
+
_See code: [src/commands/sync.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/sync.ts)_
|
|
2299
2368
|
|
|
2300
2369
|
## `qfg toggle [NAME]`
|
|
2301
2370
|
|
|
@@ -2311,7 +2380,8 @@ ARGUMENTS
|
|
|
2311
2380
|
NAME config/feature-flag/etc. name
|
|
2312
2381
|
|
|
2313
2382
|
FLAGS
|
|
2314
|
-
--confidential
|
|
2383
|
+
--[no-]confidential mark the value as confidential. Auto-detected when the key already holds a confidential
|
|
2384
|
+
value; pass --no-confidential to store it in the clear
|
|
2315
2385
|
--confirm confirm without prompt
|
|
2316
2386
|
--env-var=<value> store no value: the SDK reads it from this env var at RUNTIME. To read a value from a local
|
|
2317
2387
|
env var NOW, use --value-from-env
|
|
@@ -2429,7 +2499,7 @@ EXAMPLES
|
|
|
2429
2499
|
$ qfg verify --json
|
|
2430
2500
|
```
|
|
2431
2501
|
|
|
2432
|
-
_See code: [src/commands/verify.ts](https://github.com/quonfig/cli/blob/v0.
|
|
2502
|
+
_See code: [src/commands/verify.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/verify.ts)_
|
|
2433
2503
|
|
|
2434
2504
|
## `qfg whoami`
|
|
2435
2505
|
|
|
@@ -2452,7 +2522,7 @@ EXAMPLES
|
|
|
2452
2522
|
$ qfg whoami
|
|
2453
2523
|
```
|
|
2454
2524
|
|
|
2455
|
-
_See code: [src/commands/whoami.ts](https://github.com/quonfig/cli/blob/v0.
|
|
2525
|
+
_See code: [src/commands/whoami.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/whoami.ts)_
|
|
2456
2526
|
|
|
2457
2527
|
## `qfg workspace`
|
|
2458
2528
|
|
|
@@ -2475,7 +2545,7 @@ EXAMPLES
|
|
|
2475
2545
|
$ qfg workspace
|
|
2476
2546
|
```
|
|
2477
2547
|
|
|
2478
|
-
_See code: [src/commands/workspace.ts](https://github.com/quonfig/cli/blob/v0.
|
|
2548
|
+
_See code: [src/commands/workspace.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/workspace.ts)_
|
|
2479
2549
|
|
|
2480
2550
|
## `qfg workspace bootstrap`
|
|
2481
2551
|
|
|
@@ -2508,7 +2578,7 @@ EXAMPLES
|
|
|
2508
2578
|
$ qfg workspace bootstrap --dir ./our-config --skip-validate
|
|
2509
2579
|
```
|
|
2510
2580
|
|
|
2511
|
-
_See code: [src/commands/workspace/bootstrap.ts](https://github.com/quonfig/cli/blob/v0.
|
|
2581
|
+
_See code: [src/commands/workspace/bootstrap.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/workspace/bootstrap.ts)_
|
|
2512
2582
|
|
|
2513
2583
|
## `qfg workspace create SLUG`
|
|
2514
2584
|
|
|
@@ -2542,7 +2612,7 @@ EXAMPLES
|
|
|
2542
2612
|
$ qfg workspace create my-team --org 11111111-1111-1111-1111-111111111111
|
|
2543
2613
|
```
|
|
2544
2614
|
|
|
2545
|
-
_See code: [src/commands/workspace/create.ts](https://github.com/quonfig/cli/blob/v0.
|
|
2615
|
+
_See code: [src/commands/workspace/create.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/workspace/create.ts)_
|
|
2546
2616
|
|
|
2547
2617
|
## `qfg workspace switch [SLUG]`
|
|
2548
2618
|
|
|
@@ -2570,7 +2640,7 @@ EXAMPLES
|
|
|
2570
2640
|
$ qfg workspace switch acme/production
|
|
2571
2641
|
```
|
|
2572
2642
|
|
|
2573
|
-
_See code: [src/commands/workspace/switch.ts](https://github.com/quonfig/cli/blob/v0.
|
|
2643
|
+
_See code: [src/commands/workspace/switch.ts](https://github.com/quonfig/cli/blob/v0.6.0/src/commands/workspace/switch.ts)_
|
|
2574
2644
|
<!-- commandsstop -->
|
|
2575
2645
|
|
|
2576
2646
|
## Local Development
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { JsonObj } from '../result.js';
|
|
2
|
+
import { APICommand } from '../index.js';
|
|
3
|
+
export default class Environments extends APICommand {
|
|
4
|
+
static aliases: string[];
|
|
5
|
+
static description: string;
|
|
6
|
+
static examples: string[];
|
|
7
|
+
run(): Promise<JsonObj | void>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { getEnvironments } from '../api/get-environments.js';
|
|
2
|
+
import { APICommand } from '../index.js';
|
|
3
|
+
export default class Environments extends APICommand {
|
|
4
|
+
static aliases = ['envs'];
|
|
5
|
+
static description = `List the environments in your workspace.
|
|
6
|
+
|
|
7
|
+
Use these names with --environment (set-default, set-rollout, get, run, ...).
|
|
8
|
+
"[Default]" is not an environment: it names the default rules that every
|
|
9
|
+
environment without rules of its own inherits. Protected environments may
|
|
10
|
+
require extra permissions to change.`;
|
|
11
|
+
static examples = ['<%= config.bin %> <%= command.id %>', '<%= config.bin %> <%= command.id %> --json'];
|
|
12
|
+
async run() {
|
|
13
|
+
await this.parse(Environments);
|
|
14
|
+
// getEnvironments drops deleted environments and sorts by name.
|
|
15
|
+
const environments = (await getEnvironments(this)).map((env) => ({
|
|
16
|
+
id: env.id,
|
|
17
|
+
name: env.name,
|
|
18
|
+
protected: env.protected === true,
|
|
19
|
+
}));
|
|
20
|
+
if (environments.length === 0) {
|
|
21
|
+
this.log('No environments found.');
|
|
22
|
+
return { environments };
|
|
23
|
+
}
|
|
24
|
+
const width = Math.max(...environments.map((env) => env.name.length));
|
|
25
|
+
for (const env of environments) {
|
|
26
|
+
this.log(env.protected ? `${env.name.padEnd(width)} protected` : env.name);
|
|
27
|
+
}
|
|
28
|
+
this.log('');
|
|
29
|
+
this.log('Pass one of these to --environment, or "[Default]" for the inherited default rules.');
|
|
30
|
+
return { environments };
|
|
31
|
+
}
|
|
32
|
+
}
|
package/dist/commands/info.d.ts
CHANGED