@contentstack/cli-auth 1.3.25 → 1.4.1
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 +25 -27
- package/lib/commands/auth/tokens/index.d.ts +2 -1
- package/lib/commands/auth/tokens/index.js +24 -15
- package/oclif.manifest.json +207 -161
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-auth
|
|
|
18
18
|
$ csdx COMMAND
|
|
19
19
|
running command...
|
|
20
20
|
$ csdx (--version)
|
|
21
|
-
@contentstack/cli-auth/1.
|
|
21
|
+
@contentstack/cli-auth/1.4.1 linux-x64 node-v22.16.0
|
|
22
22
|
$ csdx --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ csdx COMMAND
|
|
@@ -51,7 +51,7 @@ USAGE
|
|
|
51
51
|
FLAGS
|
|
52
52
|
-p, --password=<value> Password of your Contentstack app.
|
|
53
53
|
-u, --username=<value> Email address of your Contentstack account.
|
|
54
|
-
|
|
54
|
+
--oauth Enables single sign-on (SSO) in Contentstack CLI.
|
|
55
55
|
|
|
56
56
|
DESCRIPTION
|
|
57
57
|
User sessions login
|
|
@@ -106,19 +106,18 @@ Lists all existing tokens added to the session
|
|
|
106
106
|
|
|
107
107
|
```
|
|
108
108
|
USAGE
|
|
109
|
-
$ csdx auth:tokens [--columns <value>
|
|
110
|
-
[--output csv|json|yaml
|
|
111
|
-
|
|
112
|
-
FLAGS
|
|
113
|
-
|
|
114
|
-
--
|
|
115
|
-
--
|
|
116
|
-
--
|
|
117
|
-
--no-
|
|
118
|
-
--
|
|
119
|
-
--output=<option> output in a more machine friendly format
|
|
109
|
+
$ csdx auth:tokens [--columns <value>] [--sort <value>] [--filter <value>] [--csv] [--no-truncate]
|
|
110
|
+
[--no-header] [--output csv|json|yaml]
|
|
111
|
+
|
|
112
|
+
TABLE FLAGS
|
|
113
|
+
--columns=<value> Specify columns to display, comma-separated.
|
|
114
|
+
--csv Output results in CSV format.
|
|
115
|
+
--filter=<value> Filter rows by a column value (e.g., name=foo).
|
|
116
|
+
--no-header Hide table headers in output.
|
|
117
|
+
--no-truncate Prevent truncation of long text in columns.
|
|
118
|
+
--output=<option> Specify output format: csv, json, or yaml.
|
|
120
119
|
<options: csv|json|yaml>
|
|
121
|
-
--sort=<value>
|
|
120
|
+
--sort=<value> Sort the table by a column. Use "-" for descending.
|
|
122
121
|
|
|
123
122
|
DESCRIPTION
|
|
124
123
|
Lists all existing tokens added to the session
|
|
@@ -232,7 +231,7 @@ USAGE
|
|
|
232
231
|
FLAGS
|
|
233
232
|
-p, --password=<value> Password of your Contentstack app.
|
|
234
233
|
-u, --username=<value> Email address of your Contentstack account.
|
|
235
|
-
|
|
234
|
+
--oauth Enables single sign-on (SSO) in Contentstack CLI.
|
|
236
235
|
|
|
237
236
|
DESCRIPTION
|
|
238
237
|
User sessions login
|
|
@@ -283,19 +282,18 @@ Lists all existing tokens added to the session
|
|
|
283
282
|
|
|
284
283
|
```
|
|
285
284
|
USAGE
|
|
286
|
-
$ csdx tokens [--columns <value>
|
|
287
|
-
[--output csv|json|yaml
|
|
288
|
-
|
|
289
|
-
FLAGS
|
|
290
|
-
|
|
291
|
-
--
|
|
292
|
-
--
|
|
293
|
-
--
|
|
294
|
-
--no-
|
|
295
|
-
--
|
|
296
|
-
--output=<option> output in a more machine friendly format
|
|
285
|
+
$ csdx tokens [--columns <value>] [--sort <value>] [--filter <value>] [--csv] [--no-truncate]
|
|
286
|
+
[--no-header] [--output csv|json|yaml]
|
|
287
|
+
|
|
288
|
+
TABLE FLAGS
|
|
289
|
+
--columns=<value> Specify columns to display, comma-separated.
|
|
290
|
+
--csv Output results in CSV format.
|
|
291
|
+
--filter=<value> Filter rows by a column value (e.g., name=foo).
|
|
292
|
+
--no-header Hide table headers in output.
|
|
293
|
+
--no-truncate Prevent truncation of long text in columns.
|
|
294
|
+
--output=<option> Specify output format: csv, json, or yaml.
|
|
297
295
|
<options: csv|json|yaml>
|
|
298
|
-
--sort=<value>
|
|
296
|
+
--sort=<value> Sort the table by a column. Use "-" for descending.
|
|
299
297
|
|
|
300
298
|
DESCRIPTION
|
|
301
299
|
Lists all existing tokens added to the session
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { FlagInput } from '@contentstack/cli-utilities';
|
|
1
2
|
import { BaseCommand } from '../../../base-command';
|
|
2
3
|
export default class TokensListCommand extends BaseCommand<typeof TokensListCommand> {
|
|
3
4
|
static aliases: string[];
|
|
4
5
|
static examples: string[];
|
|
5
6
|
static description: string;
|
|
6
|
-
static flags:
|
|
7
|
+
static flags: FlagInput;
|
|
7
8
|
run(): Promise<any>;
|
|
8
9
|
}
|
|
@@ -6,10 +6,10 @@ class TokensListCommand extends base_command_1.BaseCommand {
|
|
|
6
6
|
async run() {
|
|
7
7
|
try {
|
|
8
8
|
const managementTokens = cli_utilities_1.configHandler.get('tokens');
|
|
9
|
-
const
|
|
9
|
+
const tokens = [];
|
|
10
10
|
if (managementTokens && Object.keys(managementTokens).length > 0) {
|
|
11
11
|
Object.keys(managementTokens).forEach(function (item) {
|
|
12
|
-
|
|
12
|
+
tokens.push({
|
|
13
13
|
alias: item,
|
|
14
14
|
token: managementTokens[item].token,
|
|
15
15
|
apiKey: managementTokens[item].apiKey,
|
|
@@ -18,23 +18,24 @@ class TokensListCommand extends base_command_1.BaseCommand {
|
|
|
18
18
|
});
|
|
19
19
|
});
|
|
20
20
|
const { flags } = await this.parse(TokensListCommand);
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
const headers = [
|
|
22
|
+
{
|
|
23
|
+
value: 'alias',
|
|
24
24
|
},
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
{
|
|
26
|
+
value: 'token',
|
|
27
27
|
},
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
{
|
|
29
|
+
value: 'apiKey',
|
|
30
30
|
},
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
{
|
|
32
|
+
value: 'environment',
|
|
33
33
|
},
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
{
|
|
35
|
+
value: 'type',
|
|
36
36
|
},
|
|
37
|
-
|
|
37
|
+
];
|
|
38
|
+
cli_utilities_1.cliux.table(headers, tokens, flags);
|
|
38
39
|
}
|
|
39
40
|
else {
|
|
40
41
|
cli_utilities_1.cliux.print('CLI_AUTH_TOKENS_LIST_NO_TOKENS');
|
|
@@ -52,4 +53,12 @@ exports.default = TokensListCommand;
|
|
|
52
53
|
TokensListCommand.aliases = ['tokens'];
|
|
53
54
|
TokensListCommand.examples = ['$ csdx auth:tokens'];
|
|
54
55
|
TokensListCommand.description = 'Lists all existing tokens added to the session';
|
|
55
|
-
TokensListCommand.flags = cli_utilities_1.
|
|
56
|
+
TokensListCommand.flags = cli_utilities_1.CLITable.getTableFlags([
|
|
57
|
+
'columns',
|
|
58
|
+
'sort',
|
|
59
|
+
'filter',
|
|
60
|
+
'csv',
|
|
61
|
+
'no-truncate',
|
|
62
|
+
'no-header',
|
|
63
|
+
'output',
|
|
64
|
+
]); // use the cli table flags as it displays tokens in table
|
package/oclif.manifest.json
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.3.25",
|
|
3
2
|
"commands": {
|
|
4
3
|
"auth:login": {
|
|
5
|
-
"id": "auth:login",
|
|
6
|
-
"description": "User sessions login",
|
|
7
|
-
"strict": true,
|
|
8
|
-
"pluginName": "@contentstack/cli-auth",
|
|
9
|
-
"pluginAlias": "@contentstack/cli-auth",
|
|
10
|
-
"pluginType": "core",
|
|
11
4
|
"aliases": [
|
|
12
5
|
"login"
|
|
13
6
|
],
|
|
14
|
-
"
|
|
7
|
+
"args": {},
|
|
8
|
+
"description": "User sessions login",
|
|
15
9
|
"examples": [
|
|
16
10
|
"$ csdx auth:login",
|
|
17
11
|
"$ csdx auth:login -u <username>",
|
|
@@ -21,52 +15,62 @@
|
|
|
21
15
|
],
|
|
22
16
|
"flags": {
|
|
23
17
|
"username": {
|
|
24
|
-
"name": "username",
|
|
25
|
-
"type": "option",
|
|
26
18
|
"char": "u",
|
|
27
19
|
"description": "Email address of your Contentstack account.",
|
|
28
|
-
"required": false,
|
|
29
|
-
"multiple": false,
|
|
30
20
|
"exclusive": [
|
|
31
21
|
"oauth"
|
|
32
|
-
]
|
|
22
|
+
],
|
|
23
|
+
"name": "username",
|
|
24
|
+
"required": false,
|
|
25
|
+
"hasDynamicHelp": false,
|
|
26
|
+
"multiple": false,
|
|
27
|
+
"type": "option"
|
|
33
28
|
},
|
|
34
29
|
"password": {
|
|
35
|
-
"name": "password",
|
|
36
|
-
"type": "option",
|
|
37
30
|
"char": "p",
|
|
38
31
|
"description": "Password of your Contentstack app.",
|
|
39
|
-
"required": false,
|
|
40
|
-
"multiple": false,
|
|
41
32
|
"exclusive": [
|
|
42
33
|
"oauth"
|
|
43
|
-
]
|
|
34
|
+
],
|
|
35
|
+
"name": "password",
|
|
36
|
+
"required": false,
|
|
37
|
+
"hasDynamicHelp": false,
|
|
38
|
+
"multiple": false,
|
|
39
|
+
"type": "option"
|
|
44
40
|
},
|
|
45
41
|
"oauth": {
|
|
46
|
-
"name": "oauth",
|
|
47
|
-
"type": "boolean",
|
|
48
42
|
"description": "Enables single sign-on (SSO) in Contentstack CLI.",
|
|
49
|
-
"required": false,
|
|
50
|
-
"allowNo": false,
|
|
51
43
|
"exclusive": [
|
|
52
44
|
"username",
|
|
53
45
|
"password"
|
|
54
|
-
]
|
|
46
|
+
],
|
|
47
|
+
"name": "oauth",
|
|
48
|
+
"required": false,
|
|
49
|
+
"allowNo": false,
|
|
50
|
+
"type": "boolean"
|
|
55
51
|
}
|
|
56
52
|
},
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"id": "auth:logout",
|
|
61
|
-
"description": "User session logout",
|
|
62
|
-
"strict": true,
|
|
63
|
-
"pluginName": "@contentstack/cli-auth",
|
|
53
|
+
"hasDynamicHelp": false,
|
|
54
|
+
"hiddenAliases": [],
|
|
55
|
+
"id": "auth:login",
|
|
64
56
|
"pluginAlias": "@contentstack/cli-auth",
|
|
57
|
+
"pluginName": "@contentstack/cli-auth",
|
|
65
58
|
"pluginType": "core",
|
|
59
|
+
"strict": true,
|
|
60
|
+
"isESM": false,
|
|
61
|
+
"relativePath": [
|
|
62
|
+
"lib",
|
|
63
|
+
"commands",
|
|
64
|
+
"auth",
|
|
65
|
+
"login.js"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"auth:logout": {
|
|
66
69
|
"aliases": [
|
|
67
70
|
"logout"
|
|
68
71
|
],
|
|
69
|
-
"
|
|
72
|
+
"args": {},
|
|
73
|
+
"description": "User session logout",
|
|
70
74
|
"examples": [
|
|
71
75
|
"$ csdx auth:logout",
|
|
72
76
|
"$ csdx auth:logout -y",
|
|
@@ -74,52 +78,67 @@
|
|
|
74
78
|
],
|
|
75
79
|
"flags": {
|
|
76
80
|
"yes": {
|
|
77
|
-
"name": "yes",
|
|
78
|
-
"type": "boolean",
|
|
79
81
|
"char": "y",
|
|
80
82
|
"description": "Force log out by skipping the confirmation.",
|
|
83
|
+
"name": "yes",
|
|
81
84
|
"required": false,
|
|
82
|
-
"allowNo": false
|
|
85
|
+
"allowNo": false,
|
|
86
|
+
"type": "boolean"
|
|
83
87
|
},
|
|
84
88
|
"force": {
|
|
85
|
-
"name": "force",
|
|
86
|
-
"type": "boolean",
|
|
87
89
|
"char": "f",
|
|
88
90
|
"description": "Force log out by skipping the confirmation.",
|
|
89
91
|
"hidden": true,
|
|
92
|
+
"name": "force",
|
|
90
93
|
"required": false,
|
|
91
|
-
"allowNo": false
|
|
94
|
+
"allowNo": false,
|
|
95
|
+
"type": "boolean"
|
|
92
96
|
}
|
|
93
97
|
},
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"id": "auth:whoami",
|
|
98
|
-
"description": "Display current users email address",
|
|
99
|
-
"strict": true,
|
|
100
|
-
"pluginName": "@contentstack/cli-auth",
|
|
98
|
+
"hasDynamicHelp": false,
|
|
99
|
+
"hiddenAliases": [],
|
|
100
|
+
"id": "auth:logout",
|
|
101
101
|
"pluginAlias": "@contentstack/cli-auth",
|
|
102
|
+
"pluginName": "@contentstack/cli-auth",
|
|
102
103
|
"pluginType": "core",
|
|
104
|
+
"strict": true,
|
|
105
|
+
"isESM": false,
|
|
106
|
+
"relativePath": [
|
|
107
|
+
"lib",
|
|
108
|
+
"commands",
|
|
109
|
+
"auth",
|
|
110
|
+
"logout.js"
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"auth:whoami": {
|
|
103
114
|
"aliases": [
|
|
104
115
|
"whoami"
|
|
105
116
|
],
|
|
106
|
-
"
|
|
117
|
+
"args": {},
|
|
118
|
+
"description": "Display current users email address",
|
|
107
119
|
"examples": [
|
|
108
120
|
"$ csdx auth:whoami"
|
|
109
121
|
],
|
|
110
122
|
"flags": {},
|
|
111
|
-
"
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"id": "auth:tokens:add",
|
|
115
|
-
"description": "Adds management/delivery tokens to your session to use it with other CLI commands",
|
|
116
|
-
"strict": true,
|
|
117
|
-
"usage": "auth:tokens:add [-a <value>] [--delivery] [--management] [-e <value>] [-k <value>] [-y] [--token <value>]",
|
|
118
|
-
"pluginName": "@contentstack/cli-auth",
|
|
123
|
+
"hasDynamicHelp": false,
|
|
124
|
+
"hiddenAliases": [],
|
|
125
|
+
"id": "auth:whoami",
|
|
119
126
|
"pluginAlias": "@contentstack/cli-auth",
|
|
127
|
+
"pluginName": "@contentstack/cli-auth",
|
|
120
128
|
"pluginType": "core",
|
|
129
|
+
"strict": true,
|
|
130
|
+
"isESM": false,
|
|
131
|
+
"relativePath": [
|
|
132
|
+
"lib",
|
|
133
|
+
"commands",
|
|
134
|
+
"auth",
|
|
135
|
+
"whoami.js"
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
"auth:tokens:add": {
|
|
121
139
|
"aliases": [],
|
|
122
|
-
"
|
|
140
|
+
"args": {},
|
|
141
|
+
"description": "Adds management/delivery tokens to your session to use it with other CLI commands",
|
|
123
142
|
"examples": [
|
|
124
143
|
"$ csdx auth:tokens:add",
|
|
125
144
|
"$ csdx auth:tokens:add -a <alias>",
|
|
@@ -135,211 +154,238 @@
|
|
|
135
154
|
],
|
|
136
155
|
"flags": {
|
|
137
156
|
"alias": {
|
|
138
|
-
"name": "alias",
|
|
139
|
-
"type": "option",
|
|
140
157
|
"char": "a",
|
|
141
158
|
"description": "Alias (name) you want to assign to the token",
|
|
142
|
-
"
|
|
159
|
+
"name": "alias",
|
|
160
|
+
"hasDynamicHelp": false,
|
|
161
|
+
"multiple": false,
|
|
162
|
+
"type": "option"
|
|
143
163
|
},
|
|
144
164
|
"delivery": {
|
|
145
|
-
"name": "delivery",
|
|
146
|
-
"type": "boolean",
|
|
147
165
|
"char": "d",
|
|
148
166
|
"description": "Set this flag to save delivery token",
|
|
149
|
-
"allowNo": false,
|
|
150
167
|
"exclusive": [
|
|
151
168
|
"management"
|
|
152
|
-
]
|
|
169
|
+
],
|
|
170
|
+
"name": "delivery",
|
|
171
|
+
"allowNo": false,
|
|
172
|
+
"type": "boolean"
|
|
153
173
|
},
|
|
154
174
|
"management": {
|
|
155
|
-
"name": "management",
|
|
156
|
-
"type": "boolean",
|
|
157
175
|
"char": "m",
|
|
158
176
|
"description": "Set this flag to save management token",
|
|
159
|
-
"allowNo": false,
|
|
160
177
|
"exclusive": [
|
|
161
178
|
"delivery",
|
|
162
179
|
"environment"
|
|
163
|
-
]
|
|
180
|
+
],
|
|
181
|
+
"name": "management",
|
|
182
|
+
"allowNo": false,
|
|
183
|
+
"type": "boolean"
|
|
164
184
|
},
|
|
165
185
|
"environment": {
|
|
166
|
-
"name": "environment",
|
|
167
|
-
"type": "option",
|
|
168
186
|
"char": "e",
|
|
169
187
|
"description": "Environment name for delivery token",
|
|
170
|
-
"multiple": false,
|
|
171
188
|
"exclusive": [
|
|
172
189
|
"management"
|
|
173
|
-
]
|
|
190
|
+
],
|
|
191
|
+
"name": "environment",
|
|
192
|
+
"hasDynamicHelp": false,
|
|
193
|
+
"multiple": false,
|
|
194
|
+
"type": "option"
|
|
174
195
|
},
|
|
175
196
|
"stack-api-key": {
|
|
176
|
-
"name": "stack-api-key",
|
|
177
|
-
"type": "option",
|
|
178
197
|
"char": "k",
|
|
179
198
|
"description": "Stack API Key",
|
|
180
|
-
"
|
|
199
|
+
"name": "stack-api-key",
|
|
200
|
+
"hasDynamicHelp": false,
|
|
201
|
+
"multiple": false,
|
|
202
|
+
"type": "option"
|
|
181
203
|
},
|
|
182
204
|
"yes": {
|
|
183
|
-
"name": "yes",
|
|
184
|
-
"type": "boolean",
|
|
185
205
|
"char": "y",
|
|
186
206
|
"description": "Use this flag to skip confirmation",
|
|
187
|
-
"
|
|
207
|
+
"name": "yes",
|
|
208
|
+
"allowNo": false,
|
|
209
|
+
"type": "boolean"
|
|
188
210
|
},
|
|
189
211
|
"token": {
|
|
190
|
-
"name": "token",
|
|
191
|
-
"type": "option",
|
|
192
212
|
"char": "t",
|
|
193
213
|
"description": "Add the token name",
|
|
194
|
-
"
|
|
214
|
+
"env": "TOKEN",
|
|
215
|
+
"name": "token",
|
|
216
|
+
"hasDynamicHelp": false,
|
|
217
|
+
"multiple": false,
|
|
218
|
+
"type": "option"
|
|
195
219
|
},
|
|
196
220
|
"api-key": {
|
|
197
|
-
"name": "api-key",
|
|
198
|
-
"type": "option",
|
|
199
221
|
"description": "API Key",
|
|
200
222
|
"hidden": true,
|
|
201
|
-
"
|
|
223
|
+
"name": "api-key",
|
|
224
|
+
"hasDynamicHelp": false,
|
|
225
|
+
"multiple": false,
|
|
226
|
+
"type": "option"
|
|
202
227
|
},
|
|
203
228
|
"force": {
|
|
204
|
-
"name": "force",
|
|
205
|
-
"type": "boolean",
|
|
206
229
|
"char": "f",
|
|
207
230
|
"description": "Force adding",
|
|
208
231
|
"hidden": true,
|
|
209
|
-
"
|
|
232
|
+
"name": "force",
|
|
233
|
+
"allowNo": false,
|
|
234
|
+
"type": "boolean"
|
|
210
235
|
},
|
|
211
236
|
"branch": {
|
|
212
|
-
"name": "branch",
|
|
213
|
-
"type": "option",
|
|
214
237
|
"description": "Branch name",
|
|
215
238
|
"hidden": true,
|
|
239
|
+
"name": "branch",
|
|
216
240
|
"required": false,
|
|
217
|
-
"
|
|
241
|
+
"hasDynamicHelp": false,
|
|
242
|
+
"multiple": false,
|
|
243
|
+
"type": "option"
|
|
218
244
|
}
|
|
219
245
|
},
|
|
220
|
-
"
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
"id": "auth:tokens",
|
|
224
|
-
"description": "Lists all existing tokens added to the session",
|
|
225
|
-
"strict": true,
|
|
226
|
-
"pluginName": "@contentstack/cli-auth",
|
|
246
|
+
"hasDynamicHelp": false,
|
|
247
|
+
"hiddenAliases": [],
|
|
248
|
+
"id": "auth:tokens:add",
|
|
227
249
|
"pluginAlias": "@contentstack/cli-auth",
|
|
250
|
+
"pluginName": "@contentstack/cli-auth",
|
|
228
251
|
"pluginType": "core",
|
|
252
|
+
"strict": true,
|
|
253
|
+
"usage": "auth:tokens:add [-a <value>] [--delivery] [--management] [-e <value>] [-k <value>] [-y] [--token <value>]",
|
|
254
|
+
"isESM": false,
|
|
255
|
+
"relativePath": [
|
|
256
|
+
"lib",
|
|
257
|
+
"commands",
|
|
258
|
+
"auth",
|
|
259
|
+
"tokens",
|
|
260
|
+
"add.js"
|
|
261
|
+
]
|
|
262
|
+
},
|
|
263
|
+
"auth:tokens": {
|
|
229
264
|
"aliases": [
|
|
230
265
|
"tokens"
|
|
231
266
|
],
|
|
232
|
-
"
|
|
267
|
+
"args": {},
|
|
268
|
+
"description": "Lists all existing tokens added to the session",
|
|
233
269
|
"examples": [
|
|
234
270
|
"$ csdx auth:tokens"
|
|
235
271
|
],
|
|
236
272
|
"flags": {
|
|
237
273
|
"columns": {
|
|
274
|
+
"description": "Specify columns to display, comma-separated.",
|
|
275
|
+
"helpGroup": "TABLE",
|
|
238
276
|
"name": "columns",
|
|
239
|
-
"
|
|
240
|
-
"description": "only show provided columns (comma-separated)",
|
|
277
|
+
"hasDynamicHelp": false,
|
|
241
278
|
"multiple": false,
|
|
242
|
-
"
|
|
243
|
-
"extended"
|
|
244
|
-
]
|
|
279
|
+
"type": "option"
|
|
245
280
|
},
|
|
246
|
-
"
|
|
247
|
-
"
|
|
248
|
-
"
|
|
249
|
-
"
|
|
250
|
-
"
|
|
251
|
-
"
|
|
252
|
-
|
|
253
|
-
]
|
|
254
|
-
},
|
|
255
|
-
"extended": {
|
|
256
|
-
"name": "extended",
|
|
257
|
-
"type": "boolean",
|
|
258
|
-
"char": "x",
|
|
259
|
-
"description": "show extra columns",
|
|
260
|
-
"allowNo": false,
|
|
261
|
-
"exclusive": [
|
|
262
|
-
"columns"
|
|
263
|
-
]
|
|
281
|
+
"sort": {
|
|
282
|
+
"description": "Sort the table by a column. Use \"-\" for descending.",
|
|
283
|
+
"helpGroup": "TABLE",
|
|
284
|
+
"name": "sort",
|
|
285
|
+
"hasDynamicHelp": false,
|
|
286
|
+
"multiple": false,
|
|
287
|
+
"type": "option"
|
|
264
288
|
},
|
|
265
289
|
"filter": {
|
|
290
|
+
"description": "Filter rows by a column value (e.g., name=foo).",
|
|
291
|
+
"helpGroup": "TABLE",
|
|
266
292
|
"name": "filter",
|
|
267
|
-
"
|
|
268
|
-
"
|
|
269
|
-
"
|
|
293
|
+
"hasDynamicHelp": false,
|
|
294
|
+
"multiple": false,
|
|
295
|
+
"type": "option"
|
|
270
296
|
},
|
|
271
|
-
"
|
|
272
|
-
"
|
|
273
|
-
"
|
|
274
|
-
"
|
|
297
|
+
"csv": {
|
|
298
|
+
"description": "Output results in CSV format.",
|
|
299
|
+
"helpGroup": "TABLE",
|
|
300
|
+
"name": "csv",
|
|
275
301
|
"allowNo": false,
|
|
276
|
-
"
|
|
277
|
-
"csv"
|
|
278
|
-
]
|
|
302
|
+
"type": "boolean"
|
|
279
303
|
},
|
|
280
304
|
"no-truncate": {
|
|
305
|
+
"description": "Prevent truncation of long text in columns.",
|
|
306
|
+
"helpGroup": "TABLE",
|
|
281
307
|
"name": "no-truncate",
|
|
282
|
-
"type": "boolean",
|
|
283
|
-
"description": "do not truncate output to fit screen",
|
|
284
308
|
"allowNo": false,
|
|
285
|
-
"
|
|
286
|
-
|
|
287
|
-
|
|
309
|
+
"type": "boolean"
|
|
310
|
+
},
|
|
311
|
+
"no-header": {
|
|
312
|
+
"description": "Hide table headers in output.",
|
|
313
|
+
"helpGroup": "TABLE",
|
|
314
|
+
"name": "no-header",
|
|
315
|
+
"allowNo": false,
|
|
316
|
+
"type": "boolean"
|
|
288
317
|
},
|
|
289
318
|
"output": {
|
|
319
|
+
"description": "Specify output format: csv, json, or yaml.",
|
|
320
|
+
"helpGroup": "TABLE",
|
|
290
321
|
"name": "output",
|
|
291
|
-
"
|
|
292
|
-
"description": "output in a more machine friendly format",
|
|
322
|
+
"hasDynamicHelp": false,
|
|
293
323
|
"multiple": false,
|
|
294
324
|
"options": [
|
|
295
325
|
"csv",
|
|
296
326
|
"json",
|
|
297
327
|
"yaml"
|
|
298
328
|
],
|
|
299
|
-
"
|
|
300
|
-
"no-truncate",
|
|
301
|
-
"csv"
|
|
302
|
-
]
|
|
303
|
-
},
|
|
304
|
-
"sort": {
|
|
305
|
-
"name": "sort",
|
|
306
|
-
"type": "option",
|
|
307
|
-
"description": "property to sort by (prepend '-' for descending)",
|
|
308
|
-
"multiple": false
|
|
329
|
+
"type": "option"
|
|
309
330
|
}
|
|
310
331
|
},
|
|
311
|
-
"
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
"id": "auth:tokens:remove",
|
|
315
|
-
"description": "Removes selected tokens",
|
|
316
|
-
"strict": true,
|
|
317
|
-
"pluginName": "@contentstack/cli-auth",
|
|
332
|
+
"hasDynamicHelp": false,
|
|
333
|
+
"hiddenAliases": [],
|
|
334
|
+
"id": "auth:tokens",
|
|
318
335
|
"pluginAlias": "@contentstack/cli-auth",
|
|
336
|
+
"pluginName": "@contentstack/cli-auth",
|
|
319
337
|
"pluginType": "core",
|
|
338
|
+
"strict": true,
|
|
339
|
+
"isESM": false,
|
|
340
|
+
"relativePath": [
|
|
341
|
+
"lib",
|
|
342
|
+
"commands",
|
|
343
|
+
"auth",
|
|
344
|
+
"tokens",
|
|
345
|
+
"index.js"
|
|
346
|
+
]
|
|
347
|
+
},
|
|
348
|
+
"auth:tokens:remove": {
|
|
320
349
|
"aliases": [],
|
|
321
|
-
"
|
|
350
|
+
"args": {},
|
|
351
|
+
"description": "Removes selected tokens",
|
|
322
352
|
"examples": [
|
|
323
353
|
"$ csdx auth:tokens:remove",
|
|
324
354
|
"$ csdx auth:tokens:remove -a <alias>"
|
|
325
355
|
],
|
|
326
356
|
"flags": {
|
|
327
357
|
"alias": {
|
|
328
|
-
"name": "alias",
|
|
329
|
-
"type": "option",
|
|
330
358
|
"char": "a",
|
|
331
359
|
"description": "Alias (name) of the token to delete.",
|
|
332
|
-
"
|
|
360
|
+
"name": "alias",
|
|
361
|
+
"hasDynamicHelp": false,
|
|
362
|
+
"multiple": false,
|
|
363
|
+
"type": "option"
|
|
333
364
|
},
|
|
334
365
|
"ignore": {
|
|
335
|
-
"name": "ignore",
|
|
336
|
-
"type": "boolean",
|
|
337
366
|
"char": "i",
|
|
338
367
|
"description": "Ignores if the token is not present.",
|
|
339
|
-
"
|
|
368
|
+
"name": "ignore",
|
|
369
|
+
"allowNo": false,
|
|
370
|
+
"type": "boolean"
|
|
340
371
|
}
|
|
341
372
|
},
|
|
342
|
-
"
|
|
373
|
+
"hasDynamicHelp": false,
|
|
374
|
+
"hiddenAliases": [],
|
|
375
|
+
"id": "auth:tokens:remove",
|
|
376
|
+
"pluginAlias": "@contentstack/cli-auth",
|
|
377
|
+
"pluginName": "@contentstack/cli-auth",
|
|
378
|
+
"pluginType": "core",
|
|
379
|
+
"strict": true,
|
|
380
|
+
"isESM": false,
|
|
381
|
+
"relativePath": [
|
|
382
|
+
"lib",
|
|
383
|
+
"commands",
|
|
384
|
+
"auth",
|
|
385
|
+
"tokens",
|
|
386
|
+
"remove.js"
|
|
387
|
+
]
|
|
343
388
|
}
|
|
344
|
-
}
|
|
389
|
+
},
|
|
390
|
+
"version": "1.4.1"
|
|
345
391
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-auth",
|
|
3
3
|
"description": "Contentstack CLI plugin for authentication activities",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.4.1",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bugs": "https://github.com/contentstack/cli/issues",
|
|
7
7
|
"scripts": {
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
"test:unit:report": "nyc --extension .ts mocha --forbid-only \"test/unit/**/*.test.ts\""
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@contentstack/cli-command": "~1.
|
|
26
|
-
"@contentstack/cli-utilities": "~1.
|
|
25
|
+
"@contentstack/cli-command": "~1.5.0",
|
|
26
|
+
"@contentstack/cli-utilities": "~1.12.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@fancy-test/nock": "^0.1.1",
|
|
30
|
-
"@oclif/plugin-help": "^
|
|
31
|
-
"@oclif/test": "^4.1.
|
|
30
|
+
"@oclif/plugin-help": "^6.2.28",
|
|
31
|
+
"@oclif/test": "^4.1.13",
|
|
32
32
|
"@types/chai": "^4.3.20",
|
|
33
33
|
"@types/mkdirp": "^1.0.2",
|
|
34
34
|
"@types/mocha": "^8.2.3",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"dotenv": "^16.4.7",
|
|
39
39
|
"eslint": "^8.57.1",
|
|
40
40
|
"eslint-config-oclif": "^5.2.2",
|
|
41
|
-
"eslint-config-oclif-typescript": "^3.1.
|
|
41
|
+
"eslint-config-oclif-typescript": "^3.1.14",
|
|
42
42
|
"mocha": "10.8.2",
|
|
43
43
|
"nyc": "^15.1.0",
|
|
44
|
-
"oclif": "^
|
|
45
|
-
"sinon": "^19.0.
|
|
44
|
+
"oclif": "^4.17.46",
|
|
45
|
+
"sinon": "^19.0.5",
|
|
46
46
|
"ts-node": "^10.9.2",
|
|
47
47
|
"typescript": "^4.9.5"
|
|
48
48
|
},
|