@quonfig/cli 0.0.17 → 0.0.18

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
@@ -14,7 +14,7 @@ $ npm install -g @quonfig/cli
14
14
  $ qfg COMMAND
15
15
  running command...
16
16
  $ qfg (--version)
17
- @quonfig/cli/0.0.17 linux-x64 node-v24.4.1
17
+ @quonfig/cli/0.0.18 linux-x64 node-v24.4.1
18
18
  $ qfg --help [COMMAND]
19
19
  USAGE
20
20
  $ qfg COMMAND
@@ -89,7 +89,7 @@ EXAMPLES
89
89
  $ qfg config-schema --json-schema # full JSON Schema document (copy into your editor)
90
90
  ```
91
91
 
92
- _See code: [src/commands/config-schema.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/config-schema.ts)_
92
+ _See code: [src/commands/config-schema.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/config-schema.ts)_
93
93
 
94
94
  ## `qfg create NAME`
95
95
 
@@ -161,7 +161,7 @@ EXAMPLES
161
161
  $ qfg set-rollout my.new.flag --environment production --true-percent 20
162
162
  ```
163
163
 
164
- _See code: [src/commands/create.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/create.ts)_
164
+ _See code: [src/commands/create.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/create.ts)_
165
165
 
166
166
  ## `qfg flag info [NAME]`
167
167
 
@@ -361,7 +361,7 @@ EXAMPLES
361
361
  $ qfg generate --targets node-ts -o ./dist # combine with targets
362
362
  ```
363
363
 
364
- _See code: [src/commands/generate.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/generate.ts)_
364
+ _See code: [src/commands/generate.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/generate.ts)_
365
365
 
366
366
  ## `qfg generate-new-hex-key`
367
367
 
@@ -384,7 +384,7 @@ EXAMPLES
384
384
  $ qfg generate-new-hex-key
385
385
  ```
386
386
 
387
- _See code: [src/commands/generate-new-hex-key.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/generate-new-hex-key.ts)_
387
+ _See code: [src/commands/generate-new-hex-key.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/generate-new-hex-key.ts)_
388
388
 
389
389
  ## `qfg get [NAME]`
390
390
 
@@ -416,7 +416,7 @@ EXAMPLES
416
416
  $ qfg get my.config.name --environment=production
417
417
  ```
418
418
 
419
- _See code: [src/commands/get.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/get.ts)_
419
+ _See code: [src/commands/get.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/get.ts)_
420
420
 
421
421
  ## `qfg info [NAME]`
422
422
 
@@ -464,7 +464,7 @@ EXAMPLES
464
464
  $ qfg info my.config.name --exclude-evaluations # skip 24h stats
465
465
  ```
466
466
 
467
- _See code: [src/commands/info.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/info.ts)_
467
+ _See code: [src/commands/info.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/info.ts)_
468
468
 
469
469
  ## `qfg init [DIRECTORY]`
470
470
 
@@ -504,7 +504,7 @@ EXAMPLES
504
504
  $ qfg init --dry-run
505
505
  ```
506
506
 
507
- _See code: [src/commands/init.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/init.ts)_
507
+ _See code: [src/commands/init.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/init.ts)_
508
508
 
509
509
  ## `qfg interactive`
510
510
 
@@ -534,7 +534,7 @@ EXAMPLES
534
534
  $ qfg
535
535
  ```
536
536
 
537
- _See code: [src/commands/interactive.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/interactive.ts)_
537
+ _See code: [src/commands/interactive.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/interactive.ts)_
538
538
 
539
539
  ## `qfg list`
540
540
 
@@ -574,7 +574,7 @@ EXAMPLES
574
574
  $ qfg list --feature-flags
575
575
  ```
576
576
 
577
- _See code: [src/commands/list.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/list.ts)_
577
+ _See code: [src/commands/list.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/list.ts)_
578
578
 
579
579
  ## `qfg login`
580
580
 
@@ -599,7 +599,7 @@ EXAMPLES
599
599
  $ qfg login --profile myprofile
600
600
  ```
601
601
 
602
- _See code: [src/commands/login.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/login.ts)_
602
+ _See code: [src/commands/login.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/login.ts)_
603
603
 
604
604
  ## `qfg logout`
605
605
 
@@ -622,7 +622,7 @@ EXAMPLES
622
622
  $ qfg logout
623
623
  ```
624
624
 
625
- _See code: [src/commands/logout.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/logout.ts)_
625
+ _See code: [src/commands/logout.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/logout.ts)_
626
626
 
627
627
  ## `qfg mcp`
628
628
 
@@ -655,7 +655,7 @@ EXAMPLES
655
655
  $ qfg mcp --url http://local-app.quonfig-staging.com:3003/api/v1/mcp
656
656
  ```
657
657
 
658
- _See code: [src/commands/mcp.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/mcp.ts)_
658
+ _See code: [src/commands/mcp.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/mcp.ts)_
659
659
 
660
660
  ## `qfg migrate`
