@optimizely/ocp-cli-v2 2.0.0-beta.2 → 2.0.2

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.
@@ -16,7 +16,7 @@ class AppPackager {
16
16
  console.log(chalk.gray(`Packaging files in ${this.rootPath}`));
17
17
  const files = await globby(['**/*'], {
18
18
  gitignore: true,
19
- ignore: ['node_modules/**/*', '*.zip', '.git/**/*', '.ocp-local/**/*'],
19
+ ignore: ['node_modules', '*.zip', '.git', '.ocp-local'],
20
20
  cwd: this.rootPath,
21
21
  dot: true,
22
22
  onlyFiles: true,
@@ -1 +1 @@
1
- {"version":3,"file":"AppPackager.js","sourceRoot":"","sources":["../../src/lib/AppPackager.ts"],"names":[],"mappings":";;;AAAA,kCAAkC;AAClC,+BAA+B;AAC/B,yBAAyB;AACzB,6BAA6B;AAC7B,iCAAiC;AACjC,qDAAyD;AAMzD,MAAa,WAAW;IAItB,YAAY,QAAgB,EAAE,OAAe;QAC3C,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAEM,KAAK,CAAC,OAAO;QAClB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,sBAAsB,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;QAE/D,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,CAAC,MAAM,CAAC,EAAE;YACnC,SAAS,EAAE,IAAI;YACf,MAAM,EAAE,CAAC,mBAAmB,EAAE,OAAO,EAAE,WAAW,EAAE,iBAAiB,CAAC;YACtE,GAAG,EAAE,IAAI,CAAC,QAAQ;YAClB,GAAG,EAAE,IAAI;YACT,SAAS,EAAE,IAAI;SAChB,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC9C,CAAC;IAEO,SAAS,CAAC,OAAe,EAAE,KAAe;QAChD,MAAM,GAAG,GAAG,IAAI,MAAM,EAAE,CAAC;QAEzB,wBAAwB;QACxB,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YACrB,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;YAC1C,IAAI,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;gBAC3B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,CAAC;gBACnC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC;aAC9C;QACH,CAAC,CAAC,CAAC;QAEH,wDAAwD;QACxD,MAAM,QAAQ,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QACjD,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YACpC,GAAG,CAAC,OAAO,CAAC,oBAAoB,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;SAC5F;QAED,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAC;IACxB,CAAC;IAED;;;OAGG;IACK,iBAAiB,CAAC,OAAe;QACvC,MAAM,QAAQ,GAAgB,EAAE,CAAC;QAEjC,MAAM,EAAE,GAAG,sCAAqB,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/D,IAAI,EAAE,EAAE;YACN,QAAQ,CAAC,cAAc,GAAG,EAAE,CAAC,sBAAsB,EAAE,CAAC;SACvD;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF;AA1DD,kCA0DC"}
1
+ {"version":3,"file":"AppPackager.js","sourceRoot":"","sources":["../../src/lib/AppPackager.ts"],"names":[],"mappings":";;;AAAA,kCAAkC;AAClC,+BAA+B;AAC/B,yBAAyB;AACzB,6BAA6B;AAC7B,iCAAiC;AACjC,qDAAyD;AAMzD,MAAa,WAAW;IAItB,YAAY,QAAgB,EAAE,OAAe;QAC3C,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAEM,KAAK,CAAC,OAAO;QAClB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,sBAAsB,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;QAE/D,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,CAAC,MAAM,CAAC,EAAE;YACnC,SAAS,EAAE,IAAI;YACf,MAAM,EAAE,CAAC,cAAc,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC;YACvD,GAAG,EAAE,IAAI,CAAC,QAAQ;YAClB,GAAG,EAAE,IAAI;YACT,SAAS,EAAE,IAAI;SAChB,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC9C,CAAC;IAEO,SAAS,CAAC,OAAe,EAAE,KAAe;QAChD,MAAM,GAAG,GAAG,IAAI,MAAM,EAAE,CAAC;QAEzB,wBAAwB;QACxB,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YACrB,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;YAC1C,IAAI,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;gBAC3B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,CAAC;gBACnC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC;aAC9C;QACH,CAAC,CAAC,CAAC;QAEH,wDAAwD;QACxD,MAAM,QAAQ,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QACjD,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YACpC,GAAG,CAAC,OAAO,CAAC,oBAAoB,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;SAC5F;QAED,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAC;IACxB,CAAC;IAED;;;OAGG;IACK,iBAAiB,CAAC,OAAe;QACvC,MAAM,QAAQ,GAAgB,EAAE,CAAC;QAEjC,MAAM,EAAE,GAAG,sCAAqB,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/D,IAAI,EAAE,EAAE;YACN,QAAQ,CAAC,cAAc,GAAG,EAAE,CAAC,sBAAsB,EAAE,CAAC;SACvD;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF;AA1DD,kCA0DC"}
@@ -690,17 +690,98 @@
690
690
  "start.js"
691
691
  ]
692
692
  },
693
- "directory:info": {
693
+ "jobs:list": {
694
694
  "aliases": [],
695
695
  "args": {
696
696
  "appId": {
697
- "description": "The App ID to look up",
697
+ "description": "Specific App ID to filter by",
698
698
  "name": "appId",
699
699
  "required": true
700
700
  }
701
701
  },
702
- "description": "Get information about an app",
702
+ "description": "List jobs",
703
703
  "flags": {
704
+ "version": {
705
+ "description": "Specific Versions to filter by",
706
+ "name": "version",
707
+ "hasDynamicHelp": false,
708
+ "multiple": true,
709
+ "type": "option"
710
+ },
711
+ "trackerId": {
712
+ "description": "Specific Tracker IDs to filter by",
713
+ "name": "trackerId",
714
+ "hasDynamicHelp": false,
715
+ "multiple": true,
716
+ "type": "option"
717
+ },
718
+ "function": {
719
+ "description": "Specific Job Function to filter by",
720
+ "name": "function",
721
+ "hasDynamicHelp": false,
722
+ "multiple": true,
723
+ "type": "option"
724
+ },
725
+ "status": {
726
+ "description": "Specific JobStatus to filter by. Possible values: PENDING, SCHEDULED, RUNNING, COMPLETE, ERROR, TERMINATED",
727
+ "name": "status",
728
+ "hasDynamicHelp": false,
729
+ "multiple": true,
730
+ "type": "option"
731
+ },
732
+ "minDuration": {
733
+ "description": "Show jobs that have been running longer than the given duration. (e.g. 5m = 5 minutes)",
734
+ "name": "minDuration",
735
+ "hasDynamicHelp": false,
736
+ "multiple": false,
737
+ "type": "option"
738
+ },
739
+ "sortBy": {
740
+ "description": "Column to sort the jobs by. Possible values: id, function, trackerId, status, error, createdAt, triggeredAt, scheduledAt, terminatedAt, updatedAt, duration; Default: updatedAt",
741
+ "name": "sortBy",
742
+ "default": "updatedAt",
743
+ "hasDynamicHelp": false,
744
+ "multiple": false,
745
+ "type": "option"
746
+ },
747
+ "sortDirection": {
748
+ "description": "Sort resulting jobs in ascending or descending order. Possible values: asc|desc. Default: desc",
749
+ "name": "sortDirection",
750
+ "default": "desc",
751
+ "hasDynamicHelp": false,
752
+ "multiple": false,
753
+ "type": "option"
754
+ },
755
+ "limit": {
756
+ "description": "Number of jobs to list. Default: 50",
757
+ "name": "limit",
758
+ "default": 50,
759
+ "hasDynamicHelp": false,
760
+ "multiple": false,
761
+ "type": "option"
762
+ },
763
+ "columns": {
764
+ "description": "Columns to display. Possible values: id, version, function, trackerId, trigger, status, error, createdAt, triggeredAt, scheduledAt, terminatedAt, updatedAt, duration. Default: id, version, function, trackerId, status, createdAt, updatedAt, duration",
765
+ "name": "columns",
766
+ "default": "id,version,function,trackerId,status,createdAt,updatedAt,duration",
767
+ "hasDynamicHelp": false,
768
+ "multiple": false,
769
+ "type": "option"
770
+ },
771
+ "from": {
772
+ "description": "A start time as an ISO string, an epoch timestamp, or relative string (i.e. \"5m\" for 5 minutes.) Default: 7d",
773
+ "name": "from",
774
+ "hasDynamicHelp": false,
775
+ "multiple": false,
776
+ "type": "option"
777
+ },
778
+ "to": {
779
+ "description": "An end time as an ISO string, an epoch timestamp, or relative string (i.e. \"5m\" for 5 minutes)",
780
+ "name": "to",
781
+ "hasDynamicHelp": false,
782
+ "multiple": false,
783
+ "type": "option"
784
+ },
704
785
  "availability": {
705
786
  "char": "a",
706
787
  "description": "The availability zone that will be targeted (default: us)",
@@ -713,7 +794,7 @@
713
794
  },
714
795
  "hasDynamicHelp": false,
715
796
  "hiddenAliases": [],
716
- "id": "directory:info",
797
+ "id": "jobs:list",
717
798
  "pluginAlias": "@optimizely/ocp-cli-v2",
718
799
  "pluginName": "@optimizely/ocp-cli-v2",
719
800
  "pluginType": "core",
@@ -723,25 +804,20 @@
723
804
  "relativePath": [
724
805
  "dist",
725
806
  "commands",
726
- "directory",
727
- "info.js"
807
+ "jobs",
808
+ "list.js"
728
809
  ]
729
810
  },
730
- "directory:install": {
811
+ "jobs:runtimeStatus": {
731
812
  "aliases": [],
732
813
  "args": {
733
- "appVersion": {
734
- "description": "The App ID and version (e.g. my_app@1.0.0)",
735
- "name": "appVersion",
736
- "required": true
737
- },
738
- "trackerId": {
739
- "description": "The Tracker ID of the account to install into",
740
- "name": "trackerId",
814
+ "jobId": {
815
+ "description": "ID of Job to get the runtime status for",
816
+ "name": "jobId",
741
817
  "required": true
742
818
  }
743
819
  },
744
- "description": "Install a specific app version into an account",
820
+ "description": "Show the runtime status of a job",
745
821
  "flags": {
746
822
  "availability": {
747
823
  "char": "a",
@@ -755,7 +831,7 @@
755
831
  },
756
832
  "hasDynamicHelp": false,
757
833
  "hiddenAliases": [],
758
- "id": "directory:install",
834
+ "id": "jobs:runtimeStatus",
759
835
  "pluginAlias": "@optimizely/ocp-cli-v2",
760
836
  "pluginName": "@optimizely/ocp-cli-v2",
761
837
  "pluginType": "core",
@@ -765,27 +841,21 @@
765
841
  "relativePath": [
766
842
  "dist",
767
843
  "commands",
768
- "directory",
769
- "install.js"
844
+ "jobs",
845
+ "runtimeStatus.js"
770
846
  ]
771
847
  },
772
- "directory:list": {
848
+ "jobs:status": {
773
849
  "aliases": [],
774
850
  "args": {
775
- "appId": {
776
- "description": "A specific App ID to filter down to (lists all apps by default)",
777
- "name": "appId",
851
+ "jobId": {
852
+ "description": "The Job ID to look up",
853
+ "name": "jobId",
778
854
  "required": false
779
855
  }
780
856
  },
781
- "description": "List registered app versions",
857
+ "description": "Get the status of a particular job id",
782
858
  "flags": {
783
- "allStatuses": {
784
- "description": "Include all statuses. STOPPED and ABANDONED are filtered by default",
785
- "name": "allStatuses",
786
- "allowNo": false,
787
- "type": "boolean"
788
- },
789
859
  "availability": {
790
860
  "char": "a",
791
861
  "description": "The availability zone that will be targeted (default: us)",
@@ -798,7 +868,7 @@
798
868
  },
799
869
  "hasDynamicHelp": false,
800
870
  "hiddenAliases": [],
801
- "id": "directory:list",
871
+ "id": "jobs:status",
802
872
  "pluginAlias": "@optimizely/ocp-cli-v2",
803
873
  "pluginName": "@optimizely/ocp-cli-v2",
804
874
  "pluginType": "core",
@@ -808,27 +878,20 @@
808
878
  "relativePath": [
809
879
  "dist",
810
880
  "commands",
811
- "directory",
812
- "list.js"
881
+ "jobs",
882
+ "status.js"
813
883
  ]
814
884
  },
815
- "directory:listFunctions": {
816
- "aliases": [
817
- "directory:list-functions"
818
- ],
885
+ "jobs:terminate": {
886
+ "aliases": [],
819
887
  "args": {
820
- "appId": {
821
- "description": "The App ID (e.g. my_app)",
822
- "name": "appId",
823
- "required": true
824
- },
825
- "trackerId": {
826
- "description": "The Tracker ID of the installed account",
827
- "name": "trackerId",
888
+ "jobId": {
889
+ "description": "ID of Job to terminate",
890
+ "name": "jobId",
828
891
  "required": true
829
892
  }
830
893
  },
831
- "description": "List the functions exposed by an app installation",
894
+ "description": "Terminate a job",
832
895
  "flags": {
833
896
  "availability": {
834
897
  "char": "a",
@@ -842,7 +905,7 @@
842
905
  },
843
906
  "hasDynamicHelp": false,
844
907
  "hiddenAliases": [],
845
- "id": "directory:listFunctions",
908
+ "id": "jobs:terminate",
846
909
  "pluginAlias": "@optimizely/ocp-cli-v2",
847
910
  "pluginName": "@optimizely/ocp-cli-v2",
848
911
  "pluginType": "core",
@@ -852,23 +915,39 @@
852
915
  "relativePath": [
853
916
  "dist",
854
917
  "commands",
855
- "directory",
856
- "listFunctions.js"
918
+ "jobs",
919
+ "terminate.js"
857
920
  ]
858
921
  },
859
- "directory:listGlobalFunctions": {
860
- "aliases": [
861
- "directory:list-global-functions"
862
- ],
922
+ "jobs:trigger": {
923
+ "aliases": [],
863
924
  "args": {
864
925
  "appId": {
865
926
  "description": "The App ID (e.g. my_app)",
866
927
  "name": "appId",
867
928
  "required": true
929
+ },
930
+ "jobName": {
931
+ "description": "The Job Name",
932
+ "name": "jobName",
933
+ "required": true
934
+ },
935
+ "trackerId": {
936
+ "description": "The Tracker ID to trigger the job for",
937
+ "name": "trackerId",
938
+ "required": true
868
939
  }
869
940
  },
870
- "description": "List the global functions exposed by an app",
941
+ "description": "Trigger a job",
871
942
  "flags": {
943
+ "parameters": {
944
+ "description": "Parameters to pass to the Job",
945
+ "name": "parameters",
946
+ "default": "{}",
947
+ "hasDynamicHelp": false,
948
+ "multiple": false,
949
+ "type": "option"
950
+ },
872
951
  "availability": {
873
952
  "char": "a",
874
953
  "description": "The availability zone that will be targeted (default: us)",
@@ -881,7 +960,7 @@
881
960
  },
882
961
  "hasDynamicHelp": false,
883
962
  "hiddenAliases": [],
884
- "id": "directory:listGlobalFunctions",
963
+ "id": "jobs:trigger",
885
964
  "pluginAlias": "@optimizely/ocp-cli-v2",
886
965
  "pluginName": "@optimizely/ocp-cli-v2",
887
966
  "pluginType": "core",
@@ -891,36 +970,51 @@
891
970
  "relativePath": [
892
971
  "dist",
893
972
  "commands",
894
- "directory",
895
- "listGlobalFunctions.js"
973
+ "jobs",
974
+ "trigger.js"
896
975
  ]
897
976
  },
898
- "directory:listInstalls": {
899
- "aliases": [
900
- "directory:list-installs"
901
- ],
977
+ "review:list": {
978
+ "aliases": [],
979
+ "args": {
980
+ "appId": {
981
+ "description": "A specific App ID to filter down to (lists all apps by default)",
982
+ "name": "appId",
983
+ "required": false
984
+ }
985
+ },
986
+ "description": "List app versions currently under review",
987
+ "flags": {},
988
+ "hasDynamicHelp": false,
989
+ "hiddenAliases": [],
990
+ "id": "review:list",
991
+ "pluginAlias": "@optimizely/ocp-cli-v2",
992
+ "pluginName": "@optimizely/ocp-cli-v2",
993
+ "pluginType": "core",
994
+ "strict": true,
995
+ "enableJsonFlag": false,
996
+ "isESM": false,
997
+ "relativePath": [
998
+ "dist",
999
+ "commands",
1000
+ "review",
1001
+ "list.js"
1002
+ ]
1003
+ },
1004
+ "review:open": {
1005
+ "aliases": [],
902
1006
  "args": {
903
1007
  "appVersion": {
904
- "description": "The App ID and optional version (e.g. my_app or my_app@1.0.0)",
1008
+ "description": "App version of the review to open",
905
1009
  "name": "appVersion",
906
1010
  "required": true
907
1011
  }
908
1012
  },
909
- "description": "List installations of a specific app version",
910
- "flags": {
911
- "availability": {
912
- "char": "a",
913
- "description": "The availability zone that will be targeted (default: us)",
914
- "name": "availability",
915
- "default": "us",
916
- "hasDynamicHelp": false,
917
- "multiple": false,
918
- "type": "option"
919
- }
920
- },
1013
+ "description": "Open a review in your browser",
1014
+ "flags": {},
921
1015
  "hasDynamicHelp": false,
922
1016
  "hiddenAliases": [],
923
- "id": "directory:listInstalls",
1017
+ "id": "review:open",
924
1018
  "pluginAlias": "@optimizely/ocp-cli-v2",
925
1019
  "pluginName": "@optimizely/ocp-cli-v2",
926
1020
  "pluginType": "core",
@@ -930,27 +1024,20 @@
930
1024
  "relativePath": [
931
1025
  "dist",
932
1026
  "commands",
933
- "directory",
934
- "listInstalls.js"
1027
+ "review",
1028
+ "open.js"
935
1029
  ]
936
1030
  },
937
- "directory:listSourceFunctions": {
938
- "aliases": [
939
- "directory:list-source-functions"
940
- ],
1031
+ "directory:info": {
1032
+ "aliases": [],
941
1033
  "args": {
942
1034
  "appId": {
943
- "description": "The App ID (e.g. my_app)",
1035
+ "description": "The App ID to look up",
944
1036
  "name": "appId",
945
1037
  "required": true
946
- },
947
- "trackerId": {
948
- "description": "The Tracker ID of the installed account",
949
- "name": "trackerId",
950
- "required": true
951
1038
  }
952
1039
  },
953
- "description": "List the source functions exposed by an app installation",
1040
+ "description": "Get information about an app",
954
1041
  "flags": {
955
1042
  "availability": {
956
1043
  "char": "a",
@@ -964,7 +1051,7 @@
964
1051
  },
965
1052
  "hasDynamicHelp": false,
966
1053
  "hiddenAliases": [],
967
- "id": "directory:listSourceFunctions",
1054
+ "id": "directory:info",
968
1055
  "pluginAlias": "@optimizely/ocp-cli-v2",
969
1056
  "pluginName": "@optimizely/ocp-cli-v2",
970
1057
  "pluginType": "core",
@@ -975,65 +1062,24 @@
975
1062
  "dist",
976
1063
  "commands",
977
1064
  "directory",
978
- "listSourceFunctions.js"
1065
+ "info.js"
979
1066
  ]
980
1067
  },
981
- "directory:publish": {
1068
+ "directory:install": {
982
1069
  "aliases": [],
983
1070
  "args": {
984
1071
  "appVersion": {
985
1072
  "description": "The App ID and version (e.g. my_app@1.0.0)",
986
1073
  "name": "appVersion",
987
1074
  "required": true
988
- }
989
- },
990
- "description": "Publish (make available) a specific app version that has been reviewed and approved",
991
- "flags": {
992
- "noProgress": {
993
- "aliases": [
994
- "no-progress"
995
- ],
996
- "description": "Do not show progress spinner",
997
- "name": "noProgress",
998
- "allowNo": false,
999
- "type": "boolean"
1000
1075
  },
1001
- "noPrompt": {
1002
- "aliases": [
1003
- "no-prompt"
1004
- ],
1005
- "description": "Use default answers for prompts (default is yes, except destructive operations)",
1006
- "name": "noPrompt",
1007
- "allowNo": false,
1008
- "type": "boolean"
1009
- }
1010
- },
1011
- "hasDynamicHelp": false,
1012
- "hiddenAliases": [],
1013
- "id": "directory:publish",
1014
- "pluginAlias": "@optimizely/ocp-cli-v2",
1015
- "pluginName": "@optimizely/ocp-cli-v2",
1016
- "pluginType": "core",
1017
- "strict": true,
1018
- "enableJsonFlag": false,
1019
- "isESM": false,
1020
- "relativePath": [
1021
- "dist",
1022
- "commands",
1023
- "directory",
1024
- "publish.js"
1025
- ]
1026
- },
1027
- "directory:status": {
1028
- "aliases": [],
1029
- "args": {
1030
- "appId": {
1031
- "description": "The App ID and version to look up (e.g. myapp@1.0.0)",
1032
- "name": "appId",
1033
- "required": false
1076
+ "trackerId": {
1077
+ "description": "The Tracker ID of the account to install into",
1078
+ "name": "trackerId",
1079
+ "required": true
1034
1080
  }
1035
1081
  },
1036
- "description": "Get the status of a particular app version",
1082
+ "description": "Install a specific app version into an account",
1037
1083
  "flags": {
1038
1084
  "availability": {
1039
1085
  "char": "a",
@@ -1047,7 +1093,7 @@
1047
1093
  },
1048
1094
  "hasDynamicHelp": false,
1049
1095
  "hiddenAliases": [],
1050
- "id": "directory:status",
1096
+ "id": "directory:install",
1051
1097
  "pluginAlias": "@optimizely/ocp-cli-v2",
1052
1098
  "pluginName": "@optimizely/ocp-cli-v2",
1053
1099
  "pluginType": "core",
@@ -1058,31 +1104,23 @@
1058
1104
  "dist",
1059
1105
  "commands",
1060
1106
  "directory",
1061
- "status.js"
1107
+ "install.js"
1062
1108
  ]
1063
1109
  },
1064
- "directory:uninstall": {
1110
+ "directory:list": {
1065
1111
  "aliases": [],
1066
1112
  "args": {
1067
1113
  "appId": {
1068
- "description": "The App ID",
1114
+ "description": "A specific App ID to filter down to (lists all apps by default)",
1069
1115
  "name": "appId",
1070
- "required": true
1071
- },
1072
- "trackerId": {
1073
- "description": "The Tracker ID of the account to uninstall from",
1074
- "name": "trackerId",
1075
- "required": true
1116
+ "required": false
1076
1117
  }
1077
1118
  },
1078
- "description": "Uninstall an app from an account",
1119
+ "description": "List registered app versions",
1079
1120
  "flags": {
1080
- "noPrompt": {
1081
- "aliases": [
1082
- "no-prompt"
1083
- ],
1084
- "description": "Use default answer to any prompt question (default is yes)",
1085
- "name": "noPrompt",
1121
+ "allStatuses": {
1122
+ "description": "Include all statuses. STOPPED and ABANDONED are filtered by default",
1123
+ "name": "allStatuses",
1086
1124
  "allowNo": false,
1087
1125
  "type": "boolean"
1088
1126
  },
@@ -1098,7 +1136,7 @@
1098
1136
  },
1099
1137
  "hasDynamicHelp": false,
1100
1138
  "hiddenAliases": [],
1101
- "id": "directory:uninstall",
1139
+ "id": "directory:list",
1102
1140
  "pluginAlias": "@optimizely/ocp-cli-v2",
1103
1141
  "pluginName": "@optimizely/ocp-cli-v2",
1104
1142
  "pluginType": "core",
@@ -1109,45 +1147,27 @@
1109
1147
  "dist",
1110
1148
  "commands",
1111
1149
  "directory",
1112
- "uninstall.js"
1150
+ "list.js"
1113
1151
  ]
1114
1152
  },
1115
- "directory:unpublish": {
1116
- "aliases": [],
1153
+ "directory:listFunctions": {
1154
+ "aliases": [
1155
+ "directory:list-functions"
1156
+ ],
1117
1157
  "args": {
1118
- "appVersion": {
1119
- "description": "The App ID and version (e.g. my_app@1.0.0)",
1120
- "name": "appVersion",
1158
+ "appId": {
1159
+ "description": "The App ID (e.g. my_app)",
1160
+ "name": "appId",
1161
+ "required": true
1162
+ },
1163
+ "trackerId": {
1164
+ "description": "The Tracker ID of the installed account",
1165
+ "name": "trackerId",
1121
1166
  "required": true
1122
1167
  }
1123
1168
  },
1124
- "description": "Unpublish an app version",
1169
+ "description": "List the functions exposed by an app installation",
1125
1170
  "flags": {
1126
- "force": {
1127
- "char": "f",
1128
- "description": "Force uninstall from all accounts without confirmation",
1129
- "name": "force",
1130
- "allowNo": false,
1131
- "type": "boolean"
1132
- },
1133
- "noProgress": {
1134
- "aliases": [
1135
- "no-progress"
1136
- ],
1137
- "description": "Disable progress spinner",
1138
- "name": "noProgress",
1139
- "allowNo": false,
1140
- "type": "boolean"
1141
- },
1142
- "noPrompt": {
1143
- "aliases": [
1144
- "no-prompt"
1145
- ],
1146
- "description": "Use default answer to prompts (default yes, except destructive ops)",
1147
- "name": "noPrompt",
1148
- "allowNo": false,
1149
- "type": "boolean"
1150
- },
1151
1171
  "availability": {
1152
1172
  "char": "a",
1153
1173
  "description": "The availability zone that will be targeted (default: us)",
@@ -1160,7 +1180,7 @@
1160
1180
  },
1161
1181
  "hasDynamicHelp": false,
1162
1182
  "hiddenAliases": [],
1163
- "id": "directory:unpublish",
1183
+ "id": "directory:listFunctions",
1164
1184
  "pluginAlias": "@optimizely/ocp-cli-v2",
1165
1185
  "pluginName": "@optimizely/ocp-cli-v2",
1166
1186
  "pluginType": "core",
@@ -1171,34 +1191,22 @@
1171
1191
  "dist",
1172
1192
  "commands",
1173
1193
  "directory",
1174
- "unpublish.js"
1194
+ "listFunctions.js"
1175
1195
  ]
1176
1196
  },
1177
- "directory:upgrade": {
1178
- "aliases": [],
1197
+ "directory:listGlobalFunctions": {
1198
+ "aliases": [
1199
+ "directory:list-global-functions"
1200
+ ],
1179
1201
  "args": {
1180
1202
  "appId": {
1181
- "description": "The App ID of the app to upgrade (e.g. my_app)",
1203
+ "description": "The App ID (e.g. my_app)",
1182
1204
  "name": "appId",
1183
1205
  "required": true
1184
- },
1185
- "trackerId": {
1186
- "description": "The Tracker ID of the account to install into",
1187
- "name": "trackerId",
1188
- "required": true
1189
1206
  }
1190
1207
  },
1191
- "description": "Upgrade the Install to a specific app version",
1208
+ "description": "List the global functions exposed by an app",
1192
1209
  "flags": {
1193
- "toVersion": {
1194
- "char": "v",
1195
- "description": "The desired version (i.e. 1.0.0)",
1196
- "name": "toVersion",
1197
- "required": true,
1198
- "hasDynamicHelp": false,
1199
- "multiple": false,
1200
- "type": "option"
1201
- },
1202
1210
  "availability": {
1203
1211
  "char": "a",
1204
1212
  "description": "The availability zone that will be targeted (default: us)",
@@ -1211,7 +1219,7 @@
1211
1219
  },
1212
1220
  "hasDynamicHelp": false,
1213
1221
  "hiddenAliases": [],
1214
- "id": "directory:upgrade",
1222
+ "id": "directory:listGlobalFunctions",
1215
1223
  "pluginAlias": "@optimizely/ocp-cli-v2",
1216
1224
  "pluginName": "@optimizely/ocp-cli-v2",
1217
1225
  "pluginType": "core",
@@ -1222,149 +1230,66 @@
1222
1230
  "dist",
1223
1231
  "commands",
1224
1232
  "directory",
1225
- "upgrade.js"
1226
- ]
1227
- },
1228
- "env:get": {
1229
- "aliases": [],
1230
- "args": {},
1231
- "description": "Get the current environment of the CLI",
1232
- "flags": {},
1233
- "hasDynamicHelp": false,
1234
- "hiddenAliases": [],
1235
- "id": "env:get",
1236
- "pluginAlias": "@optimizely/ocp-cli-v2",
1237
- "pluginName": "@optimizely/ocp-cli-v2",
1238
- "pluginType": "core",
1239
- "strict": true,
1240
- "enableJsonFlag": false,
1241
- "isESM": false,
1242
- "relativePath": [
1243
- "dist",
1244
- "commands",
1245
- "env",
1246
- "get.js"
1247
- ]
1248
- },
1249
- "env:set": {
1250
- "aliases": [],
1251
- "args": {
1252
- "env": {
1253
- "description": "The environment name",
1254
- "name": "env",
1255
- "required": true
1256
- }
1257
- },
1258
- "description": "Set the current environment for the CLI",
1259
- "flags": {},
1260
- "hasDynamicHelp": false,
1261
- "hiddenAliases": [],
1262
- "id": "env:set",
1263
- "pluginAlias": "@optimizely/ocp-cli-v2",
1264
- "pluginName": "@optimizely/ocp-cli-v2",
1265
- "pluginType": "core",
1266
- "strict": true,
1267
- "enableJsonFlag": false,
1268
- "isESM": false,
1269
- "relativePath": [
1270
- "dist",
1271
- "commands",
1272
- "env",
1273
- "set.js"
1233
+ "listGlobalFunctions.js"
1274
1234
  ]
1275
1235
  },
1276
- "jobs:list": {
1277
- "aliases": [],
1278
- "args": {
1279
- "appId": {
1280
- "description": "Specific App ID to filter by",
1281
- "name": "appId",
1282
- "required": true
1283
- }
1284
- },
1285
- "description": "List jobs",
1286
- "flags": {
1287
- "version": {
1288
- "description": "Specific Versions to filter by",
1289
- "name": "version",
1290
- "hasDynamicHelp": false,
1291
- "multiple": true,
1292
- "type": "option"
1293
- },
1294
- "trackerId": {
1295
- "description": "Specific Tracker IDs to filter by",
1296
- "name": "trackerId",
1297
- "hasDynamicHelp": false,
1298
- "multiple": true,
1299
- "type": "option"
1300
- },
1301
- "function": {
1302
- "description": "Specific Job Function to filter by",
1303
- "name": "function",
1304
- "hasDynamicHelp": false,
1305
- "multiple": true,
1306
- "type": "option"
1307
- },
1308
- "status": {
1309
- "description": "Specific JobStatus to filter by. Possible values: PENDING, SCHEDULED, RUNNING, COMPLETE, ERROR, TERMINATED",
1310
- "name": "status",
1311
- "hasDynamicHelp": false,
1312
- "multiple": true,
1313
- "type": "option"
1314
- },
1315
- "minDuration": {
1316
- "description": "Show jobs that have been running longer than the given duration. (e.g. 5m = 5 minutes)",
1317
- "name": "minDuration",
1318
- "hasDynamicHelp": false,
1319
- "multiple": false,
1320
- "type": "option"
1321
- },
1322
- "sortBy": {
1323
- "description": "Column to sort the jobs by. Possible values: id, function, trackerId, status, error, createdAt, triggeredAt, scheduledAt, terminatedAt, updatedAt, duration; Default: updatedAt",
1324
- "name": "sortBy",
1325
- "default": "updatedAt",
1326
- "hasDynamicHelp": false,
1327
- "multiple": false,
1328
- "type": "option"
1329
- },
1330
- "sortDirection": {
1331
- "description": "Sort resulting jobs in ascending or descending order. Possible values: asc|desc. Default: desc",
1332
- "name": "sortDirection",
1333
- "default": "desc",
1334
- "hasDynamicHelp": false,
1335
- "multiple": false,
1336
- "type": "option"
1337
- },
1338
- "limit": {
1339
- "description": "Number of jobs to list. Default: 50",
1340
- "name": "limit",
1341
- "default": 50,
1342
- "hasDynamicHelp": false,
1343
- "multiple": false,
1344
- "type": "option"
1345
- },
1346
- "columns": {
1347
- "description": "Columns to display. Possible values: id, version, function, trackerId, trigger, status, error, createdAt, triggeredAt, scheduledAt, terminatedAt, updatedAt, duration. Default: id, version, function, trackerId, status, createdAt, updatedAt, duration",
1348
- "name": "columns",
1349
- "default": "id,version,function,trackerId,status,createdAt,updatedAt,duration",
1350
- "hasDynamicHelp": false,
1351
- "multiple": false,
1352
- "type": "option"
1353
- },
1354
- "from": {
1355
- "description": "A start time as an ISO string, an epoch timestamp, or relative string (i.e. \"5m\" for 5 minutes.) Default: 7d",
1356
- "name": "from",
1357
- "hasDynamicHelp": false,
1358
- "multiple": false,
1359
- "type": "option"
1360
- },
1361
- "to": {
1362
- "description": "An end time as an ISO string, an epoch timestamp, or relative string (i.e. \"5m\" for 5 minutes)",
1363
- "name": "to",
1236
+ "directory:listInstalls": {
1237
+ "aliases": [
1238
+ "directory:list-installs"
1239
+ ],
1240
+ "args": {
1241
+ "appVersion": {
1242
+ "description": "The App ID and optional version (e.g. my_app or my_app@1.0.0)",
1243
+ "name": "appVersion",
1244
+ "required": true
1245
+ }
1246
+ },
1247
+ "description": "List installations of a specific app version",
1248
+ "flags": {
1249
+ "availability": {
1250
+ "char": "a",
1251
+ "description": "The availability zone that will be targeted (default: us)",
1252
+ "name": "availability",
1253
+ "default": "us",
1364
1254
  "hasDynamicHelp": false,
1365
1255
  "multiple": false,
1366
1256
  "type": "option"
1257
+ }
1258
+ },
1259
+ "hasDynamicHelp": false,
1260
+ "hiddenAliases": [],
1261
+ "id": "directory:listInstalls",
1262
+ "pluginAlias": "@optimizely/ocp-cli-v2",
1263
+ "pluginName": "@optimizely/ocp-cli-v2",
1264
+ "pluginType": "core",
1265
+ "strict": true,
1266
+ "enableJsonFlag": false,
1267
+ "isESM": false,
1268
+ "relativePath": [
1269
+ "dist",
1270
+ "commands",
1271
+ "directory",
1272
+ "listInstalls.js"
1273
+ ]
1274
+ },
1275
+ "directory:listSourceFunctions": {
1276
+ "aliases": [
1277
+ "directory:list-source-functions"
1278
+ ],
1279
+ "args": {
1280
+ "appId": {
1281
+ "description": "The App ID (e.g. my_app)",
1282
+ "name": "appId",
1283
+ "required": true
1367
1284
  },
1285
+ "trackerId": {
1286
+ "description": "The Tracker ID of the installed account",
1287
+ "name": "trackerId",
1288
+ "required": true
1289
+ }
1290
+ },
1291
+ "description": "List the source functions exposed by an app installation",
1292
+ "flags": {
1368
1293
  "availability": {
1369
1294
  "char": "a",
1370
1295
  "description": "The availability zone that will be targeted (default: us)",
@@ -1377,7 +1302,7 @@
1377
1302
  },
1378
1303
  "hasDynamicHelp": false,
1379
1304
  "hiddenAliases": [],
1380
- "id": "jobs:list",
1305
+ "id": "directory:listSourceFunctions",
1381
1306
  "pluginAlias": "@optimizely/ocp-cli-v2",
1382
1307
  "pluginName": "@optimizely/ocp-cli-v2",
1383
1308
  "pluginType": "core",
@@ -1387,20 +1312,66 @@
1387
1312
  "relativePath": [
1388
1313
  "dist",
1389
1314
  "commands",
1390
- "jobs",
1391
- "list.js"
1315
+ "directory",
1316
+ "listSourceFunctions.js"
1392
1317
  ]
1393
1318
  },
1394
- "jobs:runtimeStatus": {
1319
+ "directory:publish": {
1395
1320
  "aliases": [],
1396
1321
  "args": {
1397
- "jobId": {
1398
- "description": "ID of Job to get the runtime status for",
1399
- "name": "jobId",
1322
+ "appVersion": {
1323
+ "description": "The App ID and version (e.g. my_app@1.0.0)",
1324
+ "name": "appVersion",
1400
1325
  "required": true
1401
1326
  }
1402
1327
  },
1403
- "description": "Show the runtime status of a job",
1328
+ "description": "Publish (make available) a specific app version that has been reviewed and approved",
1329
+ "flags": {
1330
+ "noProgress": {
1331
+ "aliases": [
1332
+ "no-progress"
1333
+ ],
1334
+ "description": "Do not show progress spinner",
1335
+ "name": "noProgress",
1336
+ "allowNo": false,
1337
+ "type": "boolean"
1338
+ },
1339
+ "noPrompt": {
1340
+ "aliases": [
1341
+ "no-prompt"
1342
+ ],
1343
+ "description": "Use default answers for prompts (default is yes, except destructive operations)",
1344
+ "name": "noPrompt",
1345
+ "allowNo": false,
1346
+ "type": "boolean"
1347
+ }
1348
+ },
1349
+ "hasDynamicHelp": false,
1350
+ "hiddenAliases": [],
1351
+ "id": "directory:publish",
1352
+ "pluginAlias": "@optimizely/ocp-cli-v2",
1353
+ "pluginName": "@optimizely/ocp-cli-v2",
1354
+ "pluginType": "core",
1355
+ "strict": true,
1356
+ "enableJsonFlag": false,
1357
+ "isESM": false,
1358
+ "relativePath": [
1359
+ "dist",
1360
+ "commands",
1361
+ "directory",
1362
+ "publish.js"
1363
+ ]
1364
+ },
1365
+ "directory:status": {
1366
+ "aliases": [],
1367
+ "args": {
1368
+ "appId": {
1369
+ "description": "The App ID and version to look up (e.g. myapp@1.0.0)",
1370
+ "name": "appId",
1371
+ "required": false
1372
+ }
1373
+ },
1374
+ "description": "Get the status of a particular app version",
1404
1375
  "flags": {
1405
1376
  "availability": {
1406
1377
  "char": "a",
@@ -1414,7 +1385,7 @@
1414
1385
  },
1415
1386
  "hasDynamicHelp": false,
1416
1387
  "hiddenAliases": [],
1417
- "id": "jobs:runtimeStatus",
1388
+ "id": "directory:status",
1418
1389
  "pluginAlias": "@optimizely/ocp-cli-v2",
1419
1390
  "pluginName": "@optimizely/ocp-cli-v2",
1420
1391
  "pluginType": "core",
@@ -1424,21 +1395,35 @@
1424
1395
  "relativePath": [
1425
1396
  "dist",
1426
1397
  "commands",
1427
- "jobs",
1428
- "runtimeStatus.js"
1398
+ "directory",
1399
+ "status.js"
1429
1400
  ]
1430
1401
  },
1431
- "jobs:status": {
1402
+ "directory:uninstall": {
1432
1403
  "aliases": [],
1433
1404
  "args": {
1434
- "jobId": {
1435
- "description": "The Job ID to look up",
1436
- "name": "jobId",
1437
- "required": false
1405
+ "appId": {
1406
+ "description": "The App ID",
1407
+ "name": "appId",
1408
+ "required": true
1409
+ },
1410
+ "trackerId": {
1411
+ "description": "The Tracker ID of the account to uninstall from",
1412
+ "name": "trackerId",
1413
+ "required": true
1438
1414
  }
1439
1415
  },
1440
- "description": "Get the status of a particular job id",
1416
+ "description": "Uninstall an app from an account",
1441
1417
  "flags": {
1418
+ "noPrompt": {
1419
+ "aliases": [
1420
+ "no-prompt"
1421
+ ],
1422
+ "description": "Use default answer to any prompt question (default is yes)",
1423
+ "name": "noPrompt",
1424
+ "allowNo": false,
1425
+ "type": "boolean"
1426
+ },
1442
1427
  "availability": {
1443
1428
  "char": "a",
1444
1429
  "description": "The availability zone that will be targeted (default: us)",
@@ -1451,7 +1436,7 @@
1451
1436
  },
1452
1437
  "hasDynamicHelp": false,
1453
1438
  "hiddenAliases": [],
1454
- "id": "jobs:status",
1439
+ "id": "directory:uninstall",
1455
1440
  "pluginAlias": "@optimizely/ocp-cli-v2",
1456
1441
  "pluginName": "@optimizely/ocp-cli-v2",
1457
1442
  "pluginType": "core",
@@ -1461,21 +1446,46 @@
1461
1446
  "relativePath": [
1462
1447
  "dist",
1463
1448
  "commands",
1464
- "jobs",
1465
- "status.js"
1449
+ "directory",
1450
+ "uninstall.js"
1466
1451
  ]
1467
1452
  },
1468
- "jobs:terminate": {
1453
+ "directory:unpublish": {
1469
1454
  "aliases": [],
1470
1455
  "args": {
1471
- "jobId": {
1472
- "description": "ID of Job to terminate",
1473
- "name": "jobId",
1456
+ "appVersion": {
1457
+ "description": "The App ID and version (e.g. my_app@1.0.0)",
1458
+ "name": "appVersion",
1474
1459
  "required": true
1475
1460
  }
1476
1461
  },
1477
- "description": "Terminate a job",
1462
+ "description": "Unpublish an app version",
1478
1463
  "flags": {
1464
+ "force": {
1465
+ "char": "f",
1466
+ "description": "Force uninstall from all accounts without confirmation",
1467
+ "name": "force",
1468
+ "allowNo": false,
1469
+ "type": "boolean"
1470
+ },
1471
+ "noProgress": {
1472
+ "aliases": [
1473
+ "no-progress"
1474
+ ],
1475
+ "description": "Disable progress spinner",
1476
+ "name": "noProgress",
1477
+ "allowNo": false,
1478
+ "type": "boolean"
1479
+ },
1480
+ "noPrompt": {
1481
+ "aliases": [
1482
+ "no-prompt"
1483
+ ],
1484
+ "description": "Use default answer to prompts (default yes, except destructive ops)",
1485
+ "name": "noPrompt",
1486
+ "allowNo": false,
1487
+ "type": "boolean"
1488
+ },
1479
1489
  "availability": {
1480
1490
  "char": "a",
1481
1491
  "description": "The availability zone that will be targeted (default: us)",
@@ -1488,7 +1498,7 @@
1488
1498
  },
1489
1499
  "hasDynamicHelp": false,
1490
1500
  "hiddenAliases": [],
1491
- "id": "jobs:terminate",
1501
+ "id": "directory:unpublish",
1492
1502
  "pluginAlias": "@optimizely/ocp-cli-v2",
1493
1503
  "pluginName": "@optimizely/ocp-cli-v2",
1494
1504
  "pluginType": "core",
@@ -1498,35 +1508,31 @@
1498
1508
  "relativePath": [
1499
1509
  "dist",
1500
1510
  "commands",
1501
- "jobs",
1502
- "terminate.js"
1511
+ "directory",
1512
+ "unpublish.js"
1503
1513
  ]
1504
1514
  },
1505
- "jobs:trigger": {
1515
+ "directory:upgrade": {
1506
1516
  "aliases": [],
1507
1517
  "args": {
1508
1518
  "appId": {
1509
- "description": "The App ID (e.g. my_app)",
1519
+ "description": "The App ID of the app to upgrade (e.g. my_app)",
1510
1520
  "name": "appId",
1511
1521
  "required": true
1512
1522
  },
1513
- "jobName": {
1514
- "description": "The Job Name",
1515
- "name": "jobName",
1516
- "required": true
1517
- },
1518
1523
  "trackerId": {
1519
- "description": "The Tracker ID to trigger the job for",
1524
+ "description": "The Tracker ID of the account to install into",
1520
1525
  "name": "trackerId",
1521
1526
  "required": true
1522
1527
  }
1523
1528
  },
1524
- "description": "Trigger a job",
1529
+ "description": "Upgrade the Install to a specific app version",
1525
1530
  "flags": {
1526
- "parameters": {
1527
- "description": "Parameters to pass to the Job",
1528
- "name": "parameters",
1529
- "default": "{}",
1531
+ "toVersion": {
1532
+ "char": "v",
1533
+ "description": "The desired version (i.e. 1.0.0)",
1534
+ "name": "toVersion",
1535
+ "required": true,
1530
1536
  "hasDynamicHelp": false,
1531
1537
  "multiple": false,
1532
1538
  "type": "option"
@@ -1543,7 +1549,7 @@
1543
1549
  },
1544
1550
  "hasDynamicHelp": false,
1545
1551
  "hiddenAliases": [],
1546
- "id": "jobs:trigger",
1552
+ "id": "directory:upgrade",
1547
1553
  "pluginAlias": "@optimizely/ocp-cli-v2",
1548
1554
  "pluginName": "@optimizely/ocp-cli-v2",
1549
1555
  "pluginType": "core",
@@ -1553,24 +1559,18 @@
1553
1559
  "relativePath": [
1554
1560
  "dist",
1555
1561
  "commands",
1556
- "jobs",
1557
- "trigger.js"
1562
+ "directory",
1563
+ "upgrade.js"
1558
1564
  ]
1559
1565
  },
1560
- "review:list": {
1566
+ "env:get": {
1561
1567
  "aliases": [],
1562
- "args": {
1563
- "appId": {
1564
- "description": "A specific App ID to filter down to (lists all apps by default)",
1565
- "name": "appId",
1566
- "required": false
1567
- }
1568
- },
1569
- "description": "List app versions currently under review",
1568
+ "args": {},
1569
+ "description": "Get the current environment of the CLI",
1570
1570
  "flags": {},
1571
1571
  "hasDynamicHelp": false,
1572
1572
  "hiddenAliases": [],
1573
- "id": "review:list",
1573
+ "id": "env:get",
1574
1574
  "pluginAlias": "@optimizely/ocp-cli-v2",
1575
1575
  "pluginName": "@optimizely/ocp-cli-v2",
1576
1576
  "pluginType": "core",
@@ -1580,24 +1580,24 @@
1580
1580
  "relativePath": [
1581
1581
  "dist",
1582
1582
  "commands",
1583
- "review",
1584
- "list.js"
1583
+ "env",
1584
+ "get.js"
1585
1585
  ]
1586
1586
  },
1587
- "review:open": {
1587
+ "env:set": {
1588
1588
  "aliases": [],
1589
1589
  "args": {
1590
- "appVersion": {
1591
- "description": "App version of the review to open",
1592
- "name": "appVersion",
1590
+ "env": {
1591
+ "description": "The environment name",
1592
+ "name": "env",
1593
1593
  "required": true
1594
1594
  }
1595
1595
  },
1596
- "description": "Open a review in your browser",
1596
+ "description": "Set the current environment for the CLI",
1597
1597
  "flags": {},
1598
1598
  "hasDynamicHelp": false,
1599
1599
  "hiddenAliases": [],
1600
- "id": "review:open",
1600
+ "id": "env:set",
1601
1601
  "pluginAlias": "@optimizely/ocp-cli-v2",
1602
1602
  "pluginName": "@optimizely/ocp-cli-v2",
1603
1603
  "pluginType": "core",
@@ -1607,10 +1607,10 @@
1607
1607
  "relativePath": [
1608
1608
  "dist",
1609
1609
  "commands",
1610
- "review",
1611
- "open.js"
1610
+ "env",
1611
+ "set.js"
1612
1612
  ]
1613
1613
  }
1614
1614
  },
1615
- "version": "2.0.0-beta.2"
1615
+ "version": "2.0.2"
1616
1616
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimizely/ocp-cli-v2",
3
- "version": "2.0.0-beta.2",
3
+ "version": "2.0.2",
4
4
  "description": "Optimizely Connect Platform command line interface",
5
5
  "repository": "https://github.com/ZaiusInc/ocp-cli",
6
6
  "license": "Apache-2.0",
@@ -38,7 +38,7 @@
38
38
  "@aws-sdk/client-s3": "3.896",
39
39
  "@inquirer/prompts": "^7.2.4",
40
40
  "@oclif/plugin-autocomplete": "^3.2.32",
41
- "@oclif/plugin-update": "^4.7.18",
41
+ "@oclif/plugin-update": "^4.7.27",
42
42
  "@oclif/plugin-warn-if-update-available": "^3.1.55",
43
43
  "adm-zip": "^0.4.13",
44
44
  "chalk": "^4.1.2",