swaggerhub-cli 0.12.1 → 0.13.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.
@@ -651,9 +651,17 @@
651
651
  },
652
652
  "description": "publish a domain version",
653
653
  "examples": [
654
- "swaggerhub domain:publish organization/domain/1.0.0"
654
+ "swaggerhub domain:publish organization/domain/1.0.0",
655
+ "swaggerhub domain:publish organization/domain/1.0.0 --force"
655
656
  ],
656
657
  "flags": {
658
+ "force": {
659
+ "char": "f",
660
+ "description": "publish domain without prompting for confirmation",
661
+ "name": "force",
662
+ "allowNo": false,
663
+ "type": "boolean"
664
+ },
657
665
  "help": {
658
666
  "char": "h",
659
667
  "description": "Show CLI help.",
@@ -832,47 +840,25 @@
832
840
  "update.js"
833
841
  ]
834
842
  },
835
- "project:create": {
843
+ "integration:create": {
836
844
  "aliases": [],
837
845
  "args": {
838
- "OWNER/PROJECT_NAME": {
839
- "description": "The new project to create on Swaggerhub",
840
- "name": "OWNER/PROJECT_NAME",
846
+ "OWNER/API_NAME/[VERSION]": {
847
+ "description": "API to add integration to on SwaggerHub",
848
+ "name": "OWNER/API_NAME/[VERSION]",
841
849
  "required": true
842
850
  }
843
851
  },
844
- "description": "Creates a new project in SwaggerHub.",
852
+ "description": "creates a new API integration from a JSON configuration file.\nSee the documentation for configuration files: https://github.com/SmartBear/swaggerhub-cli/tree/main/examples/integrations\nWhen VERSION is not included in the argument, the integration will be added to be default API version.\n",
845
853
  "examples": [
846
- "swaggerhub project:create organization/new_project_name --description \"project description\"",
847
- "swaggerhub project:create organization/new_project_name -a \"testapi1,testapi2\"",
848
- "swaggerhub project:create organization/new_project_name --apis \"testapi1,testapi2\"",
849
- "swaggerhub project:create organization/new_project_name -d \"testdomain3,testdomain4\"",
850
- "swaggerhub project:create organization/new_project_name --domains \"testdomain3,testdomain4\"",
851
- "swaggerhub project:create organization/new_project_name -a \"testapi1\" -d \"testdomain3\" --description \"description\""
854
+ "swaggerhub integration:create organization/api/1.0.0 --file config.json"
852
855
  ],
853
856
  "flags": {
854
- "description": {
855
- "description": "Description of project",
856
- "name": "description",
857
- "required": false,
858
- "hasDynamicHelp": false,
859
- "multiple": false,
860
- "type": "option"
861
- },
862
- "apis": {
863
- "char": "a",
864
- "description": "Comma separated list of api names to include in project",
865
- "name": "apis",
866
- "required": false,
867
- "hasDynamicHelp": false,
868
- "multiple": false,
869
- "type": "option"
870
- },
871
- "domains": {
872
- "char": "d",
873
- "description": "Comma separated list of domain names to include in project",
874
- "name": "domains",
875
- "required": false,
857
+ "file": {
858
+ "char": "f",
859
+ "description": "location of integration configuration file",
860
+ "name": "file",
861
+ "required": true,
876
862
  "hasDynamicHelp": false,
877
863
  "multiple": false,
878
864
  "type": "option"
@@ -887,7 +873,7 @@
887
873
  },
888
874
  "hasDynamicHelp": false,
889
875
  "hiddenAliases": [],
890
- "id": "project:create",
876
+ "id": "integration:create",
891
877
  "pluginAlias": "swaggerhub-cli",
892
878
  "pluginName": "swaggerhub-cli",
893
879
  "pluginType": "core",
@@ -897,22 +883,22 @@
897
883
  "relativePath": [
898
884
  "src",
899
885
  "commands",
900
- "project",
886
+ "integration",
901
887
  "create.js"
902
888
  ]
903
889
  },
904
- "project:delete": {
890
+ "integration:delete": {
905
891
  "aliases": [],
906
892
  "args": {
907
- "OWNER/PROJECT_NAME": {
908
- "description": "The project to delete on Swaggerhub",
909
- "name": "OWNER/PROJECT_NAME",
893
+ "OWNER/API_NAME/VERSION/INTEGRATION_ID": {
894
+ "description": "Integration to delete for given API on Swaggerhub",
895
+ "name": "OWNER/API_NAME/VERSION/INTEGRATION_ID",
910
896
  "required": true
911
897
  }
912
898
  },
913
- "description": "Deletes a project from SwaggerHub.",
899
+ "description": "deletes the integration from the given API.",
914
900
  "examples": [
915
- "swaggerhub project:delete organization/project_name"
901
+ "swaggerhub integration:delete organization/api/1.0.0/503c2db6-448a-4678-a310-f465429e9704"
916
902
  ],
917
903
  "flags": {
918
904
  "help": {
@@ -925,7 +911,7 @@
925
911
  },
926
912
  "hasDynamicHelp": false,
927
913
  "hiddenAliases": [],
928
- "id": "project:delete",
914
+ "id": "integration:delete",
929
915
  "pluginAlias": "swaggerhub-cli",
930
916
  "pluginName": "swaggerhub-cli",
931
917
  "pluginType": "core",
@@ -935,22 +921,22 @@
935
921
  "relativePath": [
936
922
  "src",
937
923
  "commands",
938
- "project",
924
+ "integration",
939
925
  "delete.js"
940
926
  ]
941
927
  },
942
- "project:get": {
928
+ "integration:execute": {
943
929
  "aliases": [],
944
930
  "args": {
945
- "OWNER/PROJECT_NAME": {
946
- "description": "The project to get details for on Swaggerhub",
947
- "name": "OWNER/PROJECT_NAME",
931
+ "OWNER/API_NAME/VERSION/INTEGRATION_ID": {
932
+ "description": "Integration to execute for given API on Swaggerhub",
933
+ "name": "OWNER/API_NAME/VERSION/INTEGRATION_ID",
948
934
  "required": true
949
935
  }
950
936
  },
951
- "description": "Retrieves the details for a project.",
937
+ "description": "executes an integration for the given API.",
952
938
  "examples": [
953
- "swaggerhub project:get organization/project_name"
939
+ "swaggerhub integration:execute organization/api/1.0.0/503c2db6-448a-4678-a310-f465429e9704"
954
940
  ],
955
941
  "flags": {
956
942
  "help": {
@@ -963,7 +949,7 @@
963
949
  },
964
950
  "hasDynamicHelp": false,
965
951
  "hiddenAliases": [],
966
- "id": "project:get",
952
+ "id": "integration:execute",
967
953
  "pluginAlias": "swaggerhub-cli",
968
954
  "pluginName": "swaggerhub-cli",
969
955
  "pluginType": "core",
@@ -973,23 +959,22 @@
973
959
  "relativePath": [
974
960
  "src",
975
961
  "commands",
976
- "project",
977
- "get.js"
962
+ "integration",
963
+ "execute.js"
978
964
  ]
979
965
  },
980
- "project:list": {
966
+ "integration:get": {
981
967
  "aliases": [],
982
968
  "args": {
983
- "OWNER": {
984
- "description": "The organization to list projects for on Swaggerhub",
985
- "name": "OWNER",
986
- "required": false
969
+ "OWNER/API_NAME/VERSION/INTEGRATION_ID": {
970
+ "description": "Integration to fetch for given API on Swaggerhub",
971
+ "name": "OWNER/API_NAME/VERSION/INTEGRATION_ID",
972
+ "required": true
987
973
  }
988
974
  },
989
- "description": "list projects",
975
+ "description": "retieves an integration for the given API.",
990
976
  "examples": [
991
- "swaggerhub project:list",
992
- "swaggerhub project:list organization"
977
+ "swaggerhub integration:get organization/api/1.0.0/503c2db6-448a-4678-a310-f465429e9704"
993
978
  ],
994
979
  "flags": {
995
980
  "help": {
@@ -1002,7 +987,7 @@
1002
987
  },
1003
988
  "hasDynamicHelp": false,
1004
989
  "hiddenAliases": [],
1005
- "id": "project:list",
990
+ "id": "integration:get",
1006
991
  "pluginAlias": "swaggerhub-cli",
1007
992
  "pluginName": "swaggerhub-cli",
1008
993
  "pluginType": "core",
@@ -1012,33 +997,24 @@
1012
997
  "relativePath": [
1013
998
  "src",
1014
999
  "commands",
1015
- "project",
1016
- "list.js"
1000
+ "integration",
1001
+ "get.js"
1017
1002
  ]
1018
1003
  },
1019
- "integration:create": {
1004
+ "integration:list": {
1020
1005
  "aliases": [],
1021
1006
  "args": {
1022
1007
  "OWNER/API_NAME/[VERSION]": {
1023
- "description": "API to add integration to on SwaggerHub",
1008
+ "description": "API to list integrations for on Swaggerhub",
1024
1009
  "name": "OWNER/API_NAME/[VERSION]",
1025
1010
  "required": true
1026
1011
  }
1027
1012
  },
1028
- "description": "creates a new API integration from a JSON configuration file.\nSee the documentation for configuration files: https://github.com/SmartBear/swaggerhub-cli/tree/main/examples/integrations\nWhen VERSION is not included in the argument, the integration will be added to be default API version.\n",
1013
+ "description": "list integrations on an API.",
1029
1014
  "examples": [
1030
- "swaggerhub integration:create organization/api/1.0.0 --file config.json"
1015
+ "swaggerhub integration:list organization/api/1.0.0"
1031
1016
  ],
1032
1017
  "flags": {
1033
- "file": {
1034
- "char": "f",
1035
- "description": "location of integration configuration file",
1036
- "name": "file",
1037
- "required": true,
1038
- "hasDynamicHelp": false,
1039
- "multiple": false,
1040
- "type": "option"
1041
- },
1042
1018
  "help": {
1043
1019
  "char": "h",
1044
1020
  "description": "Show CLI help.",
@@ -1049,7 +1025,7 @@
1049
1025
  },
1050
1026
  "hasDynamicHelp": false,
1051
1027
  "hiddenAliases": [],
1052
- "id": "integration:create",
1028
+ "id": "integration:list",
1053
1029
  "pluginAlias": "swaggerhub-cli",
1054
1030
  "pluginName": "swaggerhub-cli",
1055
1031
  "pluginType": "core",
@@ -1060,23 +1036,32 @@
1060
1036
  "src",
1061
1037
  "commands",
1062
1038
  "integration",
1063
- "create.js"
1039
+ "list.js"
1064
1040
  ]
1065
1041
  },
1066
- "integration:delete": {
1042
+ "integration:update": {
1067
1043
  "aliases": [],
1068
1044
  "args": {
1069
1045
  "OWNER/API_NAME/VERSION/INTEGRATION_ID": {
1070
- "description": "Integration to delete for given API on Swaggerhub",
1046
+ "description": "Integration to update for given API on Swaggerhub",
1071
1047
  "name": "OWNER/API_NAME/VERSION/INTEGRATION_ID",
1072
1048
  "required": true
1073
1049
  }
1074
1050
  },
1075
- "description": "deletes the integration from the given API.",
1051
+ "description": "update the configuration of an API integration.",
1076
1052
  "examples": [
1077
- "swaggerhub integration:delete organization/api/1.0.0/503c2db6-448a-4678-a310-f465429e9704"
1053
+ "swaggerhub integration:update organization/api/1.0.0/503c2db6-448a-4678-abcd-0123456789abc --file config.json"
1078
1054
  ],
1079
1055
  "flags": {
1056
+ "file": {
1057
+ "char": "f",
1058
+ "description": "location of integration configuration file",
1059
+ "name": "file",
1060
+ "required": true,
1061
+ "hasDynamicHelp": false,
1062
+ "multiple": false,
1063
+ "type": "option"
1064
+ },
1080
1065
  "help": {
1081
1066
  "char": "h",
1082
1067
  "description": "Show CLI help.",
@@ -1087,7 +1072,7 @@
1087
1072
  },
1088
1073
  "hasDynamicHelp": false,
1089
1074
  "hiddenAliases": [],
1090
- "id": "integration:delete",
1075
+ "id": "integration:update",
1091
1076
  "pluginAlias": "swaggerhub-cli",
1092
1077
  "pluginName": "swaggerhub-cli",
1093
1078
  "pluginType": "core",
@@ -1098,23 +1083,54 @@
1098
1083
  "src",
1099
1084
  "commands",
1100
1085
  "integration",
1101
- "delete.js"
1086
+ "update.js"
1102
1087
  ]
1103
1088
  },
1104
- "integration:execute": {
1089
+ "project:create": {
1105
1090
  "aliases": [],
1106
1091
  "args": {
1107
- "OWNER/API_NAME/VERSION/INTEGRATION_ID": {
1108
- "description": "Integration to execute for given API on Swaggerhub",
1109
- "name": "OWNER/API_NAME/VERSION/INTEGRATION_ID",
1092
+ "OWNER/PROJECT_NAME": {
1093
+ "description": "The new project to create on Swaggerhub",
1094
+ "name": "OWNER/PROJECT_NAME",
1110
1095
  "required": true
1111
1096
  }
1112
1097
  },
1113
- "description": "executes an integration for the given API.",
1098
+ "description": "Creates a new project in SwaggerHub.",
1114
1099
  "examples": [
1115
- "swaggerhub integration:execute organization/api/1.0.0/503c2db6-448a-4678-a310-f465429e9704"
1100
+ "swaggerhub project:create organization/new_project_name --description \"project description\"",
1101
+ "swaggerhub project:create organization/new_project_name -a \"testapi1,testapi2\"",
1102
+ "swaggerhub project:create organization/new_project_name --apis \"testapi1,testapi2\"",
1103
+ "swaggerhub project:create organization/new_project_name -d \"testdomain3,testdomain4\"",
1104
+ "swaggerhub project:create organization/new_project_name --domains \"testdomain3,testdomain4\"",
1105
+ "swaggerhub project:create organization/new_project_name -a \"testapi1\" -d \"testdomain3\" --description \"description\""
1116
1106
  ],
1117
1107
  "flags": {
1108
+ "description": {
1109
+ "description": "Description of project",
1110
+ "name": "description",
1111
+ "required": false,
1112
+ "hasDynamicHelp": false,
1113
+ "multiple": false,
1114
+ "type": "option"
1115
+ },
1116
+ "apis": {
1117
+ "char": "a",
1118
+ "description": "Comma separated list of api names to include in project",
1119
+ "name": "apis",
1120
+ "required": false,
1121
+ "hasDynamicHelp": false,
1122
+ "multiple": false,
1123
+ "type": "option"
1124
+ },
1125
+ "domains": {
1126
+ "char": "d",
1127
+ "description": "Comma separated list of domain names to include in project",
1128
+ "name": "domains",
1129
+ "required": false,
1130
+ "hasDynamicHelp": false,
1131
+ "multiple": false,
1132
+ "type": "option"
1133
+ },
1118
1134
  "help": {
1119
1135
  "char": "h",
1120
1136
  "description": "Show CLI help.",
@@ -1125,7 +1141,7 @@
1125
1141
  },
1126
1142
  "hasDynamicHelp": false,
1127
1143
  "hiddenAliases": [],
1128
- "id": "integration:execute",
1144
+ "id": "project:create",
1129
1145
  "pluginAlias": "swaggerhub-cli",
1130
1146
  "pluginName": "swaggerhub-cli",
1131
1147
  "pluginType": "core",
@@ -1135,22 +1151,22 @@
1135
1151
  "relativePath": [
1136
1152
  "src",
1137
1153
  "commands",
1138
- "integration",
1139
- "execute.js"
1154
+ "project",
1155
+ "create.js"
1140
1156
  ]
1141
1157
  },
1142
- "integration:get": {
1158
+ "project:delete": {
1143
1159
  "aliases": [],
1144
1160
  "args": {
1145
- "OWNER/API_NAME/VERSION/INTEGRATION_ID": {
1146
- "description": "Integration to fetch for given API on Swaggerhub",
1147
- "name": "OWNER/API_NAME/VERSION/INTEGRATION_ID",
1161
+ "OWNER/PROJECT_NAME": {
1162
+ "description": "The project to delete on Swaggerhub",
1163
+ "name": "OWNER/PROJECT_NAME",
1148
1164
  "required": true
1149
1165
  }
1150
1166
  },
1151
- "description": "retieves an integration for the given API.",
1167
+ "description": "Deletes a project from SwaggerHub.",
1152
1168
  "examples": [
1153
- "swaggerhub integration:get organization/api/1.0.0/503c2db6-448a-4678-a310-f465429e9704"
1169
+ "swaggerhub project:delete organization/project_name"
1154
1170
  ],
1155
1171
  "flags": {
1156
1172
  "help": {
@@ -1163,7 +1179,7 @@
1163
1179
  },
1164
1180
  "hasDynamicHelp": false,
1165
1181
  "hiddenAliases": [],
1166
- "id": "integration:get",
1182
+ "id": "project:delete",
1167
1183
  "pluginAlias": "swaggerhub-cli",
1168
1184
  "pluginName": "swaggerhub-cli",
1169
1185
  "pluginType": "core",
@@ -1173,22 +1189,22 @@
1173
1189
  "relativePath": [
1174
1190
  "src",
1175
1191
  "commands",
1176
- "integration",
1177
- "get.js"
1192
+ "project",
1193
+ "delete.js"
1178
1194
  ]
1179
1195
  },
1180
- "integration:list": {
1196
+ "project:get": {
1181
1197
  "aliases": [],
1182
1198
  "args": {
1183
- "OWNER/API_NAME/[VERSION]": {
1184
- "description": "API to list integrations for on Swaggerhub",
1185
- "name": "OWNER/API_NAME/[VERSION]",
1199
+ "OWNER/PROJECT_NAME": {
1200
+ "description": "The project to get details for on Swaggerhub",
1201
+ "name": "OWNER/PROJECT_NAME",
1186
1202
  "required": true
1187
1203
  }
1188
1204
  },
1189
- "description": "list integrations on an API.",
1205
+ "description": "Retrieves the details for a project.",
1190
1206
  "examples": [
1191
- "swaggerhub integration:list organization/api/1.0.0"
1207
+ "swaggerhub project:get organization/project_name"
1192
1208
  ],
1193
1209
  "flags": {
1194
1210
  "help": {
@@ -1201,7 +1217,7 @@
1201
1217
  },
1202
1218
  "hasDynamicHelp": false,
1203
1219
  "hiddenAliases": [],
1204
- "id": "integration:list",
1220
+ "id": "project:get",
1205
1221
  "pluginAlias": "swaggerhub-cli",
1206
1222
  "pluginName": "swaggerhub-cli",
1207
1223
  "pluginType": "core",
@@ -1211,44 +1227,64 @@
1211
1227
  "relativePath": [
1212
1228
  "src",
1213
1229
  "commands",
1214
- "integration",
1215
- "list.js"
1230
+ "project",
1231
+ "get.js"
1216
1232
  ]
1217
1233
  },
1218
- "integration:update": {
1234
+ "project:list": {
1219
1235
  "aliases": [],
1220
1236
  "args": {
1221
- "OWNER/API_NAME/VERSION/INTEGRATION_ID": {
1222
- "description": "Integration to update for given API on Swaggerhub",
1223
- "name": "OWNER/API_NAME/VERSION/INTEGRATION_ID",
1224
- "required": true
1237
+ "OWNER": {
1238
+ "description": "The organization to list projects for on Swaggerhub",
1239
+ "name": "OWNER",
1240
+ "required": false
1225
1241
  }
1226
1242
  },
1227
- "description": "update the configuration of an API integration.",
1243
+ "description": "list projects",
1228
1244
  "examples": [
1229
- "swaggerhub integration:update organization/api/1.0.0/503c2db6-448a-4678-abcd-0123456789abc --file config.json"
1245
+ "swaggerhub project:list",
1246
+ "swaggerhub project:list organization",
1247
+ "swaggerhub project:list organization --limit 20 --order DESC",
1248
+ "swaggerhub project:list organization --page 2 --limit 20"
1230
1249
  ],
1231
1250
  "flags": {
1232
- "file": {
1233
- "char": "f",
1234
- "description": "location of integration configuration file",
1235
- "name": "file",
1236
- "required": true,
1237
- "hasDynamicHelp": false,
1238
- "multiple": false,
1239
- "type": "option"
1240
- },
1241
1251
  "help": {
1242
1252
  "char": "h",
1243
1253
  "description": "Show CLI help.",
1244
1254
  "name": "help",
1245
1255
  "allowNo": false,
1246
1256
  "type": "boolean"
1257
+ },
1258
+ "limit": {
1259
+ "char": "l",
1260
+ "description": "number of projects per page (1-100)",
1261
+ "name": "limit",
1262
+ "hasDynamicHelp": false,
1263
+ "multiple": false,
1264
+ "type": "option"
1265
+ },
1266
+ "page": {
1267
+ "description": "zero-based page of projects to return",
1268
+ "name": "page",
1269
+ "hasDynamicHelp": false,
1270
+ "multiple": false,
1271
+ "type": "option"
1272
+ },
1273
+ "order": {
1274
+ "description": "sort order of the projects",
1275
+ "name": "order",
1276
+ "hasDynamicHelp": false,
1277
+ "multiple": false,
1278
+ "options": [
1279
+ "ASC",
1280
+ "DESC"
1281
+ ],
1282
+ "type": "option"
1247
1283
  }
1248
1284
  },
1249
1285
  "hasDynamicHelp": false,
1250
1286
  "hiddenAliases": [],
1251
- "id": "integration:update",
1287
+ "id": "project:list",
1252
1288
  "pluginAlias": "swaggerhub-cli",
1253
1289
  "pluginName": "swaggerhub-cli",
1254
1290
  "pluginType": "core",
@@ -1258,8 +1294,8 @@
1258
1294
  "relativePath": [
1259
1295
  "src",
1260
1296
  "commands",
1261
- "integration",
1262
- "update.js"
1297
+ "project",
1298
+ "list.js"
1263
1299
  ]
1264
1300
  },
1265
1301
  "spectral:download": {
@@ -1525,23 +1561,23 @@
1525
1561
  "local.js"
1526
1562
  ]
1527
1563
  },
1528
- "project:api:add": {
1564
+ "project:domain:add": {
1529
1565
  "aliases": [],
1530
1566
  "args": {
1531
1567
  "OWNER/PROJECT_NAME": {
1532
- "description": "The project to add the API to on Swaggerhub",
1568
+ "description": "The project to add the domain to on Swaggerhub",
1533
1569
  "name": "OWNER/PROJECT_NAME",
1534
1570
  "required": true
1535
1571
  },
1536
- "API": {
1537
- "description": "The name of the API on Swaggerhub to add",
1538
- "name": "API",
1572
+ "DOMAIN": {
1573
+ "description": "The name of the domain on Swaggerhub to add",
1574
+ "name": "DOMAIN",
1539
1575
  "required": true
1540
1576
  }
1541
1577
  },
1542
- "description": "Adds an API to an existing project.",
1578
+ "description": "Adds a domain to an existing project.",
1543
1579
  "examples": [
1544
- "swaggerhub project:api:add organization/project_name my_api"
1580
+ "swaggerhub project:domain:add organization/project_name my_domain"
1545
1581
  ],
1546
1582
  "flags": {
1547
1583
  "help": {
@@ -1554,7 +1590,7 @@
1554
1590
  },
1555
1591
  "hasDynamicHelp": false,
1556
1592
  "hiddenAliases": [],
1557
- "id": "project:api:add",
1593
+ "id": "project:domain:add",
1558
1594
  "pluginAlias": "swaggerhub-cli",
1559
1595
  "pluginName": "swaggerhub-cli",
1560
1596
  "pluginType": "core",
@@ -1565,27 +1601,27 @@
1565
1601
  "src",
1566
1602
  "commands",
1567
1603
  "project",
1568
- "api",
1604
+ "domain",
1569
1605
  "add.js"
1570
1606
  ]
1571
1607
  },
1572
- "project:api:remove": {
1608
+ "project:domain:remove": {
1573
1609
  "aliases": [],
1574
1610
  "args": {
1575
1611
  "OWNER/PROJECT_NAME": {
1576
- "description": "The project to remove the API from on Swaggerhub",
1612
+ "description": "The project to remove the domain from on Swaggerhub",
1577
1613
  "name": "OWNER/PROJECT_NAME",
1578
1614
  "required": true
1579
1615
  },
1580
- "API": {
1581
- "description": "The name of the API on Swaggerhub to remove",
1582
- "name": "API",
1616
+ "DOMAIN": {
1617
+ "description": "The name of the domain on Swaggerhub to remove",
1618
+ "name": "DOMAIN",
1583
1619
  "required": true
1584
1620
  }
1585
1621
  },
1586
- "description": "Removes an API from a project in SwaggerHub.",
1622
+ "description": "Removes a domain from a project in SwaggerHub.",
1587
1623
  "examples": [
1588
- "swaggerhub project:api:remove organization/project_name my_api"
1624
+ "swaggerhub project:domain:remove organization/project_name my_domain"
1589
1625
  ],
1590
1626
  "flags": {
1591
1627
  "help": {
@@ -1598,7 +1634,7 @@
1598
1634
  },
1599
1635
  "hasDynamicHelp": false,
1600
1636
  "hiddenAliases": [],
1601
- "id": "project:api:remove",
1637
+ "id": "project:domain:remove",
1602
1638
  "pluginAlias": "swaggerhub-cli",
1603
1639
  "pluginName": "swaggerhub-cli",
1604
1640
  "pluginType": "core",
@@ -1609,27 +1645,27 @@
1609
1645
  "src",
1610
1646
  "commands",
1611
1647
  "project",
1612
- "api",
1648
+ "domain",
1613
1649
  "remove.js"
1614
1650
  ]
1615
1651
  },
1616
- "project:domain:add": {
1652
+ "project:api:add": {
1617
1653
  "aliases": [],
1618
1654
  "args": {
1619
1655
  "OWNER/PROJECT_NAME": {
1620
- "description": "The project to add the domain to on Swaggerhub",
1656
+ "description": "The project to add the API to on Swaggerhub",
1621
1657
  "name": "OWNER/PROJECT_NAME",
1622
1658
  "required": true
1623
1659
  },
1624
- "DOMAIN": {
1625
- "description": "The name of the domain on Swaggerhub to add",
1626
- "name": "DOMAIN",
1660
+ "API": {
1661
+ "description": "The name of the API on Swaggerhub to add",
1662
+ "name": "API",
1627
1663
  "required": true
1628
1664
  }
1629
1665
  },
1630
- "description": "Adds a domain to an existing project.",
1666
+ "description": "Adds an API to an existing project.",
1631
1667
  "examples": [
1632
- "swaggerhub project:domain:add organization/project_name my_domain"
1668
+ "swaggerhub project:api:add organization/project_name my_api"
1633
1669
  ],
1634
1670
  "flags": {
1635
1671
  "help": {
@@ -1642,7 +1678,7 @@
1642
1678
  },
1643
1679
  "hasDynamicHelp": false,
1644
1680
  "hiddenAliases": [],
1645
- "id": "project:domain:add",
1681
+ "id": "project:api:add",
1646
1682
  "pluginAlias": "swaggerhub-cli",
1647
1683
  "pluginName": "swaggerhub-cli",
1648
1684
  "pluginType": "core",
@@ -1653,27 +1689,27 @@
1653
1689
  "src",
1654
1690
  "commands",
1655
1691
  "project",
1656
- "domain",
1692
+ "api",
1657
1693
  "add.js"
1658
1694
  ]
1659
1695
  },
1660
- "project:domain:remove": {
1696
+ "project:api:remove": {
1661
1697
  "aliases": [],
1662
1698
  "args": {
1663
1699
  "OWNER/PROJECT_NAME": {
1664
- "description": "The project to remove the domain from on Swaggerhub",
1700
+ "description": "The project to remove the API from on Swaggerhub",
1665
1701
  "name": "OWNER/PROJECT_NAME",
1666
1702
  "required": true
1667
1703
  },
1668
- "DOMAIN": {
1669
- "description": "The name of the domain on Swaggerhub to remove",
1670
- "name": "DOMAIN",
1704
+ "API": {
1705
+ "description": "The name of the API on Swaggerhub to remove",
1706
+ "name": "API",
1671
1707
  "required": true
1672
1708
  }
1673
1709
  },
1674
- "description": "Removes a domain from a project in SwaggerHub.",
1710
+ "description": "Removes an API from a project in SwaggerHub.",
1675
1711
  "examples": [
1676
- "swaggerhub project:domain:remove organization/project_name my_domain"
1712
+ "swaggerhub project:api:remove organization/project_name my_api"
1677
1713
  ],
1678
1714
  "flags": {
1679
1715
  "help": {
@@ -1686,7 +1722,7 @@
1686
1722
  },
1687
1723
  "hasDynamicHelp": false,
1688
1724
  "hiddenAliases": [],
1689
- "id": "project:domain:remove",
1725
+ "id": "project:api:remove",
1690
1726
  "pluginAlias": "swaggerhub-cli",
1691
1727
  "pluginName": "swaggerhub-cli",
1692
1728
  "pluginType": "core",
@@ -1697,7 +1733,7 @@
1697
1733
  "src",
1698
1734
  "commands",
1699
1735
  "project",
1700
- "domain",
1736
+ "api",
1701
1737
  "remove.js"
1702
1738
  ]
1703
1739
  },
@@ -1741,5 +1777,5 @@
1741
1777
  ]
1742
1778
  }
1743
1779
  },
1744
- "version": "0.12.1"
1780
+ "version": "0.13.0"
1745
1781
  }