661
661
 
@@ -709,7 +709,7 @@ EXAMPLES
709
709
  $ qfg migrate --from launch --api-key $LAUNCH_API_KEY --dir ./quonfig-config --staging
710
710
  ```
711
711
 
712
- _See code: [src/commands/migrate.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/migrate.ts)_
712
+ _See code: [src/commands/migrate.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/migrate.ts)_
713
713
 
714
714
  ## `qfg migrate doctor`
715
715
 
@@ -747,7 +747,7 @@ EXAMPLES
747
747
  $ qfg migrate doctor --json
748
748
  ```
749
749
 
750
- _See code: [src/commands/migrate/doctor.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/migrate/doctor.ts)_
750
+ _See code: [src/commands/migrate/doctor.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/migrate/doctor.ts)_
751
751
 
752
752
  ## `qfg migrate my-code`
753
753
 
@@ -779,7 +779,7 @@ EXAMPLES
779
779
  $ qfg migrate my-code --dry-run
780
780
  ```
781
781
 
782
- _See code: [src/commands/migrate/my-code.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/migrate/my-code.ts)_
782
+ _See code: [src/commands/migrate/my-code.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/migrate/my-code.ts)_
783
783
 
784
784
  ## `qfg migrate status`
785
785
 
@@ -810,7 +810,7 @@ EXAMPLES
810
810
  $ qfg migrate status --json
811
811
  ```
812
812
 
813
- _See code: [src/commands/migrate/status.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/migrate/status.ts)_
813
+ _See code: [src/commands/migrate/status.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/migrate/status.ts)_
814
814
 
815
815
  ## `qfg override [NAME]`
816
816
 
@@ -854,7 +854,7 @@ EXAMPLES
854
854
  $ qfg override my.double.config --value=3.14159
855
855
  ```
856
856
 
857
- _See code: [src/commands/override.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/override.ts)_
857
+ _See code: [src/commands/override.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/override.ts)_
858
858
 
859
859
  ## `qfg pull`
860
860
 
@@ -898,7 +898,7 @@ EXAMPLES
898
898
  $ qfg pull # uses QUONFIG_DIR env var
899
899
  ```
900
900
 
901
- _See code: [src/commands/pull.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/pull.ts)_
901
+ _See code: [src/commands/pull.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/pull.ts)_
902
902
 
903
903
  ## `qfg push`
904
904
 
@@ -946,7 +946,7 @@ EXAMPLES
946
946
  $ qfg push --dir ./our-config --yes
947
947
  ```
948
948
 
949
- _See code: [src/commands/push.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/push.ts)_
949
+ _See code: [src/commands/push.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/push.ts)_
950
950
 
951
951
  ## `qfg schema NAME`
952
952
 
@@ -984,7 +984,7 @@ EXAMPLES
984
984
  $ qfg schema my-schema --set-json-schema=@schemas/my-schema.json --protected
985
985
  ```
986
986
 
987
- _See code: [src/commands/schema.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/schema.ts)_
987
+ _See code: [src/commands/schema.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/schema.ts)_
988
988
 
989
989
  ## `qfg sdk-key`
990
990
 
@@ -1011,7 +1011,7 @@ EXAMPLES
1011
1011
  $ qfg sdk-key revoke <key-id>
1012
1012
  ```
1013
1013
 
1014
- _See code: [src/commands/sdk-key.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/sdk-key.ts)_
1014
+ _See code: [src/commands/sdk-key.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/sdk-key.ts)_
1015
1015
 
1016
1016
  ## `qfg sdk-key create`
1017
1017
 
@@ -1043,7 +1043,7 @@ EXAMPLES
1043
1043
  $ qfg sdk-key create --environment staging --type browser
1044
1044
  ```
1045
1045
 
1046
- _See code: [src/commands/sdk-key/create.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/sdk-key/create.ts)_
1046
+ _See code: [src/commands/sdk-key/create.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/sdk-key/create.ts)_
1047
1047
 
1048
1048
  ## `qfg sdk-key list`
1049
1049
 
@@ -1072,7 +1072,7 @@ EXAMPLES
1072
1072
  $ qfg sdk-key list --environment production
1073
1073
  ```
1074
1074
 
1075
- _See code: [src/commands/sdk-key/list.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/sdk-key/list.ts)_
1075
+ _See code: [src/commands/sdk-key/list.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/sdk-key/list.ts)_
1076
1076
 
1077
1077
  ## `qfg sdk-key revoke KEYID`
1078
1078
 
@@ -1099,7 +1099,7 @@ EXAMPLES
1099
1099
  $ qfg sdk-key revoke a1b2c3d4-e5f6-7890-abcd-ef1234567890
1100
1100
  ```
1101
1101
 
1102
- _See code: [src/commands/sdk-key/revoke.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/sdk-key/revoke.ts)_
1102
+ _See code: [src/commands/sdk-key/revoke.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/sdk-key/revoke.ts)_
1103
1103
 
