@contentstack/cli-config 1.20.2 → 1.20.3

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.20.2 linux-x64 node-v22.22.2
21
+ @contentstack/cli-config/1.20.3 linux-x64 node-v22.22.2
22
22
  $ csdx --help [COMMAND]
23
23
  USAGE
24
24
  $ csdx COMMAND
@@ -1,33 +1,16 @@
1
1
  {
2
2
  "commands": {
3
- "config:remove:base-branch": {
3
+ "config:get:base-branch": {
4
4
  "aliases": [],
5
5
  "args": {},
6
- "description": "Remove branch config for CLI",
6
+ "description": "Get current branch set for CLI",
7
7
  "examples": [
8
- "$ csdx config:remove:base-branch",
9
- "$ csdx config:remove:base-branch --stack-api-key <value>"
8
+ "$ csdx config:get:base-branch"
10
9
  ],
11
- "flags": {
12
- "stack-api-key": {
13
- "char": "k",
14
- "description": "Stack API key.",
15
- "name": "stack-api-key",
16
- "hasDynamicHelp": false,
17
- "multiple": false,
18
- "type": "option"
19
- },
20
- "yes": {
21
- "char": "y",
22
- "description": "Force remove.",
23
- "name": "yes",
24
- "allowNo": false,
25
- "type": "boolean"
26
- }
27
- },
10
+ "flags": {},
28
11
  "hasDynamicHelp": false,
29
12
  "hiddenAliases": [],
30
- "id": "config:remove:base-branch",
13
+ "id": "config:get:base-branch",
31
14
  "pluginAlias": "@contentstack/cli-config",
32
15
  "pluginName": "@contentstack/cli-config",
33
16
  "pluginType": "core",
@@ -37,39 +20,23 @@
37
20
  "lib",
38
21
  "commands",
39
22
  "config",
40
- "remove",
23
+ "get",
41
24
  "base-branch.js"
42
25
  ]
43
26
  },
44
- "config:remove:early-access-header": {
27
+ "config:get:early-access-header": {
45
28
  "aliases": [
46
- "config:remove:ea-header"
29
+ "config:get:ea-header"
47
30
  ],
48
31
  "args": {},
49
- "description": "Remove Early Access header",
32
+ "description": "Display Early Access headers",
50
33
  "examples": [
51
- "$ <%= config.bin %> <%= command.id %>",
52
- "$ <%= config.bin %> <%= command.id %> --header-alias <value>"
34
+ "$ <%= config.bin %> <%= command.id %>"
53
35
  ],
54
- "flags": {
55
- "header-alias": {
56
- "description": "(optional) Provide the Early Access header alias name.",
57
- "name": "header-alias",
58
- "hasDynamicHelp": false,
59
- "multiple": false,
60
- "type": "option"
61
- },
62
- "yes": {
63
- "char": "y",
64
- "description": "(optional) Force the removal of Early Access header configuration by skipping the confirmation.",
65
- "name": "yes",
66
- "allowNo": false,
67
- "type": "boolean"
68
- }
69
- },
36
+ "flags": {},
70
37
  "hasDynamicHelp": false,
71
38
  "hiddenAliases": [],
72
- "id": "config:remove:early-access-header",
39
+ "id": "config:get:early-access-header",
73
40
  "pluginAlias": "@contentstack/cli-config",
74
41
  "pluginName": "@contentstack/cli-config",
75
42
  "pluginType": "core",
@@ -79,21 +46,21 @@
79
46
  "lib",
80
47
  "commands",
81
48
  "config",
82
- "remove",
49
+ "get",
83
50
  "early-access-header.js"
84
51
  ]
85
52
  },
86
- "config:remove:proxy": {
53
+ "config:get:log": {
87
54
  "aliases": [],
88
55
  "args": {},
89
- "description": "Remove proxy configuration from global config",
56
+ "description": "Get logging configuration for CLI",
90
57
  "examples": [
91
- "csdx config:remove:proxy"
58
+ "csdx config:get:log"
92
59
  ],
93
60
  "flags": {},
94
61
  "hasDynamicHelp": false,
95
62
  "hiddenAliases": [],
96
- "id": "config:remove:proxy",
63
+ "id": "config:get:log",
97
64
  "pluginAlias": "@contentstack/cli-config",
98
65
  "pluginName": "@contentstack/cli-config",
99
66
  "pluginType": "core",
@@ -103,29 +70,21 @@
103
70
  "lib",
104
71
  "commands",
105
72
  "config",
106
- "remove",
107
- "proxy.js"
73
+ "get",
74
+ "log.js"
108
75
  ]
109
76
  },
110
- "config:remove:rate-limit": {
77
+ "config:get:proxy": {
111
78
  "aliases": [],
112
79
  "args": {},
113
- "description": "Remove rate-limit of the organization",
80
+ "description": "Get proxy configuration for CLI",
114
81
  "examples": [
115
- "$ csdx config:remove:rate-limit --org <<org_uid>>"
82
+ "csdx config:get:proxy"
116
83
  ],
117
- "flags": {
118
- "org": {
119
- "description": "Provide the organization UID",
120
- "name": "org",
121
- "hasDynamicHelp": false,
122
- "multiple": false,
123
- "type": "option"
124
- }
125
- },
84
+ "flags": {},
126
85
  "hasDynamicHelp": false,
127
86
  "hiddenAliases": [],
128
- "id": "config:remove:rate-limit",
87
+ "id": "config:get:proxy",
129
88
  "pluginAlias": "@contentstack/cli-config",
130
89
  "pluginName": "@contentstack/cli-config",
131
90
  "pluginType": "core",
@@ -135,21 +94,21 @@
135
94
  "lib",
136
95
  "commands",
137
96
  "config",
138
- "remove",
139
- "rate-limit.js"
97
+ "get",
98
+ "proxy.js"
140
99
  ]
141
100
  },
142
- "config:get:base-branch": {
101
+ "config:get:rate-limit": {
143
102
  "aliases": [],
144
103
  "args": {},
145
- "description": "Get current branch set for CLI",
104
+ "description": "Get rate-limit of organizations",
146
105
  "examples": [
147
- "$ csdx config:get:base-branch"
106
+ "$ csdx config:get:rate-limit"
148
107
  ],
149
108
  "flags": {},
150
109
  "hasDynamicHelp": false,
151
110
  "hiddenAliases": [],
152
- "id": "config:get:base-branch",
111
+ "id": "config:get:rate-limit",
153
112
  "pluginAlias": "@contentstack/cli-config",
154
113
  "pluginName": "@contentstack/cli-config",
155
114
  "pluginType": "core",
@@ -160,22 +119,20 @@
160
119
  "commands",
161
120
  "config",
162
121
  "get",
163
- "base-branch.js"
122
+ "rate-limit.js"
164
123
  ]
165
124
  },
166
- "config:get:early-access-header": {
167
- "aliases": [
168
- "config:get:ea-header"
169
- ],
125
+ "config:get:region": {
126
+ "aliases": [],
170
127
  "args": {},
171
- "description": "Display Early Access headers",
128
+ "description": "Get current region set for CLI",
172
129
  "examples": [
173
- "$ <%= config.bin %> <%= command.id %>"
130
+ "$ csdx config:get:region"
174
131
  ],
175
132
  "flags": {},
176
133
  "hasDynamicHelp": false,
177
134
  "hiddenAliases": [],
178
- "id": "config:get:early-access-header",
135
+ "id": "config:get:region",
179
136
  "pluginAlias": "@contentstack/cli-config",
180
137
  "pluginName": "@contentstack/cli-config",
181
138
  "pluginType": "core",
@@ -186,20 +143,37 @@
186
143
  "commands",
187
144
  "config",
188
145
  "get",
189
- "early-access-header.js"
146
+ "region.js"
190
147
  ]
191
148
  },
192
- "config:get:log": {
149
+ "config:remove:base-branch": {
193
150
  "aliases": [],
194
151
  "args": {},
195
- "description": "Get logging configuration for CLI",
152
+ "description": "Remove branch config for CLI",
196
153
  "examples": [
197
- "csdx config:get:log"
154
+ "$ csdx config:remove:base-branch",
155
+ "$ csdx config:remove:base-branch --stack-api-key <value>"
198
156
  ],
199
- "flags": {},
157
+ "flags": {
158
+ "stack-api-key": {
159
+ "char": "k",
160
+ "description": "Stack API key.",
161
+ "name": "stack-api-key",
162
+ "hasDynamicHelp": false,
163
+ "multiple": false,
164
+ "type": "option"
165
+ },
166
+ "yes": {
167
+ "char": "y",
168
+ "description": "Force remove.",
169
+ "name": "yes",
170
+ "allowNo": false,
171
+ "type": "boolean"
172
+ }
173
+ },
200
174
  "hasDynamicHelp": false,
201
175
  "hiddenAliases": [],
202
- "id": "config:get:log",
176
+ "id": "config:remove:base-branch",
203
177
  "pluginAlias": "@contentstack/cli-config",
204
178
  "pluginName": "@contentstack/cli-config",
205
179
  "pluginType": "core",
@@ -209,21 +183,39 @@
209
183
  "lib",
210
184
  "commands",
211
185
  "config",
212
- "get",
213
- "log.js"
186
+ "remove",
187
+ "base-branch.js"
214
188
  ]
215
189
  },
216
- "config:get:proxy": {
217
- "aliases": [],
190
+ "config:remove:early-access-header": {
191
+ "aliases": [
192
+ "config:remove:ea-header"
193
+ ],
218
194
  "args": {},
219
- "description": "Get proxy configuration for CLI",
195
+ "description": "Remove Early Access header",
220
196
  "examples": [
221
- "csdx config:get:proxy"
197
+ "$ <%= config.bin %> <%= command.id %>",
198
+ "$ <%= config.bin %> <%= command.id %> --header-alias <value>"
222
199
  ],
223
- "flags": {},
200
+ "flags": {
201
+ "header-alias": {
202
+ "description": "(optional) Provide the Early Access header alias name.",
203
+ "name": "header-alias",
204
+ "hasDynamicHelp": false,
205
+ "multiple": false,
206
+ "type": "option"
207
+ },
208
+ "yes": {
209
+ "char": "y",
210
+ "description": "(optional) Force the removal of Early Access header configuration by skipping the confirmation.",
211
+ "name": "yes",
212
+ "allowNo": false,
213
+ "type": "boolean"
214
+ }
215
+ },
224
216
  "hasDynamicHelp": false,
225
217
  "hiddenAliases": [],
226
- "id": "config:get:proxy",
218
+ "id": "config:remove:early-access-header",
227
219
  "pluginAlias": "@contentstack/cli-config",
228
220
  "pluginName": "@contentstack/cli-config",
229
221
  "pluginType": "core",
@@ -233,21 +225,21 @@
233
225
  "lib",
234
226
  "commands",
235
227
  "config",
236
- "get",
237
- "proxy.js"
228
+ "remove",
229
+ "early-access-header.js"
238
230
  ]
239
231
  },
240
- "config:get:rate-limit": {
232
+ "config:remove:proxy": {
241
233
  "aliases": [],
242
234
  "args": {},
243
- "description": "Get rate-limit of organizations",
235
+ "description": "Remove proxy configuration from global config",
244
236
  "examples": [
245
- "$ csdx config:get:rate-limit"
237
+ "csdx config:remove:proxy"
246
238
  ],
247
239
  "flags": {},
248
240
  "hasDynamicHelp": false,
249
241
  "hiddenAliases": [],
250
- "id": "config:get:rate-limit",
242
+ "id": "config:remove:proxy",
251
243
  "pluginAlias": "@contentstack/cli-config",
252
244
  "pluginName": "@contentstack/cli-config",
253
245
  "pluginType": "core",
@@ -257,21 +249,29 @@
257
249
  "lib",
258
250
  "commands",
259
251
  "config",
260
- "get",
261
- "rate-limit.js"
252
+ "remove",
253
+ "proxy.js"
262
254
  ]
263
255
  },
264
- "config:get:region": {
256
+ "config:remove:rate-limit": {
265
257
  "aliases": [],
266
258
  "args": {},
267
- "description": "Get current region set for CLI",
259
+ "description": "Remove rate-limit of the organization",
268
260
  "examples": [
269
- "$ csdx config:get:region"
261
+ "$ csdx config:remove:rate-limit --org <<org_uid>>"
270
262
  ],
271
- "flags": {},
263
+ "flags": {
264
+ "org": {
265
+ "description": "Provide the organization UID",
266
+ "name": "org",
267
+ "hasDynamicHelp": false,
268
+ "multiple": false,
269
+ "type": "option"
270
+ }
271
+ },
272
272
  "hasDynamicHelp": false,
273
273
  "hiddenAliases": [],
274
- "id": "config:get:region",
274
+ "id": "config:remove:rate-limit",
275
275
  "pluginAlias": "@contentstack/cli-config",
276
276
  "pluginName": "@contentstack/cli-config",
277
277
  "pluginType": "core",
@@ -281,8 +281,8 @@
281
281
  "lib",
282
282
  "commands",
283
283
  "config",
284
- "get",
285
- "region.js"
284
+ "remove",
285
+ "rate-limit.js"
286
286
  ]
287
287
  },
288
288
  "config:set:base-branch": {
@@ -667,5 +667,5 @@
667
667
  ]
668
668
  }
669
669
  },
