@contentstack/cli-config 1.10.1 → 1.11.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/README.md CHANGED
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-config
18
18
  $ csdx COMMAND
19
19
  running command...
20
20
  $ csdx (--version)
21
- @contentstack/cli-config/1.10.1 linux-x64 node-v22.14.0
21
+ @contentstack/cli-config/1.11.0 linux-x64 node-v22.14.0
22
22
  $ csdx --help [COMMAND]
23
23
  USAGE
24
24
  $ csdx COMMAND
@@ -165,9 +165,9 @@ USAGE
165
165
  $ csdx config:remove:ea-header [--header-alias <value>] [-y]
166
166
 
167
167
  FLAGS
168
- -y, --yes (optional) Force the removal of Early Access header configuration by skipping the
169
- confirmation.
170
- --header-alias=<value> (optional) Provide the Early Access header alias name.
168
+ -y, --yes (optional) Force the removal of Early Access header configuration by skipping the
169
+ confirmation.
170
+ --header-alias=<value> (optional) Provide the Early Access header alias name.
171
171
 
172
172
  DESCRIPTION
173
173
  Remove Early Access header
@@ -190,9 +190,9 @@ USAGE
190
190
  $ csdx config:remove:early-access-header [--header-alias <value>] [-y]
191
191
 
192
192
  FLAGS
193
- -y, --yes (optional) Force the removal of Early Access header configuration by skipping the
194
- confirmation.
195
- --header-alias=<value> (optional) Provide the Early Access header alias name.
193
+ -y, --yes (optional) Force the removal of Early Access header configuration by skipping the
194
+ confirmation.
195
+ --header-alias=<value> (optional) Provide the Early Access header alias name.
196
196
 
197
197
  DESCRIPTION
198
198
  Remove Early Access header
@@ -238,7 +238,7 @@ USAGE
238
238
 
239
239
  FLAGS
240
240
  -k, --stack-api-key=<value> Stack API key
241
- --base-branch=<value> Base branch (Target branch).
241
+ --base-branch=<value> Base branch (Target branch).
242
242
 
243
243
  DESCRIPTION
244
244
  Set branch for CLI
@@ -307,7 +307,7 @@ Set rate-limit for CLI
307
307
 
