airborne-core-cli 0.27.0 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,30 @@
2
2
  All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.
3
3
 
4
4
  - - -
5
+ ## airborne_core_cli-v0.3.0 - 2026-03-26
6
+ #### Features
7
+ - add platform-specific configuration and improve file processing and update smithy-cli-generator submodule - (823cfe5) - Yash Rajput
8
+
9
+ - - -
10
+
11
+ ## v0.27.0 - 2026-03-26
12
+ #### Miscellaneous Chores
13
+ - **(version)** v0.27.0 [skip ci] - (75587e4) - Airborne Bot
14
+
15
+ - - -
16
+
17
+ ## v0.26.1 - 2026-03-26
18
+ #### Miscellaneous Chores
19
+ - **(version)** v0.26.1 [skip ci] - (7b0b420) - Airborne Bot
20
+
21
+ - - -
22
+
23
+ ## v0.26.0 - 2026-03-26
24
+ #### Miscellaneous Chores
25
+ - **(version)** v0.26.0 [skip ci] - (e987bfa) - Airborne Bot
26
+
27
+ - - -
28
+
5
29
  ## airborne_core_cli-v0.2.5 - 2026-03-09
6
30
  #### Bug Fixes
7
31
  - update cli - (7a9f6ff) - Yash Rajput
package/action.js CHANGED
@@ -148,7 +148,7 @@ export async function CreateApplicationAction(paramsFile, options){
148
148
 
149
149
 
150
150
 
151
- const client = await getClient(options.token, true);
151
+ const client = await getClient(finalOptions.token, true);
152
152
  const command = new CreateApplicationCommand(finalOptions);
153
153
  return await client.send(command);
154
154
  }
@@ -172,7 +172,7 @@ export async function CreateDimensionAction(paramsFile, options){
172
172
 
173
173
 
174
174
 
175
- const client = await getClient(options.token, true);
175
+ const client = await getClient(finalOptions.token, true);
176
176
  const command = new CreateDimensionCommand(finalOptions);
177
177
  return await client.send(command);
178
178
  }
@@ -201,7 +201,7 @@ export async function CreateFileAction(paramsFile, options){
201
201
  finalOptions.metadata = JSON.stringify(finalOptions.metadata);
202
202
  }
203
203
 
204
- const client = await getClient(options.token, true);
204
+ const client = await getClient(finalOptions.token, true);
205
205
  const command = new CreateFileCommand(finalOptions);
206
206
  return await client.send(command);
207
207
  }
@@ -225,7 +225,7 @@ export async function CreateOrganisationAction(paramsFile, options){
225
225
 
226
226
 
227
227
 
228
- const client = await getClient(options.token, true);
228
+ const client = await getClient(finalOptions.token, true);
229
229
  const command = new CreateOrganisationCommand(finalOptions);
230
230
  return await client.send(command);
231
231
  }
@@ -249,7 +249,7 @@ export async function CreatePackageAction(paramsFile, options){
249
249
 
250
250
 
251
251
 
252
- const client = await getClient(options.token, true);
252
+ const client = await getClient(finalOptions.token, true);
253
253
  const command = new CreatePackageCommand(finalOptions);
254
254
  return await client.send(command);
255
255
  }
@@ -273,7 +273,7 @@ export async function CreateReleaseAction(paramsFile, options){
273
273
 
274
274
 
275
275
 
276
- const client = await getClient(options.token, true);
276
+ const client = await getClient(finalOptions.token, true);
277
277
  const command = new CreateReleaseCommand(finalOptions);
278
278
  return await client.send(command);
279
279
  }
@@ -297,7 +297,7 @@ export async function DeleteDimensionAction(paramsFile, options){
297
297
 
298
298
 
299
299
 
300
- const client = await getClient(options.token, true);
300
+ const client = await getClient(finalOptions.token, true);
301
301
  const command = new DeleteDimensionCommand(finalOptions);
302
302
  return await client.send(command);
303
303
  }
@@ -321,7 +321,7 @@ export async function GetReleaseAction(paramsFile, options){
321
321
 
322
322
 
323
323
 
324
- const client = await getClient(options.token, true);
324
+ const client = await getClient(finalOptions.token, true);
325
325
  const command = new GetReleaseCommand(finalOptions);
326
326
  return await client.send(command);
327
327
  }
@@ -345,7 +345,7 @@ export async function GetUserAction(paramsFile, options){
345
345
 
346
346
 
347
347
 
348
- const client = await getClient(options.token, true);
348
+ const client = await getClient(finalOptions.token, true);
349
349
  const command = new GetUserCommand(finalOptions);
350
350
  return await client.send(command);
351
351
  }
@@ -369,7 +369,7 @@ export async function ListDimensionsAction(paramsFile, options){
369
369
 
370
370
 
371
371
 
372
- const client = await getClient(options.token, true);
372
+ const client = await getClient(finalOptions.token, true);
373
373
  const command = new ListDimensionsCommand(finalOptions);
374
374
  return await client.send(command);
375
375
  }
@@ -393,7 +393,7 @@ export async function ListFileGroupsAction(paramsFile, options){
393
393
 
394
394
 
395
395
 
396
- const client = await getClient(options.token, true);
396
+ const client = await getClient(finalOptions.token, true);
397
397
  const command = new ListFileGroupsCommand(finalOptions);
398
398
  return await client.send(command);
399
399
  }
