@contrail/cli 3.6.0-alpha-8-alpha.53e9604 → 3.6.0-alpha-8-alpha.45c63ad

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/README.md CHANGED
@@ -17,7 +17,7 @@ $ npm install -g @contrail/cli
17
17
  $ contrail COMMAND
18
18
  running command...
19
19
  $ contrail (--version)
20
- @contrail/cli/3.6.0-alpha-8-alpha.53e9604 linux-x64 node-v24.22.1
20
+ @contrail/cli/3.6.0-alpha-8-alpha.45c63ad linux-x64 node-v24.22.1
21
21
  $ contrail --help [COMMAND]
22
22
  USAGE
23
23
  $ contrail COMMAND
@@ -51,9 +51,9 @@ To get instructions on how to set up autocomplete for your shell, run `contrail
51
51
  * [`contrail config list`](#contrail-config-list)
52
52
  * [`contrail config set`](#contrail-config-set)
53
53
  * [`contrail config use [NAME]`](#contrail-config-use-name)
54
- * [`contrail entities create PATH`](#contrail-entities-create-path)
54
+ * [`contrail entities create ENTITYNAME`](#contrail-entities-create-entityname)
55
55
  * [`contrail entities delete ENTITYNAME [IDS]`](#contrail-entities-delete-entityname-ids)
56
- * [`contrail entities get TYPEPATH [IDS]`](#contrail-entities-get-typepath-ids)
56
+ * [`contrail entities get ENTITYNAME [IDS]`](#contrail-entities-get-entityname-ids)
57
57
  * [`contrail entities update ENTITYNAME [IDS]`](#contrail-entities-update-entityname-ids)
58
58
  * [`contrail feature-flags export`](#contrail-feature-flags-export)
59
59
  * [`contrail feature-flags import`](#contrail-feature-flags-import)
@@ -543,17 +543,17 @@ EXAMPLES
543
543
  $ contrail config use demo-org
544
544
  ```
545
545
 
546
- ## `contrail entities create PATH`
546
+ ## `contrail entities create ENTITYNAME`
547
547
 
548
548
  Create entities
549
549
 
550
550
  ```
551
551
  USAGE
552
- $ contrail entities create PATH [-l error|warn|info|debug] [-e true|false] [-n <value>] [-d] [-i <value>] [-o
552
+ $ contrail entities create ENTITYNAME [-l error|warn|info|debug] [-e true|false] [-n <value>] [-d] [-i <value>] [-o
553
553
  <value>] [-g] [-r] [-S] [--suffix <value>] [--apiVersion 1|2]
554
554
 
555
555
  ARGUMENTS
556
- PATH Path of the entity type to create
556
+ ENTITYNAME The name of the entity type to create
557
557
 
558
558
  FLAGS
559
559
  -S, --skipHydrateRelationships If true, does not hydrate relationships for the created entities
@@ -563,7 +563,7 @@ FLAGS
563
563
  -g, --generateValues If true, generates random values for properties that are not specified. By default,
564
564
  only specified properties are used.
565
565
  -i, --inputFile=<value> A file with a JSON array of objects where each object is one entity to create. Cannot
566
- be used with --count. Unless --generate-values is specified, only the properties in
566
+ be used with --count. Unless --generateValues is specified, only the properties in
567
567
  the file will be used.
568
568
  -l, --logLevel=<option> The Log Level
569
569
  <options: error|warn|info|debug>
@@ -635,18 +635,18 @@ EXAMPLES
635
635
  $ contrail entities delete item -i ids.json
636
636
  ```
637
637
 
638
- ## `contrail entities get TYPEPATH [IDS]`
638
+ ## `contrail entities get ENTITYNAME [IDS]`
639
639
 
640
640
  Get an entity
641
641
 
