@contentstack/cli-config 1.20.1 → 1.20.2

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