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

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