@quonfig/cli 0.0.50 → 0.0.52

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.
@@ -499,7 +499,7 @@
499
499
  "type": "boolean"
500
500
  },
501
501
  "dir": {
502
- "description": "Path to local QUONFIG_DIR (defaults to QUONFIG_DIR env var). When omitted, fetches the workspace from the server using your active credentials.",
502
+ "description": "Path to local QUONFIG_DIR (defaults to QUONFIG_DIR env var). When omitted, auto-detects a quonfig.json in the current directory; if none, fetches the workspace from the server.",
503
503
  "env": "QUONFIG_DIR",
504
504
  "name": "dir",
505
505
  "hasDynamicHelp": false,
@@ -1390,10 +1390,8 @@
1390
1390
  "type": "boolean"
1391
1391
  },
1392
1392
  "project": {
1393
- "description": "LaunchDarkly project key to migrate from (or set LAUNCHDARKLY_PROJECT_KEY). Scoped to `--from launchdarkly`; ignored by other sources.",
1394
- "env": "LAUNCHDARKLY_PROJECT_KEY",
1393
+ "description": "Source-system project identifier. For --from launchdarkly this is the project KEY (default: \"default\"; env: LAUNCHDARKLY_PROJECT_KEY). For --from flagsmith this is the numeric project ID (env: FLAGSMITH_PROJECT_ID). Ignored by --from launch.",
1395
1394
  "name": "project",
1396
- "default": "default",
1397
1395
  "hasDynamicHelp": false,
1398
1396
  "multiple": false,
1399
1397
  "type": "option"
@@ -3145,13 +3143,14 @@
3145
3143
  "status.js"
3146
3144
  ]
3147
3145
  },