642
642
  ```
643
643
  USAGE
644
- $ contrail entities get TYPEPATH [IDS] [-l error|warn|info|debug] [-e true|false] [-o <value>] [-p <value>] [-P]
645
- [-s <value>] [-S] [-t <value>] [-r <value>] [--suffix <value>] [--apiVersion 1|2]
644
+ $ contrail entities get ENTITYNAME [IDS] [-l error|warn|info|debug] [-e true|false] [-o <value>] [-p <value>]
645
+ [-P] [-s <value>] [-S] [-t <value>] [-r <value>] [--suffix <value>] [--apiVersion 1|2]
646
646
 
647
647
  ARGUMENTS
648
- TYPEPATH The name of the entity type to fetch
649
- IDS One or more entity ids; shorthand for the id/ids criteria
648
+ ENTITYNAME The name of the entity type to fetch
649
+ IDS One or more entity ids; shorthand for the id/ids criteria
650
650
 
651
651
  FLAGS
652
652
  -P, --paginated If true, fetches all entities in a paginated manner
@@ -20,7 +20,7 @@ export default class CreateEntity extends BaseCommand {
20
20
  logLevel: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
21
21
  };
22
22
  static args: {
23
- path: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
23
+ entityName: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
24
24
  };
25
25
  static strict: boolean;
26
26
  init(): Promise<void>;
@@ -154,7 +154,7 @@ class CreateEntity extends basecommand_1.BaseCommand {
154
154
  }),
155
155
  inputFile: core_1.Flags.string({
156
156
  char: 'i',
157
- description: 'A file with a JSON array of objects where each object is one entity to create. Cannot be used with --count. Unless --generate-values is specified, only the properties in the file will be used.',
157
+ description: 'A file with a JSON array of objects where each object is one entity to create. Cannot be used with --count. Unless --generateValues is specified, only the properties in the file will be used.',
158
158
  required: false,
159
159
  multiple: false,
160
160
  }),
@@ -193,8 +193,8 @@ class CreateEntity extends basecommand_1.BaseCommand {
193
193
  }),
194
194
  };
195
195
  static args = {
196
- path: core_1.Args.string({
197
- description: 'Path of the entity type to create',
196
+ entityName: core_1.Args.string({
197
+ description: 'The name of the entity type to create',
198
198
  required: true,
199
199
  multiple: false,
200
200
  }),
@@ -208,7 +208,7 @@ class CreateEntity extends basecommand_1.BaseCommand {
208
208
  await (0, login_1.authUser)();
209
209
  const { flags, argv, args } = await this.parse(CreateEntity);
210
210
  const { count, dryRun: isDryRun, inputFile: inputFilename, outputFile: outputFilename, generateValues: shouldGenerateMissingValues, readableIds: shouldUseReadableIds, skipHydrateRelationships, suffix, apiVersion, } = flags;
211
- const { path: entityTypePath } = args;
211
+ const { entityName: entityTypePath } = args;
212
212
  // Global flags is a little hacky, but it was easier
213
213
  // and it doesn't see *that* bad because they are only valid
214
214
  // for the lifecycle of the command.
@@ -226,7 +226,7 @@ class CreateEntity extends basecommand_1.BaseCommand {
226
226
  this.error('You must specify an entity type path.');
227
227
  }
228
228
  if (inputFilename && count) {
229
- throw new Error('You cannot use --input and --count together. Please specify one or the other.');
229
+ throw new Error('You cannot use --inputFile and --count together. Please specify one or the other.');
230
230
  }
231
231
  if (count !== undefined && count <= 0) {
232
232
  this.error('Count must be a positive integer.');
@@ -317,7 +317,7 @@ async function buildEntitiesToCreate(entityTypePath, entities, propertySpecifica
317
317
  }));
318
318
  // Skip system value generation unless -g flag is set (generateValues mode)
319
319
  if (!SHOULD_GENERATE_MISSING_VALUES) {
320
- console.error('Using only specified properties. Use --generate-values to auto-generate missing values.');
320
+ console.error('Using only specified properties. Use --generateValues to auto-generate missing values.');
321
321
  return populatedEntities;
322
322
  }
323
323
  // Add system values if needed
@@ -16,7 +16,7 @@ export default class GetEntity extends BaseCommand {
16
16
  logLevel: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
17
17
  };
18
18
  static args: {
19
- typePath: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
19
+ entityName: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
20
20
  ids: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
21
21
  };
22
22
  static strict: boolean;
@@ -73,7 +73,7 @@ class GetEntity extends basecommand_1.BaseCommand {
73
73
  }),
74
74
  };
75
75
  static args = {
76
- typePath: core_1.Args.string({
76
+ entityName: core_1.Args.string({
77
77
  description: 'The name of the entity type to fetch',
78
78
  required: true,
79
79
  }),
@@ -90,7 +90,7 @@ class GetEntity extends basecommand_1.BaseCommand {
90
90
  async run() {
91
91
  await (0, login_1.authUser)();
92
92
  const { args, flags, argv } = await this.parse(GetEntity);
93
- const { typePath } = args;
93
+ const { entityName: typePath } = args;
94
94
  const { outputFile, paginated: shouldUsePaginatedFind, propertySlugs, relations: relationString, skip, skipHydrateRelationships, suffix, apiVersion, take, } = flags;
95
95
  SHOULD_USE_PAGINATED_FIND = shouldUsePaginatedFind;
96
96
  MAX_NUMBER_OF_ENTITIES_TO_FETCH = take;
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.6.0-alpha-8-alpha.53e9604",
2
+ "version": "3.6.0-alpha-8-alpha.45c63ad",
3
3
  "commands": {
4
4
  "app:create": {
5
5
  "id": "app:create",
@@ -739,7 +739,7 @@
739
739
  "name": "inputFile",
740
740
  "type": "option",
741
741
  "char": "i",
742
- "description": "A file with a JSON array of objects where each object is one entity to create. Cannot be used with --count. Unless --generate-values is specified, only the properties in the file will be used.",
742
+ "description": "A file with a JSON array of objects where each object is one entity to create. Cannot be used with --count. Unless --generateValues is specified, only the properties in the file will be used.",
743
743
  "required": false,
744
744
  "multiple": false
745
745
  },
@@ -795,9 +795,9 @@
795
795
  }
796
796
  },
797
797
  "args": {
798
- "path": {
799
- "name": "path",
800
- "description": "Path of the entity type to create",
798
+ "entityName": {
799
+ "name": "entityName",
800
+ "description": "The name of the entity type to create",
801
801
  "required": true
802
802
  }
803
803
  }
@@ -1011,8 +1011,8 @@
1011
1011
  }
1012
1012
  },
1013
1013
  "args": {
1014
- "typePath": {
1015
- "name": "typePath",
1014
+ "entityName": {
1015
+ "name": "entityName",
1016
1016
  "description": "The name of the entity type to fetch",
1017
1017
  "required": true
1018
1018
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/cli",
3
- "version": "3.6.0-alpha-8-alpha.53e9604",
3
+ "version": "3.6.0-alpha-8-alpha.45c63ad",
4
4
  "description": "VibeIQ's Contrail Platform CLI.",
5
5
  "bin": {
6
6
  "contrail-cli": "./bin/run",