@bussolabs/closeyourit-cli 0.0.27 → 0.2.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/opencli.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "opencli": "0.1",
4
4
  "info": {
5
5
  "title": "closeyourit",
6
- "version": "0.0.27",
6
+ "version": "0.2.0",
7
7
  "summary": "CLI for CloseYourIt",
8
8
  "description": "Manage organization, projects, error monitoring, ingest tokens, tickets and performance metrics with your CloseYourIt user token.",
9
9
  "license": {
@@ -375,6 +375,28 @@
375
375
  "closeyourit projects github -p LBRA"
376
376
  ]
377
377
  },
378
+ {
379
+ "name": "github-connect",
380
+ "description": "Connect a project to a repository available to the organization GitHub App.",
381
+ "options": [
382
+ {
383
+ "name": "--project",
384
+ "aliases": ["-p"],
385
+ "required": true,
386
+ "description": "Project id (UUID) or key.",
387
+ "arguments": [{"name": "PROJECT", "required": true}]
388
+ },
389
+ {
390
+ "name": "--repository",
391
+ "required": true,
392
+ "description": "GitHub repository as owner/name.",
393
+ "arguments": [{"name": "OWNER/NAME", "required": true}]
394
+ }
395
+ ],
396
+ "examples": [
397
+ "closeyourit projects github-connect -p CYAG --repository bussolabs/closeyourit-agent"
398
+ ]
399
+ },
378
400
  {
379
401
  "name": "github-update",
380
402
  "description": "Update a project GitHub binding rules (environment mapping + sync/binding/autoclose flags); only the passed fields change.",
@@ -438,6 +460,60 @@
438
460
  "closeyourit projects github-update -p LBRA --no-tag-binding-enabled"
439
461
  ]
440
462
  },
463
+ {
464
+ "name": "github-map",
465
+ "description": "List the project to GitHub repository mapping for local automation.",
466
+ "options": [
467
+ {
468
+ "name": "--connected-only",
469
+ "description": "Show only projects connected to a GitHub repository."
470
+ }
471
+ ],
472
+ "examples": [
473
+ "closeyourit projects github-map",
474
+ "closeyourit projects github-map --connected-only",
475
+ "closeyourit projects github-map --connected-only --json"
476
+ ]
477
+ },
478
+ {
479
+ "name": "set-environment-capabilities",
480
+ "description": "Override servers, uptime and secrets capabilities for a project environment.",
481
+ "options": [
482
+ {
483
+ "name": "--project",
484
+ "aliases": ["-p"],
485
+ "required": true,
486
+ "description": "Project id (UUID) or key.",
487
+ "arguments": [{"name": "PROJECT", "required": true}]
488
+ },
489
+ {
490
+ "name": "--environment",
491
+ "aliases": ["-e"],
492
+ "required": true,
493
+ "description": "Environment code or id.",
494
+ "arguments": [{"name": "ENVIRONMENT", "required": true}]
495
+ },
496
+ {
497
+ "name": "--servers",
498
+ "description": "Servers capability override.",
499
+ "arguments": [{"name": "inherit|on|off"}]
500
+ },
501
+ {
502
+ "name": "--uptime",
503
+ "description": "Uptime capability override.",
504
+ "arguments": [{"name": "inherit|on|off"}]
505
+ },
506
+ {
507
+ "name": "--secrets",
508
+ "description": "Secrets capability override.",
509
+ "arguments": [{"name": "inherit|on|off"}]
510
+ }
511
+ ],
512
+ "examples": [
513
+ "closeyourit projects set-environment-capabilities -p LBRA -e production --uptime off",
514
+ "closeyourit projects set-environment-capabilities -p legalbloom-rails -e staging --uptime off --secrets inherit"
515
+ ]
516
+ },
441
517
  {
442
518
  "name": "settings",
443
519
  "description": "Project settings (log/analytics retention + feature flags).",
@@ -4530,6 +4606,75 @@
4530
4606
  }