3148
- "sdk-key:create": {
3146
+ "workspace:bootstrap": {
3149
3147
  "aliases": [],
3150
3148
  "args": {},
3151
- "description": "Create a new SDK key",
3149
+ "description": "Push a local git repo to Gitea as this workspace's config repository",
3152
3150
  "examples": [
3153
- "<%= config.bin %> <%= command.id %> --environment production --type server",
3154
- "<%= config.bin %> <%= command.id %> --environment staging --type browser"
3151
+ "<%= config.bin %> workspace bootstrap --dir ./our-config",
3152
+ "<%= config.bin %> workspace bootstrap --dir ./launch-migrator/output",
3153
+ "<%= config.bin %> workspace bootstrap --dir ./our-config --skip-validate"
3155
3154
  ],
3156
3155
  "flags": {
3157
3156
  "json": {
@@ -3183,53 +3182,30 @@
3183
3182
  "allowNo": false,
3184
3183
  "type": "boolean"
3185
3184
  },
3186
- "workspace": {
3187
- "char": "w",
3188
- "description": "Workspace slug to use (overrides QUONFIG_WORKSPACE env var and saved default)",
3189
- "helpGroup": "GLOBAL",
3190
- "name": "workspace",
3191
- "required": false,
3192
- "hasDynamicHelp": false,
3193
- "multiple": false,
3194
- "type": "option"
3195
- },
3196
- "profile": {
3197
- "char": "p",
3198
- "description": "Deprecated: use --workspace instead",
3199
- "helpGroup": "GLOBAL",
3200
- "hidden": true,
3201
- "name": "profile",
3185
+ "dir": {
3186
+ "description": "Local directory to push (defaults to current directory)",
3187
+ "name": "dir",
3202
3188
  "required": false,
3203
3189
  "hasDynamicHelp": false,
3204
3190
  "multiple": false,
3205
3191
  "type": "option"
3206
3192
  },
3207
- "environment": {
3208
- "char": "e",
3209
- "description": "Environment name (e.g. production, staging)",
3210
- "name": "environment",
3211
- "required": false,
3212
- "hasDynamicHelp": false,
3213
- "multiple": false,
3214
- "type": "option"
3193
+ "force": {
3194
+ "description": "Force push even if remote already has commits",
3195
+ "name": "force",
3196
+ "allowNo": false,
3197
+ "type": "boolean"
3215
3198
  },
3216
- "type": {
3217
- "char": "t",
3218
- "description": "Key type: server (backend) or browser (frontend)",
3219
- "name": "type",
3220
- "required": false,
3221
- "hasDynamicHelp": false,
3222
- "multiple": false,
3223
- "options": [
3224
- "server",
3225
- "browser"
3226
- ],
3227
- "type": "option"
3199
+ "skip-validate": {
3200
+ "description": "Skip config validation before pushing",
3201
+ "name": "skip-validate",
3202
+ "allowNo": false,
3203
+ "type": "boolean"
3228
3204
  }
3229
3205
  },
3230
3206
  "hasDynamicHelp": false,
3231
3207
  "hiddenAliases": [],
3232
- "id": "sdk-key:create",
3208
+ "id": "workspace:bootstrap",
3233
3209
  "pluginAlias": "@quonfig/cli",
3234
3210
  "pluginName": "@quonfig/cli",
3235
3211
  "pluginType": "core",
@@ -3239,17 +3215,24 @@
3239
3215
  "relativePath": [
3240
3216
  "dist",
3241
3217
  "commands",
3242
- "sdk-key",
3243
- "create.js"
3218
+ "workspace",
3219
+ "bootstrap.js"
3244
3220
  ]
3245
3221
  },
3246
- "sdk-key:list": {
3222
+ "workspace:create": {
3247
3223
  "aliases": [],
3248
- "args": {},
3249
- "description": "List SDK keys for your workspace",
3224
+ "args": {
3225
+ "slug": {
3226
+ "description": "Workspace slug (lowercase letters, numbers, hyphens)",
3227
+ "name": "slug",
3228
+ "required": true
3229
+ }
3230
+ },
3231
+ "description": "Create a new workspace. Provisions the Gitea repo and default environments, identical to the app's New Workspace UI.",
3250
3232
  "examples": [
3251
- "<%= config.bin %> <%= command.id %>",
3252
- "<%= config.bin %> <%= command.id %> --environment production"
3233
+ "<%= config.bin %> <%= command.id %> my-team",
3234
+ "<%= config.bin %> <%= command.id %> lt-21-smoke --name \"Load Test 21\"",
3235
+ "<%= config.bin %> <%= command.id %> my-team --org 11111111-1111-1111-1111-111111111111"
3253
3236
  ],
3254
3237
  "flags": {
3255
3238
  "json": {
@@ -3281,31 +3264,17 @@
3281
3264
  "allowNo": false,
3282
3265
  "type": "boolean"
3283
3266
  },
3284
- "workspace": {
3285
- "char": "w",
3286
- "description": "Workspace slug to use (overrides QUONFIG_WORKSPACE env var and saved default)",
3287
- "helpGroup": "GLOBAL",
3288
- "name": "workspace",
3289
- "required": false,
3290
- "hasDynamicHelp": false,
3291
- "multiple": false,
3292
- "type": "option"
3293
- },
3294
- "profile": {
3295
- "char": "p",
3296
- "description": "Deprecated: use --workspace instead",
3297
- "helpGroup": "GLOBAL",
3298
- "hidden": true,
3299
- "name": "profile",
3267
+ "name": {
3268
+ "description": "Human-readable display name (defaults to the slug)",
3269
+ "name": "name",
3300
3270
  "required": false,
3301
3271
  "hasDynamicHelp": false,
3302
3272
  "multiple": false,
3303
3273
  "type": "option"
3304
3274
  },
3305
- "environment": {
3306
- "char": "e",
3307
- "description": "Filter by environment name",
3308
- "name": "environment",
3275
+ "org": {
3276
+ "description": "Organization UUID or slug. Required when you belong to more than one organization; inferred otherwise.",
3277
+ "name": "org",
3309
3278
  "required": false,
3310
3279
  "hasDynamicHelp": false,
3311
3280
  "multiple": false,
@@ -3314,7 +3283,7 @@
3314
3283
  },
3315
3284
  "hasDynamicHelp": false,
3316
3285
  "hiddenAliases": [],
3317
- "id": "sdk-key:list",
3286
+ "id": "workspace:create",
3318
3287
  "pluginAlias": "@quonfig/cli",
3319
3288
  "pluginName": "@quonfig/cli",
3320
3289
  "pluginType": "core",
@@ -3324,22 +3293,23 @@
3324
3293
  "relativePath": [
3325
3294
  "dist",
3326
3295
  "commands",
3327
- "sdk-key",
3328
- "list.js"
3296
+ "workspace",
3297
+ "create.js"
3329
3298
  ]
3330
3299
  },
3331
- "sdk-key:revoke": {
3300
+ "workspace:switch": {
3332
3301
  "aliases": [],
3333
3302
  "args": {
3334
- "keyId": {
3335
- "description": "ID of the SDK key to revoke",
3336
- "name": "keyId",
3337
- "required": true
3303
+ "slug": {
3304
+ "description": "Workspace pin in `<org-slug>/<workspace-slug>` form. Omit for an interactive picker.",
3305
+ "name": "slug",
3306
+ "required": false
3338
3307
  }
3339
3308
  },
3340
- "description": "Revoke an SDK key by its ID",
3309
+ "description": "Switch the saved default profile to a different (org, workspace) pair",
3341
3310
  "examples": [
3342
- "<%= config.bin %> <%= command.id %> a1b2c3d4-e5f6-7890-abcd-ef1234567890"
3311
+ "<%= config.bin %> <%= command.id %>",
3312
+ "<%= config.bin %> <%= command.id %> acme/production"
3343
3313
  ],
3344
3314
  "flags": {
3345
3315
  "json": {
@@ -3370,32 +3340,11 @@
3370
3340
  "name": "verbose",
3371
3341
  "allowNo": false,
3372
3342
  "type": "boolean"
3373
- },
3374
- "workspace": {
3375
- "char": "w",
3376
- "description": "Workspace slug to use (overrides QUONFIG_WORKSPACE env var and saved default)",
3377
- "helpGroup": "GLOBAL",
3378
- "name": "workspace",
3379
- "required": false,
3380
- "hasDynamicHelp": false,
3381
- "multiple": false,
3382
- "type": "option"
3383
- },
3384
- "profile": {
3385
- "char": "p",
3386
- "description": "Deprecated: use --workspace instead",
3387
- "helpGroup": "GLOBAL",
3388
- "hidden": true,
3389
- "name": "profile",
3390
- "required": false,
3391
- "hasDynamicHelp": false,
3392
- "multiple": false,
3393
- "type": "option"
3394
3343
  }
3395
3344
  },
3396
3345
  "hasDynamicHelp": false,
3397
3346
  "hiddenAliases": [],
3398
- "id": "sdk-key:revoke",
3347
+ "id": "workspace:switch",
3399
3348
  "pluginAlias": "@quonfig/cli",
3400
3349
  "pluginName": "@quonfig/cli",
3401
3350
  "pluginType": "core",
@@ -3405,18 +3354,17 @@
3405
3354
  "relativePath": [
3406
3355
  "dist",
3407
3356
  "commands",
3408
- "sdk-key",
3409
- "revoke.js"
3357
+ "workspace",
3358
+ "switch.js"
3410
3359
  ]
3411
3360
  },
3412
- "workspace:bootstrap": {
3361
+ "sdk-key:create": {
3413
3362
  "aliases": [],
3414
3363
  "args": {},
3415
- "description": "Push a local git repo to Gitea as this workspace's config repository",
3364
+ "description": "Create a new SDK key",
3416
3365
  "examples": [
3417
- "<%= config.bin %> workspace bootstrap --dir ./our-config",
3418
- "<%= config.bin %> workspace bootstrap --dir ./launch-migrator/output",
3419
- "<%= config.bin %> workspace bootstrap --dir ./our-config --skip-validate"
3366
+ "<%= config.bin %> <%= command.id %> --environment production --type server",
3367
+ "<%= config.bin %> <%= command.id %> --environment staging --type browser"
3420
3368
  ],
3421
3369
  "flags": {
3422
3370
  "json": {
@@ -3448,30 +3396,53 @@
3448
3396
  "allowNo": false,
3449
3397
  "type": "boolean"
3450
3398
  },
3451
- "dir": {
3452
- "description": "Local directory to push (defaults to current directory)",
3453
- "name": "dir",
3399
+ "workspace": {
3400
+ "char": "w",
3401
+ "description": "Workspace slug to use (overrides QUONFIG_WORKSPACE env var and saved default)",
3402
+ "helpGroup": "GLOBAL",
3403
+ "name": "workspace",
3454
3404
  "required": false,
3455
3405
  "hasDynamicHelp": false,
3456
3406
  "multiple": false,
3457
3407
  "type": "option"
3458
3408
  },
3459
- "force": {
3460
- "description": "Force push even if remote already has commits",
3461
- "name": "force",
3462
- "allowNo": false,
3463
- "type": "boolean"
3409
+ "profile": {
3410
+ "char": "p",
3411
+ "description": "Deprecated: use --workspace instead",
3412
+ "helpGroup": "GLOBAL",
3413
+ "hidden": true,
3414
+ "name": "profile",
3415
+ "required": false,
3416
+ "hasDynamicHelp": false,
3417
+ "multiple": false,
3418
+ "type": "option"
3464
3419
  },
3465
- "skip-validate": {
3466
- "description": "Skip config validation before pushing",
3467
- "name": "skip-validate",
3468
- "allowNo": false,
3469
- "type": "boolean"
3420
+ "environment": {
3421
+ "char": "e",
3422
+ "description": "Environment name (e.g. production, staging)",
3423
+ "name": "environment",
3424
+ "required": false,
3425
+ "hasDynamicHelp": false,
3426
+ "multiple": false,
3427
+ "type": "option"
3428
+ },
3429
+ "type": {
3430
+ "char": "t",
3431
+ "description": "Key type: server (backend) or browser (frontend)",
3432
+ "name": "type",
3433
+ "required": false,
3434
+ "hasDynamicHelp": false,
3435
+ "multiple": false,
3436
+ "options": [
3437
+ "server",
3438
+ "browser"
3439
+ ],
3440
+ "type": "option"
3470
3441
  }
3471
3442
  },
3472
3443
  "hasDynamicHelp": false,
3473
3444
  "hiddenAliases": [],
3474
- "id": "workspace:bootstrap",
3445
+ "id": "sdk-key:create",
3475
3446
  "pluginAlias": "@quonfig/cli",
3476
3447
  "pluginName": "@quonfig/cli",
3477
3448
  "pluginType": "core",
@@ -3481,24 +3452,17 @@
3481
3452
  "relativePath": [
3482
3453
  "dist",
3483
3454
  "commands",
3484
- "workspace",
3485
- "bootstrap.js"
3455
+ "sdk-key",
3456
+ "create.js"
3486
3457
  ]
3487
3458
  },
3488
- "workspace:create": {
3459
+ "sdk-key:list": {
3489
3460
  "aliases": [],
3490
- "args": {
3491
- "slug": {
3492
- "description": "Workspace slug (lowercase letters, numbers, hyphens)",
3493
- "name": "slug",
3494
- "required": true
3495
- }
3496
- },
3497
- "description": "Create a new workspace. Provisions the Gitea repo and default environments, identical to the app's New Workspace UI.",
3461
+ "args": {},
3462
+ "description": "List SDK keys for your workspace",
3498
3463
  "examples": [
3499
- "<%= config.bin %> <%= command.id %> my-team",
3500
- "<%= config.bin %> <%= command.id %> lt-21-smoke --name \"Load Test 21\"",
3501
- "<%= config.bin %> <%= command.id %> my-team --org 11111111-1111-1111-1111-111111111111"
3464
+ "<%= config.bin %> <%= command.id %>",
3465
+ "<%= config.bin %> <%= command.id %> --environment production"
3502
3466
  ],
3503
3467
  "flags": {
3504
3468
  "json": {
@@ -3530,17 +3494,31 @@
3530
3494
  "allowNo": false,
3531
3495
  "type": "boolean"
3532
3496
  },
3533
- "name": {
3534
- "description": "Human-readable display name (defaults to the slug)",
3535
- "name": "name",
3497
+ "workspace": {
3498
+ "char": "w",
3499
+ "description": "Workspace slug to use (overrides QUONFIG_WORKSPACE env var and saved default)",
3500
+ "helpGroup": "GLOBAL",
3501
+ "name": "workspace",
3536
3502
  "required": false,
3537
3503
  "hasDynamicHelp": false,
3538
3504
  "multiple": false,
3539
3505
  "type": "option"
3540
3506
  },
3541
- "org": {
3542
- "description": "Organization UUID or slug. Required when you belong to more than one organization; inferred otherwise.",
3543
- "name": "org",
3507
+ "profile": {
3508
+ "char": "p",
3509
+ "description": "Deprecated: use --workspace instead",
3510
+ "helpGroup": "GLOBAL",
3511
+ "hidden": true,
3512
+ "name": "profile",
3513
+ "required": false,
3514
+ "hasDynamicHelp": false,
3515
+ "multiple": false,
3516
+ "type": "option"
3517
+ },
3518
+ "environment": {
3519
+ "char": "e",
3520
+ "description": "Filter by environment name",
3521
+ "name": "environment",
3544
3522
  "required": false,
3545
3523
  "hasDynamicHelp": false,
3546
3524
  "multiple": false,
@@ -3549,7 +3527,7 @@
3549
3527
  },
3550
3528
  "hasDynamicHelp": false,
3551
3529
  "hiddenAliases": [],
3552
- "id": "workspace:create",
3530
+ "id": "sdk-key:list",
3553
3531
  "pluginAlias": "@quonfig/cli",
3554
3532
  "pluginName": "@quonfig/cli",
3555
3533
  "pluginType": "core",
@@ -3559,23 +3537,22 @@
3559
3537
  "relativePath": [
3560
3538
  "dist",
3561
3539
  "commands",
3562
- "workspace",
3563
- "create.js"
3540
+ "sdk-key",
3541
+ "list.js"
3564
3542
  ]
3565
3543
  },
3566
- "workspace:switch": {
3544
+ "sdk-key:revoke": {
3567
3545
  "aliases": [],
3568
3546
  "args": {
3569
- "slug": {
3570
- "description": "Workspace pin in `<org-slug>/<workspace-slug>` form. Omit for an interactive picker.",
3571
- "name": "slug",
3572
- "required": false
3547
+ "keyId": {
3548
+ "description": "ID of the SDK key to revoke",
3549
+ "name": "keyId",
3550
+ "required": true
3573
3551
  }
3574
3552
  },
3575
- "description": "Switch the saved default profile to a different (org, workspace) pair",
3553
+ "description": "Revoke an SDK key by its ID",
3576
3554
  "examples": [
3577
- "<%= config.bin %> <%= command.id %>",
3578
- "<%= config.bin %> <%= command.id %> acme/production"
3555
+ "<%= config.bin %> <%= command.id %> a1b2c3d4-e5f6-7890-abcd-ef1234567890"
3579
3556
  ],
3580
3557
  "flags": {
3581
3558
  "json": {
@@ -3606,11 +3583,32 @@
3606
3583
  "name": "verbose",
3607
3584
  "allowNo": false,
3608
3585
  "type": "boolean"
3586
+ },
3587
+ "workspace": {
3588
+ "char": "w",
3589
+ "description": "Workspace slug to use (overrides QUONFIG_WORKSPACE env var and saved default)",
3590
+ "helpGroup": "GLOBAL",
3591
+ "name": "workspace",
3592
+ "required": false,
3593
+ "hasDynamicHelp": false,
3594
+ "multiple": false,
3595
+ "type": "option"
3596
+ },
3597
+ "profile": {
3598
+ "char": "p",
3599
+ "description": "Deprecated: use --workspace instead",
3600
+ "helpGroup": "GLOBAL",
3601
+ "hidden": true,
3602
+ "name": "profile",
3603
+ "required": false,
3604
+ "hasDynamicHelp": false,
3605
+ "multiple": false,
3606
+ "type": "option"
3609
3607
  }
3610
3608
  },
3611
3609
  "hasDynamicHelp": false,
3612
3610
  "hiddenAliases": [],
3613
- "id": "workspace:switch",
3611
+ "id": "sdk-key:revoke",
3614
3612
  "pluginAlias": "@quonfig/cli",
3615
3613
  "pluginName": "@quonfig/cli",
3616
3614
  "pluginType": "core",
@@ -3620,10 +3618,10 @@
3620
3618
  "relativePath": [
3621
3619
  "dist",
3622
3620
  "commands",
3623
- "workspace",
3624
- "switch.js"
3621
+ "sdk-key",
3622
+ "revoke.js"
3625
3623
  ]
3626
3624
  }
3627
3625
  },
3628
- "version": "0.0.50"
3626
+ "version": "0.0.52"
3629
3627
  }
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.50",
4
+ "version": "0.0.52",
5
5
  "bugs": {
6
6
  "url": "https://github.com/quonfig/cli/issues"
7
7
  },
@@ -21,7 +21,7 @@
21
21
  "@oclif/core": "^3.18.2",
22
22
  "@oclif/plugin-help": "^6",
23
23
  "@oclif/plugin-plugins": "^4",
24
- "@quonfig/node": "^0.0.24",
24
+ "@quonfig/node": "^0.0.28",
25
25
  "acorn": "^8.10.0",
26
26
  "acorn-walk": "^8.3.5",
27
27
  "chalk": "^5.4.1",