1104
1104
  ## `qfg set-default [NAME]`
1105
1105
 
@@ -1170,7 +1170,7 @@ EXAMPLES
1170
1170
  $ qfg pull && qfg config-schema
1171
1171
  ```
1172
1172
 
1173
- _See code: [src/commands/set-default.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/set-default.ts)_
1173
+ _See code: [src/commands/set-default.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/set-default.ts)_
1174
1174
 
1175
1175
  ## `qfg set-rollout [NAME]`
1176
1176
 
@@ -1247,7 +1247,7 @@ EXAMPLES
1247
1247
  $ qfg set-rollout my.variant.flag --environment production --weights "a:33,b:33,c:34" --hash-by user.id
1248
1248
  ```
1249
1249
 
1250
- _See code: [src/commands/set-rollout.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/set-rollout.ts)_
1250
+ _See code: [src/commands/set-rollout.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/set-rollout.ts)_
1251
1251
 
1252
1252
  ## `qfg sync`
1253
1253
 
@@ -1279,7 +1279,7 @@ EXAMPLES
1279
1279
  $ qfg sync --watch --dir ./our-config --interval 30
1280
1280
  ```
1281
1281
 
1282
- _See code: [src/commands/sync.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/sync.ts)_
1282
+ _See code: [src/commands/sync.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/sync.ts)_
1283
1283
 
1284
1284
  ## `qfg toggle [NAME]`
1285
1285
 
@@ -1381,7 +1381,7 @@ EXAMPLES
1381
1381
  $ qfg verify --json
1382
1382
  ```
1383
1383
 
1384
- _See code: [src/commands/verify.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/verify.ts)_
1384
+ _See code: [src/commands/verify.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/verify.ts)_
1385
1385
 
1386
1386
  ## `qfg whoami`
1387
1387
 
@@ -1404,7 +1404,7 @@ EXAMPLES
1404
1404
  $ qfg whoami
1405
1405
  ```
1406
1406
 
1407
- _See code: [src/commands/whoami.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/whoami.ts)_
1407
+ _See code: [src/commands/whoami.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/whoami.ts)_
1408
1408
 
1409
1409
  ## `qfg workspace`
1410
1410
 
@@ -1427,7 +1427,7 @@ EXAMPLES
1427
1427
  $ qfg workspace
1428
1428
  ```
1429
1429
 
1430
- _See code: [src/commands/workspace.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/workspace.ts)_
1430
+ _See code: [src/commands/workspace.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/workspace.ts)_
1431
1431
 
1432
1432
  ## `qfg workspace bootstrap`
1433
1433
 
@@ -1460,7 +1460,7 @@ EXAMPLES
1460
1460
  $ qfg workspace bootstrap --dir ./our-config --skip-validate
1461
1461
  ```
1462
1462
 
1463
- _See code: [src/commands/workspace/bootstrap.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/workspace/bootstrap.ts)_
1463
+ _See code: [src/commands/workspace/bootstrap.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/workspace/bootstrap.ts)_
1464
1464
 
1465
1465
  ## `qfg workspace switch [SLUG]`
1466
1466
 
@@ -1488,7 +1488,7 @@ EXAMPLES
1488
1488
  $ qfg workspace switch my-workspace-slug
1489
1489
  ```
1490
1490
 
1491
- _See code: [src/commands/workspace/switch.ts](https://github.com/quonfig/cli/blob/v0.0.17/src/commands/workspace/switch.ts)_
1491
+ _See code: [src/commands/workspace/switch.ts](https://github.com/quonfig/cli/blob/v0.0.18/src/commands/workspace/switch.ts)_
1492
1492
  <!-- commandsstop -->
1493
1493
 
1494
1494
  ## Local Development
@@ -8,7 +8,11 @@ const getTokenFile = (options) => {
8
8
  const filename = domain === 'quonfig.com' ? 'tokens.json' : `tokens-${domain.replaceAll('.', '-')}.json`;
9
9
  return path.join(getQuonfigDir(options), filename);
10
10
  };
11
- const getConfigFile = (options) => path.join(getQuonfigDir(options), 'config');
11
+ const getConfigFile = (options) => {
12
+ const domain = getDomain();
13
+ const filename = domain === 'quonfig.com' ? 'config' : `config-${domain.replaceAll('.', '-')}`;
14
+ return path.join(getQuonfigDir(options), filename);
15
+ };
12
16
  /**
13
17
  * Find a workspace ID by slug across all saved profiles.
14
18
  * Used to resolve QUONFIG_WORKSPACE and --workspace flag values.
@@ -2689,5 +2689,5 @@
2689
2689
  ]
2690
2690
  }
2691
2691
  },
2692
- "version": "0.0.17"
2692
+ "version": "0.0.18"
2693
2693
  }
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.17",
4
+ "version": "0.0.18",
5
5
  "bugs": {
6
6
  "url": "https://github.com/quonfig/cli/issues"
7
7
  },