4531
4607
  ]
4532
4608
  },
4609
+ {
4610
+ "name": "environments",
4611
+ "description": "Organization environments and their default capabilities.",
4612
+ "commands": [
4613
+ {
4614
+ "name": "list",
4615
+ "description": "List the environments in your organization.",
4616
+ "options": [
4617
+ {"name": "--page", "description": "Page number.", "arguments": [{"name": "N"}]}
4618
+ ],
4619
+ "examples": [
4620
+ "closeyourit environments list",
4621
+ "closeyourit environments list --page 2 --json"
4622
+ ]
4623
+ },
4624
+ {
4625
+ "name": "create",
4626
+ "description": "Create an environment in your organization.",
4627
+ "arguments": [
4628
+ {"name": "CODE", "required": true, "description": "Environment code (lowercase)."}
4629
+ ],
4630
+ "options": [
4631
+ {"name": "--label", "required": true, "description": "Human-readable label.", "arguments": [{"name": "LABEL", "required": true}]},
4632
+ {"name": "--color", "description": "Color label.", "arguments": [{"name": "COLOR"}]},
4633
+ {"name": "--position", "description": "Sort position.", "arguments": [{"name": "N"}]},
4634
+ {"name": "--active", "description": "Whether the environment is active."},
4635
+ {"name": "--servers", "description": "Servers capability default."},
4636
+ {"name": "--uptime", "description": "Uptime capability default."},
4637
+ {"name": "--secrets", "description": "Secrets capability default."}
4638
+ ],
4639
+ "examples": [
4640
+ "closeyourit environments create production --label Production",
4641
+ "closeyourit environments create staging --label Staging --no-uptime"
4642
+ ]
4643
+ },
4644
+ {
4645
+ "name": "update",
4646
+ "description": "Update an environment and its default capabilities.",
4647
+ "arguments": [
4648
+ {"name": "ENVIRONMENT", "required": true, "description": "Environment id or code."}
4649
+ ],
4650
+ "options": [
4651
+ {"name": "--code", "description": "New code.", "arguments": [{"name": "CODE"}]},
4652
+ {"name": "--label", "description": "New label.", "arguments": [{"name": "LABEL"}]},
4653
+ {"name": "--color", "description": "Color label.", "arguments": [{"name": "COLOR"}]},
4654
+ {"name": "--position", "description": "Sort position.", "arguments": [{"name": "N"}]},
4655
+ {"name": "--active", "description": "Whether the environment is active."},
4656
+ {"name": "--servers", "description": "Servers capability default."},
4657
+ {"name": "--uptime", "description": "Uptime capability default."},
4658
+ {"name": "--secrets", "description": "Secrets capability default."}
4659
+ ],
4660
+ "examples": [
4661
+ "closeyourit environments update staging --label \"Staging env\"",
4662
+ "closeyourit environments update staging --no-uptime --servers"
4663
+ ]
4664
+ },
4665
+ {
4666
+ "name": "delete",
4667
+ "description": "Delete an unreferenced environment.",
4668
+ "arguments": [
4669
+ {"name": "ENVIRONMENT", "required": true, "description": "Environment id or code."}
4670
+ ],
4671
+ "options": [
4672
+ {"name": "--confirm", "required": true, "description": "Confirm the deletion."}
4673
+ ],
4674
+ "examples": ["closeyourit environments delete staging --confirm"]
4675
+ }
4676
+ ]
4677
+ },
4533
4678
  {
4534
4679
  "name": "platforms",
4535
4680
  "description": "Platforms (devices/systems your projects run on).",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bussolabs/closeyourit-cli",
3
- "version": "0.0.27",
3
+ "version": "0.2.0",
4
4
  "description": "CLI for CloseYourIt — manage org, errors, tokens and tickets with your user token",
5
5
  "publishConfig": {
6
6
  "access": "public"