@@ -417,7 +417,7 @@ export async function ListFilesAction(paramsFile, options){
417
417
 
418
418
 
419
419
 
420
- const client = await getClient(options.token, true);
420
+ const client = await getClient(finalOptions.token, true);
421
421
  const command = new ListFilesCommand(finalOptions);
422
422
  return await client.send(command);
423
423
  }
@@ -441,7 +441,7 @@ export async function ListOrganisationsAction(paramsFile, options){
441
441
 
442
442
 
443
443
 
444
- const client = await getClient(options.token, true);
444
+ const client = await getClient(finalOptions.token, true);
445
445
  const command = new ListOrganisationsCommand(finalOptions);
446
446
  return await client.send(command);
447
447
  }
@@ -465,7 +465,7 @@ export async function ListPackagesAction(paramsFile, options){
465
465
 
466
466
 
467
467
 
468
- const client = await getClient(options.token, true);
468
+ const client = await getClient(finalOptions.token, true);
469
469
  const command = new ListPackagesCommand(finalOptions);
470
470
  return await client.send(command);
471
471
  }
@@ -489,7 +489,7 @@ export async function ListReleasesAction(paramsFile, options){
489
489
 
490
490
 
491
491
 
492
- const client = await getClient(options.token, true);
492
+ const client = await getClient(finalOptions.token, true);
493
493
  const command = new ListReleasesCommand(finalOptions);
494
494
  return await client.send(command);
495
495
  }
@@ -537,7 +537,7 @@ export async function RequestOrganisationAction(paramsFile, options){
537
537
 
538
538
 
539
539
 
540
- const client = await getClient(options.token, true);
540
+ const client = await getClient(finalOptions.token, true);
541
541
  const command = new RequestOrganisationCommand(finalOptions);
542
542
  return await client.send(command);
543
543
  }
@@ -561,7 +561,7 @@ export async function ServeReleaseAction(paramsFile, options){
561
561
 
562
562
 
563
563
 
564
- const client = await getClient(options.token, true);
564
+ const client = await getClient(finalOptions.token, true);
565
565
  const command = new ServeReleaseCommand(finalOptions);
566
566
  return await client.send(command);
567
567
  }
@@ -585,7 +585,7 @@ export async function ServeReleaseV2Action(paramsFile, options){
585
585
 
586
586
 
587
587
 
588
- const client = await getClient(options.token, true);
588
+ const client = await getClient(finalOptions.token, true);
589
589
  const command = new ServeReleaseV2Command(finalOptions);
590
590
  return await client.send(command);
591
591
  }
@@ -609,7 +609,7 @@ export async function UpdateDimensionAction(paramsFile, options){
609
609
 
610
610
 
611
611
 
612
- const client = await getClient(options.token, true);
612
+ const client = await getClient(finalOptions.token, true);
613
613
  const command = new UpdateDimensionCommand(finalOptions);
614
614
  return await client.send(command);
615
615
  }
@@ -642,7 +642,7 @@ export async function UploadFileAction(paramsFile, options){
642
642
 
643
643
 
644
644
 
645
- const client = await getClient(options.token, true);
645
+ const client = await getClient(finalOptions.token, true);
646
646
  const command = new UploadFileCommand(finalOptions);
647
647
  return await client.send(command);
648
648
  }
package/index.js CHANGED
@@ -67,7 +67,6 @@ export async function getBaseUrl() {
67
67
  const config = await readConfigFile();
68
68
  return config.baseUrl || null; // return null if not set
69
69
  } catch (err) {
70
- console.error("Error reading endpoint:", err);
71
70
  return null;
72
71
  }
73
72
  }
@@ -117,7 +116,7 @@ function printColoredJSON(obj, indent = 2) {
117
116
  const program = new Command()
118
117
  .name("airborne-core-cli")
119
118
  .description("Command-line interface for Airborne OTA operations")
120
- .version("0.27.0");
119
+ .version("0.29.0");
121
120
 
122
121
  program
123
122
  .command("CreateApplication")
@@ -1113,7 +1112,11 @@ program
1113
1112
  return parsed;
1114
1113
  })
1115
1114
  .option("--search <search>", "search parameter")
1116
- .option("--all <all>", "all parameter")
1115
+ .option("--all <all>", "all parameter", (value) => {
1116
+ if (value.toLowerCase() === 'true') return true;
1117
+ if (value.toLowerCase() === 'false') return false;
1118
+ throw new Error("--all must be true or false");
1119
+ })
1117
1120
  .option("--organisation <organisation>", "organisation parameter")
1118
1121
  .option("--application <application>", "application parameter")
1119
1122
  .option("--token <token>", "Bearer token for authentication")
@@ -1202,7 +1205,11 @@ program
1202
1205
  }
1203
1206
  return parsed;
1204
1207
  })
1205
- .option("--all <all>", "all parameter")
1208
+ .option("--all <all>", "all parameter", (value) => {
1209
+ if (value.toLowerCase() === 'true') return true;
1210
+ if (value.toLowerCase() === 'false') return false;
1211
+ throw new Error("--all must be true or false");
1212
+ })
1206
1213
  .option("--status <status>", "status parameter")
1207
1214
  .option("--organisation <organisation>", "organisation parameter")
1208
1215
  .option("--application <application>", "application parameter")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "airborne-core-cli",
3
- "version": "0.27.0",
3
+ "version": "0.29.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "airborne-core-cli": "bin.js"