308
308
  ```
309
309
  USAGE
310
- $ csdx config:set:rate-limit [--org <value>] [--utilize <value>] [--limit-name <value>] [--default]
310
+ $ csdx config:set:rate-limit [--org <value>] [--utilize <value>] [--limit-name <value>...] [--default]
311
311
 
312
312
  FLAGS
313
313
  --default Reset to default rate limit
@@ -341,16 +341,16 @@ ARGUMENTS
341
341
  REGION Name for the region
342
342
 
343
343
  FLAGS
344
- -d, --cda=<value> Custom host to set for content delivery API, if this flag is added then cma, ui-host and name
345
- flags are required
346
- -m, --cma=<value> Custom host to set for content management API, , if this flag is added then cda, ui-host and
347
- name flags are required
348
- -n, --name=<value> Name for the region, if this flag is added then cda, cma and ui-host flags are required
349
- --developer-hub=<value> Custom host to set for Developer hub API
350
- --launch=<value> Custom host to set for Launch API
351
- --personalize=<value> Custom host to set for Personalize API
352
- --ui-host=<value> Custom UI host to set for CLI, if this flag is added then cda, cma and name flags are
353
- required
344
+ -d, --cda=<value> Custom host to set for content delivery API, if this flag is added then cma, ui-host and
345
+ name flags are required
346
+ -m, --cma=<value> Custom host to set for content management API, , if this flag is added then cda, ui-host
347
+ and name flags are required
348
+ -n, --name=<value> Name for the region, if this flag is added then cda, cma and ui-host flags are required
349
+ --developer-hub=<value> Custom host to set for Developer hub API
350
+ --launch=<value> Custom host to set for Launch API
351
+ --personalize=<value> Custom host to set for Personalize API
352
+ --ui-host=<value> Custom UI host to set for CLI, if this flag is added then cda, cma and name flags are
353
+ required
354
354
 
355
355
  DESCRIPTION
356
356
  Set region for CLI
@@ -8,16 +8,15 @@ class BranchGetCommand extends cli_command_1.Command {
8
8
  let config = cli_utilities_1.configHandler.get(`baseBranch`);
9
9
  if (config && Object.keys(config).length > 0) {
10
10
  let configList = Object.keys(config).map((key) => ({ ['Stack API Key']: key, ['Branch']: config[key] }));
11
- cli_utilities_1.cliux.table(configList, {
12
- 'Stack API Key': {
13
- minWidth: 8,
11
+ const headers = [
12
+ {
13
+ value: 'Stack API Key',
14
14
  },
15
- Branch: {
16
- minWidth: 8,
15
+ {
16
+ value: 'Branch',
17
17
  },
18
- }, {
19
- printLine: cli_utilities_1.cliux.print,
20
- });
18
+ ];
19
+ cli_utilities_1.cliux.table(headers, configList);
21
20
  }
22
21
  else {
23
22
  cli_utilities_1.cliux.print(`error: ${cli_utilities_1.messageHandler.parse('CLI_CONFIG_BRANCH_LIST_NO_BRANCHES')}`, { color: 'red' });
@@ -7,20 +7,19 @@ class GetEarlyAccessHeaderCommand extends cli_command_1.Command {
7
7
  try {
8
8
  let config = cli_utilities_1.configHandler.get(`earlyAccessHeaders`);
9
9
  if (config && Object.keys(config).length > 0) {
10
- let tableHeaders = Object.keys(config).map((key) => ({
10
+ let tableData = Object.keys(config).map((key) => ({
11
11
  ['Alias']: key,
12
12
  ['Early access header']: config[key],
13
13
  }));
14
- cli_utilities_1.cliux.table(tableHeaders, {
15
- Alias: {
16
- minWidth: 8,
14
+ const tableHeaders = [
15
+ {
16
+ value: 'Alias',
17
17
  },
18
- 'Early access header': {
19
- minWidth: 8,
18
+ {
19
+ value: 'Early access header',
20
20
  },
21
- }, {
22
- printLine: cli_utilities_1.cliux.print,
23
- });
21
+ ];
22
+ cli_utilities_1.cliux.table(tableHeaders, tableData);
24
23
  }
25
24
  else {
26
25
  cli_utilities_1.cliux.print(`No Early Access header found!`, { color: 'red' });
@@ -13,21 +13,21 @@ class RateLimitGetCommand extends cli_command_1.Command {
13
13
  Limit: formatLimit(limits.limit),
14
14
  'Bulk Limit': formatLimit(limits.bulkLimit),
15
15
  }));
16
- const columns = {
17
- Org: {
18
- minWidth: 10,
16
+ const headers = [
17
+ {
18
+ value: 'Org',
19
19
  },
20
- 'Get Limit': {
21
- minWidth: 20,
20
+ {
21
+ value: 'Get Limit',
22
22
  },
23
- Limit: {
24
- minWidth: 20,
23
+ {
24
+ value: 'Limit',
25
25
  },
26
- 'Bulk Limit': {
27
- minWidth: 20,
26
+ {
27
+ value: 'Bulk Limit',
28
28
  },
29
- };
30
- cli_utilities_1.cliux.table(tableData, columns, { printLine: cli_utilities_1.cliux.print });
29
+ ];
30
+ cli_utilities_1.cliux.table(headers, tableData);
31
31
  }
32
32
  catch (error) {
33
33
  this.log('Unable to retrieve the rate limits configuration', error instanceof Error ? error.message : error);
@@ -1,223 +1,92 @@
1
1
  {
2
- "version": "1.10.1",
3
2
  "commands": {
4
- "config:get:base-branch": {
5
- "id": "config:get:base-branch",
6
- "description": "Get current branch set for CLI",
7
- "strict": true,
8
- "pluginName": "@contentstack/cli-config",
9
- "pluginAlias": "@contentstack/cli-config",
10
- "pluginType": "core",
11
- "aliases": [],
12
- "hiddenAliases": [],
13
- "examples": [
14
- "$ csdx config:get:base-branch"
15
- ],
16
- "flags": {},
17
- "args": {}
18
- },
19
- "config:get:early-access-header": {
20
- "id": "config:get:early-access-header",
21
- "description": "Display Early Access headers",
22
- "strict": true,
23
- "pluginName": "@contentstack/cli-config",
24
- "pluginAlias": "@contentstack/cli-config",
25
- "pluginType": "core",
26
- "aliases": [
27
- "config:get:ea-header"
28
- ],
29
- "hiddenAliases": [],
30
- "examples": [
31
- "$ <%= config.bin %> <%= command.id %>"
32
- ],
33
- "flags": {},
34
- "args": {}
35
- },
36
- "config:get:rate-limit": {
37
- "id": "config:get:rate-limit",
38
- "description": "Get rate-limit of organizations",
39
- "strict": true,
40
- "pluginName": "@contentstack/cli-config",
41
- "pluginAlias": "@contentstack/cli-config",
42
- "pluginType": "core",
43
- "aliases": [],
44
- "hiddenAliases": [],
45
- "examples": [
46
- "$ csdx config:get:rate-limit"
47
- ],
48
- "flags": {},
49
- "args": {}
50
- },
51
- "config:get:region": {
52
- "id": "config:get:region",
53
- "description": "Get current region set for CLI",
54
- "strict": true,
55
- "pluginName": "@contentstack/cli-config",
56
- "pluginAlias": "@contentstack/cli-config",
57
- "pluginType": "core",
58
- "aliases": [],
59
- "hiddenAliases": [],
60
- "examples": [
61
- "$ csdx config:get:region"
62
- ],
63
- "flags": {},
64
- "args": {}
65
- },
66
- "config:remove:base-branch": {
67
- "id": "config:remove:base-branch",
68
- "description": "Remove branch config for CLI",
69
- "strict": true,
70
- "pluginName": "@contentstack/cli-config",
71
- "pluginAlias": "@contentstack/cli-config",
72
- "pluginType": "core",
73
- "aliases": [],
74
- "hiddenAliases": [],
75
- "examples": [
76
- "$ csdx config:remove:base-branch",
77
- "$ csdx config:remove:base-branch --stack-api-key <value>"
78
- ],
79
- "flags": {
80
- "stack-api-key": {
81
- "name": "stack-api-key",
82
- "type": "option",
83
- "char": "k",
84
- "description": "Stack API key.",
85
- "multiple": false
86
- },
87
- "yes": {
88
- "name": "yes",
89
- "type": "boolean",
90
- "char": "y",
91
- "description": "Force remove.",
92
- "allowNo": false
93
- }
94
- },
95
- "args": {}
96
- },
97
- "config:remove:early-access-header": {
98
- "id": "config:remove:early-access-header",
99
- "description": "Remove Early Access header",
100
- "strict": true,
101
- "pluginName": "@contentstack/cli-config",
102
- "pluginAlias": "@contentstack/cli-config",
103
- "pluginType": "core",
104
- "aliases": [
105
- "config:remove:ea-header"
106
- ],
107
- "hiddenAliases": [],
108
- "examples": [
109
- "$ <%= config.bin %> <%= command.id %>",
110
- "$ <%= config.bin %> <%= command.id %> --header-alias <value>"
111
- ],
112
- "flags": {
113
- "header-alias": {
114
- "name": "header-alias",
115
- "type": "option",
116
- "description": "(optional) Provide the Early Access header alias name.",
117
- "multiple": false
118
- },
119
- "yes": {
120
- "name": "yes",
121
- "type": "boolean",
122
- "char": "y",
123
- "description": "(optional) Force the removal of Early Access header configuration by skipping the confirmation.",
124
- "allowNo": false
125
- }
126
- },
127
- "args": {}
128
- },
129
- "config:remove:rate-limit": {
130
- "id": "config:remove:rate-limit",
131
- "description": "Remove rate-limit of the organization",
132
- "strict": true,
133
- "pluginName": "@contentstack/cli-config",
134
- "pluginAlias": "@contentstack/cli-config",
135
- "pluginType": "core",
136
- "aliases": [],
137
- "hiddenAliases": [],
138
- "examples": [
139
- "$ csdx config:remove:rate-limit --org <<org_uid>>"
140
- ],
141
- "flags": {
142
- "org": {
143
- "name": "org",
144
- "type": "option",
145
- "description": "Provide the organization UID",
146
- "multiple": false
147
- }
148
- },
149
- "args": {}
150
- },
151
3
  "config:set:base-branch": {
152
- "id": "config:set:base-branch",
153
- "description": "Set branch for CLI",
154
- "strict": true,
155
- "pluginName": "@contentstack/cli-config",
156
- "pluginAlias": "@contentstack/cli-config",
157
- "pluginType": "core",
158
4
  "aliases": [],
159
- "hiddenAliases": [],
5
+ "args": {},
6
+ "description": "Set branch for CLI",
160
7
  "examples": [
161
8
  "$ csdx config:set:base-branch",
162
9
  "$ csdx config:set:base-branch --stack-api-key <value> --base-branch <value>"
163
10
  ],
164
11
  "flags": {
165
12
  "stack-api-key": {
166
- "name": "stack-api-key",
167
- "type": "option",
168
13
  "char": "k",
169
14
  "description": "Stack API key",
170
- "multiple": false
15
+ "name": "stack-api-key",
16
+ "hasDynamicHelp": false,
17
+ "multiple": false,
18
+ "type": "option"
171
19
  },
172
20
  "base-branch": {
173
- "name": "base-branch",
174
- "type": "option",
175
21
  "description": "Base branch (Target branch).",
176
- "multiple": false
22
+ "name": "base-branch",
23
+ "hasDynamicHelp": false,
24
+ "multiple": false,
25
+ "type": "option"
177
26
  }
178
27
  },
179
- "args": {}
180
- },
181
- "config:set:early-access-header": {
182
- "id": "config:set:early-access-header",
183
- "description": "Set Early Access header",
184
- "strict": true,
185
- "pluginName": "@contentstack/cli-config",
28
+ "hasDynamicHelp": false,
29
+ "hiddenAliases": [],
30
+ "id": "config:set:base-branch",
186
31
  "pluginAlias": "@contentstack/cli-config",
32
+ "pluginName": "@contentstack/cli-config",
187
33
  "pluginType": "core",
34
+ "strict": true,
35
+ "isESM": false,
36
+ "relativePath": [
37
+ "lib",
38
+ "commands",
39
+ "config",
40
+ "set",
41
+ "base-branch.js"
42
+ ]
43
+ },
44
+ "config:set:early-access-header": {
188
45
  "aliases": [
189
46
  "config:set:ea-header"
190
47
  ],
191
- "hiddenAliases": [],
48
+ "args": {},
49
+ "description": "Set Early Access header",
192
50
  "examples": [
193
51
  "$ <%= config.bin %> <%= command.id %>",
194
52
  "$ <%= config.bin %> <%= command.id %> --header <value> --header-alias <value>"
195
53
  ],
196
54
  "flags": {
197
55
  "header-alias": {
198
- "name": "header-alias",
199
- "type": "option",
200
56
  "description": "(optional) Provide the Early Access header value.",
201
- "multiple": false
57
+ "name": "header-alias",
58
+ "hasDynamicHelp": false,
59
+ "multiple": false,
60
+ "type": "option"
202
61
  },
203
62
  "header": {
204
- "name": "header",
205
- "type": "option",
206
63
  "description": "(optional) Provide the Early Access header alias name.",
207
- "multiple": false
64
+ "name": "header",
65
+ "hasDynamicHelp": false,
66
+ "multiple": false,
67
+ "type": "option"
208
68
  }
209
69
  },
210
- "args": {}
211
- },
212
- "config:set:rate-limit": {
213
- "id": "config:set:rate-limit",
214
- "description": "Set rate-limit for CLI",
215
- "strict": true,
216
- "pluginName": "@contentstack/cli-config",
70
+ "hasDynamicHelp": false,
71
+ "hiddenAliases": [],
72
+ "id": "config:set:early-access-header",
217
73
  "pluginAlias": "@contentstack/cli-config",
74
+ "pluginName": "@contentstack/cli-config",
218
75
  "pluginType": "core",
76
+ "strict": true,
77
+ "isESM": false,
78
+ "relativePath": [
79
+ "lib",
80
+ "commands",
81
+ "config",
82
+ "set",
83
+ "early-access-header.js"
84
+ ]
85
+ },
86
+ "config:set:rate-limit": {
219
87
  "aliases": [],
220
- "hiddenAliases": [],
88
+ "args": {},
89
+ "description": "Set rate-limit for CLI",
221
90
  "examples": [
222
91
  "$ csdx config:set:rate-limit --org <<org_uid>>",
223
92
  "$ csdx config:set:rate-limit --org <<org_uid>> --utilize 70,80 --limit-name getLimit,limit",
@@ -225,42 +94,59 @@
225
94
  ],
226
95
  "flags": {
227
96
  "org": {
228
- "name": "org",
229
- "type": "option",
230
97
  "description": "Provide the organization UID",
231
- "multiple": false
98
+ "name": "org",
99
+ "hasDynamicHelp": false,
100
+ "multiple": false,
101
+ "type": "option"
232
102
  },
233
103
  "utilize": {
234
- "name": "utilize",
235
- "type": "option",
236
104
  "description": "Provide the utilization percentages for rate limit, separated by commas",
105
+ "name": "utilize",
106
+ "default": "50",
107
+ "hasDynamicHelp": false,
237
108
  "multiple": false,
238
- "default": "50"
109
+ "type": "option"
239
110
  },
240
111
  "limit-name": {
241
- "name": "limit-name",
242
- "type": "option",
243
112
  "description": "[Optional] Provide the limit names separated by commas ['limit', 'getLimit', 'bulkLimit']",
244
- "multiple": true
113
+ "name": "limit-name",
114
+ "hasDynamicHelp": false,
115
+ "multiple": true,
116
+ "type": "option"
245
117
  },
246
118
  "default": {
247
- "name": "default",
248
- "type": "boolean",
249
119
  "description": "Reset to default rate limit",
250
- "allowNo": false
120
+ "name": "default",
121
+ "allowNo": false,
122
+ "type": "boolean"
251
123
  }
252
124
  },
253
- "args": {}
254
- },
255
- "config:set:region": {
256
- "id": "config:set:region",
257
- "description": "Set region for CLI",
258
- "strict": true,
259
- "pluginName": "@contentstack/cli-config",
125
+ "hasDynamicHelp": false,
126
+ "hiddenAliases": [],
127
+ "id": "config:set:rate-limit",
260
128
  "pluginAlias": "@contentstack/cli-config",
129
+ "pluginName": "@contentstack/cli-config",
261
130
  "pluginType": "core",
131
+ "strict": true,
132
+ "isESM": false,
133
+ "relativePath": [
134
+ "lib",
135
+ "commands",
136
+ "config",
137
+ "set",
138
+ "rate-limit.js"
139
+ ]
140
+ },
141
+ "config:set:region": {
262
142
  "aliases": [],
263
- "hiddenAliases": [],
143
+ "args": {
144
+ "region": {
145
+ "description": "Name for the region",
146
+ "name": "region"
147
+ }
148
+ },
149
+ "description": "Set region for CLI",
264
150
  "examples": [
265
151
  "$ csdx config:set:region",
266
152
  "$ csdx config:set:region NA",
@@ -277,77 +163,307 @@
277
163
  ],
278
164
  "flags": {
279
165
  "cda": {
280
- "name": "cda",
281
- "type": "option",
282
166
  "char": "d",
283
- "description": "Custom host to set for content delivery API, if this flag is added then cma, ui-host and name flags are required",
284
- "multiple": false,
285
167
  "dependsOn": [
286
168
  "cma",
287
169
  "ui-host",
288
170
  "name"
289
- ]
171
+ ],
172
+ "description": "Custom host to set for content delivery API, if this flag is added then cma, ui-host and name flags are required",
173
+ "name": "cda",
174
+ "hasDynamicHelp": false,
175
+ "multiple": false,
176
+ "type": "option"
290
177
  },
291
178
  "cma": {
292
- "name": "cma",
293
- "type": "option",
294
179
  "char": "m",
295
- "description": "Custom host to set for content management API, , if this flag is added then cda, ui-host and name flags are required",
296
- "multiple": false,
297
180
  "dependsOn": [
298
181
  "cda",
299
182
  "ui-host",
300
183
  "name"
301
- ]
184
+ ],
185
+ "description": "Custom host to set for content management API, , if this flag is added then cda, ui-host and name flags are required",
186
+ "name": "cma",
187
+ "hasDynamicHelp": false,
188
+ "multiple": false,
189
+ "type": "option"
302
190
  },
303
191
  "ui-host": {
304
- "name": "ui-host",
305
- "type": "option",
306
- "description": "Custom UI host to set for CLI, if this flag is added then cda, cma and name flags are required",
307
- "multiple": false,
308
192
  "dependsOn": [
309
193
  "cda",
310
194
  "cma",
311
195
  "name"
312
- ]
196
+ ],
197
+ "description": "Custom UI host to set for CLI, if this flag is added then cda, cma and name flags are required",
198
+ "name": "ui-host",
199
+ "hasDynamicHelp": false,
200
+ "multiple": false,
201
+ "type": "option"
313
202
  },
314
203
  "name": {
315
- "name": "name",
316
- "type": "option",
317
204
  "char": "n",
318
- "description": "Name for the region, if this flag is added then cda, cma and ui-host flags are required",
319
- "multiple": false,
320
205
  "dependsOn": [
321
206
  "cda",
322
207
  "cma",
323
208
  "ui-host"
324
- ]
209
+ ],
210
+ "description": "Name for the region, if this flag is added then cda, cma and ui-host flags are required",
211
+ "name": "name",
212
+ "hasDynamicHelp": false,
213
+ "multiple": false,
214
+ "type": "option"
325
215
  },
326
216
  "developer-hub": {
327
- "name": "developer-hub",
328
- "type": "option",
329
217
  "description": "Custom host to set for Developer hub API",
330
- "multiple": false
218
+ "name": "developer-hub",
219
+ "hasDynamicHelp": false,
220
+ "multiple": false,
221
+ "type": "option"
331
222
  },
332
223
  "personalize": {
333
- "name": "personalize",
334
- "type": "option",
335
224
  "description": "Custom host to set for Personalize API",
336
- "multiple": false
225
+ "name": "personalize",
226
+ "hasDynamicHelp": false,
227
+ "multiple": false,
228
+ "type": "option"
337
229
  },
338
230
  "launch": {
339
- "name": "launch",
340
- "type": "option",
341
231
  "description": "Custom host to set for Launch API",
342
- "multiple": false
232
+ "name": "launch",
233
+ "hasDynamicHelp": false,
234
+ "multiple": false,
235
+ "type": "option"
343
236
  }
344
237
  },
345
- "args": {
346
- "region": {
347
- "name": "region",
348
- "description": "Name for the region"
238
+ "hasDynamicHelp": false,
239
+ "hiddenAliases": [],
240
+ "id": "config:set:region",
241
+ "pluginAlias": "@contentstack/cli-config",
242
+ "pluginName": "@contentstack/cli-config",
243
+ "pluginType": "core",
244
+ "strict": true,
245
+ "isESM": false,
246
+ "relativePath": [
247
+ "lib",
248
+ "commands",
249
+ "config",
250
+ "set",
251
+ "region.js"
252
+ ]
253
+ },
254
+ "config:remove:base-branch": {
255
+ "aliases": [],
256
+ "args": {},
257
+ "description": "Remove branch config for CLI",
258
+ "examples": [
259
+ "$ csdx config:remove:base-branch",
260
+ "$ csdx config:remove:base-branch --stack-api-key <value>"
261
+ ],
262
+ "flags": {
263
+ "stack-api-key": {
264
+ "char": "k",
265
+ "description": "Stack API key.",
266
+ "name": "stack-api-key",
267
+ "hasDynamicHelp": false,
268
+ "multiple": false,
269
+ "type": "option"
270
+ },
271
+ "yes": {
272
+ "char": "y",
273
+ "description": "Force remove.",
274
+ "name": "yes",
275
+ "allowNo": false,
276
+ "type": "boolean"
349
277
  }
350
- }
278
+ },
279
+ "hasDynamicHelp": false,
280
+ "hiddenAliases": [],
281
+ "id": "config:remove:base-branch",
282
+ "pluginAlias": "@contentstack/cli-config",
283
+ "pluginName": "@contentstack/cli-config",
284
+ "pluginType": "core",
285
+ "strict": true,
286
+ "isESM": false,
287
+ "relativePath": [
288
+ "lib",
289
+ "commands",
290
+ "config",
291
+ "remove",
292
+ "base-branch.js"
293
+ ]
294
+ },
295
+ "config:remove:early-access-header": {
296
+ "aliases": [
297
+ "config:remove:ea-header"
298
+ ],
299
+ "args": {},
300
+ "description": "Remove Early Access header",
301
+ "examples": [
302
+ "$ <%= config.bin %> <%= command.id %>",
303
+ "$ <%= config.bin %> <%= command.id %> --header-alias <value>"
304
+ ],
305
+ "flags": {
306
+ "header-alias": {
307
+ "description": "(optional) Provide the Early Access header alias name.",
308
+ "name": "header-alias",
309
+ "hasDynamicHelp": false,
310
+ "multiple": false,
311
+ "type": "option"
312
+ },
313
+ "yes": {
314
+ "char": "y",
315
+ "description": "(optional) Force the removal of Early Access header configuration by skipping the confirmation.",
316
+ "name": "yes",
317
+ "allowNo": false,
318
+ "type": "boolean"
319
+ }
320
+ },
321
+ "hasDynamicHelp": false,
322
+ "hiddenAliases": [],
323
+ "id": "config:remove:early-access-header",
324
+ "pluginAlias": "@contentstack/cli-config",
325
+ "pluginName": "@contentstack/cli-config",
326
+ "pluginType": "core",
327
+ "strict": true,
328
+ "isESM": false,
329
+ "relativePath": [
330
+ "lib",
331
+ "commands",
332
+ "config",
333
+ "remove",
334
+ "early-access-header.js"
335
+ ]
336
+ },
337
+ "config:remove:rate-limit": {
338
+ "aliases": [],
339
+ "args": {},
340
+ "description": "Remove rate-limit of the organization",
341
+ "examples": [
342
+ "$ csdx config:remove:rate-limit --org <<org_uid>>"
343
+ ],
344
+ "flags": {
345
+ "org": {
346
+ "description": "Provide the organization UID",
347
+ "name": "org",
348
+ "hasDynamicHelp": false,
349
+ "multiple": false,
350
+ "type": "option"
351
+ }
352
+ },
353
+ "hasDynamicHelp": false,
354
+ "hiddenAliases": [],
355
+ "id": "config:remove:rate-limit",
356
+ "pluginAlias": "@contentstack/cli-config",
357
+ "pluginName": "@contentstack/cli-config",
358
+ "pluginType": "core",
359
+ "strict": true,
360
+ "isESM": false,
361
+ "relativePath": [
362
+ "lib",
363
+ "commands",
364
+ "config",
365
+ "remove",
366
+ "rate-limit.js"
367
+ ]
368
+ },
369
+ "config:get:base-branch": {
370
+ "aliases": [],
371
+ "args": {},
372
+ "description": "Get current branch set for CLI",
373
+ "examples": [
374
+ "$ csdx config:get:base-branch"
375
+ ],
376
+ "flags": {},
377
+ "hasDynamicHelp": false,
378
+ "hiddenAliases": [],
379
+ "id": "config:get:base-branch",
380
+ "pluginAlias": "@contentstack/cli-config",
381
+ "pluginName": "@contentstack/cli-config",
382
+ "pluginType": "core",
383
+ "strict": true,
384
+ "isESM": false,
385
+ "relativePath": [
386
+ "lib",
387
+ "commands",
388
+ "config",
389
+ "get",
390
+ "base-branch.js"
391
+ ]
392
+ },
393
+ "config:get:early-access-header": {
394
+ "aliases": [
395
+ "config:get:ea-header"
396
+ ],
397
+ "args": {},
398
+ "description": "Display Early Access headers",
399
+ "examples": [
400
+ "$ <%= config.bin %> <%= command.id %>"
401
+ ],
402
+ "flags": {},
403
+ "hasDynamicHelp": false,
404
+ "hiddenAliases": [],
405
+ "id": "config:get:early-access-header",
406
+ "pluginAlias": "@contentstack/cli-config",
407
+ "pluginName": "@contentstack/cli-config",
408
+ "pluginType": "core",
409
+ "strict": true,
410
+ "isESM": false,
411
+ "relativePath": [
412
+ "lib",
413
+ "commands",
414
+ "config",
415
+ "get",
416
+ "early-access-header.js"
417
+ ]
418
+ },
419
+ "config:get:rate-limit": {
420
+ "aliases": [],
421
+ "args": {},
422
+ "description": "Get rate-limit of organizations",
423
+ "examples": [
424
+ "$ csdx config:get:rate-limit"
425
+ ],
426
+ "flags": {},
427
+ "hasDynamicHelp": false,
428
+ "hiddenAliases": [],
429
+ "id": "config:get:rate-limit",
430
+ "pluginAlias": "@contentstack/cli-config",
431
+ "pluginName": "@contentstack/cli-config",
432
+ "pluginType": "core",
433
+ "strict": true,
434
+ "isESM": false,
435
+ "relativePath": [
436
+ "lib",
437
+ "commands",
438
+ "config",
439
+ "get",
440
+ "rate-limit.js"
441
+ ]
442
+ },
443
+ "config:get:region": {
444
+ "aliases": [],
445
+ "args": {},
446
+ "description": "Get current region set for CLI",
447
+ "examples": [
448
+ "$ csdx config:get:region"
449
+ ],
450
+ "flags": {},
451
+ "hasDynamicHelp": false,
452
+ "hiddenAliases": [],
453
+ "id": "config:get:region",
454
+ "pluginAlias": "@contentstack/cli-config",
455
+ "pluginName": "@contentstack/cli-config",
456
+ "pluginType": "core",
457
+ "strict": true,
458
+ "isESM": false,
459
+ "relativePath": [
460
+ "lib",
461
+ "commands",
462
+ "config",
463
+ "get",
464
+ "region.js"
465
+ ]
351
466
  }
352
- }
467
+ },
468
+ "version": "1.11.0"
353
469
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@contentstack/cli-config",
3
3
  "description": "Contentstack CLI plugin for configuration",
4
- "version": "1.10.1",
4
+ "version": "1.11.0",
5
5
  "author": "Contentstack",
6
6
  "scripts": {
7
7
  "build": "npm run clean && npm run compile",
@@ -21,8 +21,8 @@
21
21
  "test:unit:report": "nyc --extension .ts mocha --forbid-only \"test/unit/**/*.test.ts\""
22
22
  },
23
23
  "dependencies": {
24
- "@contentstack/cli-command": "~1.3.3",
25
- "@contentstack/cli-utilities": "~1.9.0",
24
+ "@contentstack/cli-command": "~1.5.0",
25
+ "@contentstack/cli-utilities": "~1.11.0",
26
26
  "lodash": "^4.17.21"
27
27
  },
28
28
  "devDependencies": {
@@ -33,11 +33,11 @@
33
33
  "@types/sinon": "^10.0.20",
34
34
  "chai": "^4.5.0",
35
35
  "eslint": "^8.57.1",
36
- "eslint-config-oclif": "^4.0.0",
36
+ "eslint-config-oclif": "^6.0.15",
37
37
  "eslint-config-oclif-typescript": "^3.1.13",
38
38
  "mocha": "10.8.2",
39
39
  "nyc": "^15.1.0",
40
- "oclif": "^3.17.2",
40
+ "oclif": "^4.17.30",
41
41
  "sinon": "^19.0.2",
42
42
  "ts-node": "^10.9.2",
43
43
  "typescript": "^4.9.5"