670
- "version": "1.20.2"
670
+ "version": "1.20.3"
671
671
  }
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.20.2",
4
+ "version": "1.20.3",
5
5
  "author": "Contentstack",
6
6
  "scripts": {
7
7
  "build": "pnpm compile && oclif manifest && oclif readme",
@@ -14,12 +14,10 @@
14
14
  "lint": "eslint src/**/*.ts"
15
15
  },
16
16
  "dependencies": {
17
- "@contentstack/cli-command": "~1.8.1",
18
- "@contentstack/cli-utilities": "~1.18.2",
17
+ "@contentstack/cli-command": "~1.8.2",
18
+ "@contentstack/cli-utilities": "~1.18.3",
19
19
  "@contentstack/utils": "~1.9.1",
20
- "@oclif/core": "^4.8.3",
21
- "@oclif/plugin-help": "^6.2.28",
22
- "lodash": "^4.18.1"
20
+ "@oclif/core": "^4.8.3"
23
21
  },
24
22
  "overrides": {
25
23
  "@oclif/core": {
@@ -33,7 +31,7 @@
33
31
  "@types/node": "^14.18.63",
34
32
  "@types/sinon": "^21.0.0",
35
33
  "chai": "^4.5.0",
36
- "eslint": "^8.57.1",
34
+ "eslint": "^9.26.0",
37
35
  "eslint-config-oclif": "^6.0.62",
38
36
  "eslint-config-oclif-typescript": "^3.1.14",
39
37
  "mocha": "10.8.2",