@contentstack/cli-auth 1.0.2 → 1.0.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 +7 -7
- package/oclif.manifest.json +1 -1
- package/package.json +13 -9
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 (-v|--version|version)
|
|
21
|
-
@contentstack/cli-auth/1.0.
|
|
21
|
+
@contentstack/cli-auth/1.0.3 darwin-arm64 node-v18.11.0
|
|
22
22
|
$ csdx --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ csdx COMMAND
|
|
@@ -59,7 +59,7 @@ EXAMPLES
|
|
|
59
59
|
$ csdx auth:login --username <username> --password <password>
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
_See code: [src/commands/auth/login.ts](https://github.com/contentstack/cli/blob/
|
|
62
|
+
_See code: [src/commands/auth/login.ts](https://github.com/contentstack/cli/blob/main/packages/contentstack-auth/src/commands/auth/login.ts)_
|
|
63
63
|
|
|
64
64
|
## `csdx auth:logout`
|
|
65
65
|
|
|
@@ -81,7 +81,7 @@ EXAMPLES
|
|
|
81
81
|
$ csdx auth:logout --yes
|
|
82
82
|
```
|
|
83
83
|
|
|
84
|
-
_See code: [src/commands/auth/logout.ts](https://github.com/contentstack/cli/blob/
|
|
84
|
+
_See code: [src/commands/auth/logout.ts](https://github.com/contentstack/cli/blob/main/packages/contentstack-auth/src/commands/auth/logout.ts)_
|
|
85
85
|
|
|
86
86
|
## `csdx auth:tokens`
|
|
87
87
|
|
|
@@ -108,7 +108,7 @@ EXAMPLE
|
|
|
108
108
|
$ csdx auth:tokens
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
-
_See code: [src/commands/auth/tokens/index.ts](https://github.com/contentstack/cli/blob/
|
|
111
|
+
_See code: [src/commands/auth/tokens/index.ts](https://github.com/contentstack/cli/blob/main/packages/contentstack-auth/src/commands/auth/tokens/index.ts)_
|
|
112
112
|
|
|
113
113
|
## `csdx auth:tokens:add [-a <value>] [--delivery] [--management] [-e <value>] [-k <value>] [-y] [--token <value>]`
|
|
114
114
|
|
|
@@ -142,7 +142,7 @@ EXAMPLES
|
|
|
142
142
|
token>
|
|
143
143
|
```
|
|
144
144
|
|
|
145
|
-
_See code: [src/commands/auth/tokens/add.ts](https://github.com/contentstack/cli/blob/
|
|
145
|
+
_See code: [src/commands/auth/tokens/add.ts](https://github.com/contentstack/cli/blob/main/packages/contentstack-auth/src/commands/auth/tokens/add.ts)_
|
|
146
146
|
|
|
147
147
|
## `csdx auth:tokens:remove`
|
|
148
148
|
|
|
@@ -161,7 +161,7 @@ EXAMPLES
|
|
|
161
161
|
$ csdx auth:tokens:remove -a <alias>
|
|
162
162
|
```
|
|
163
163
|
|
|
164
|
-
_See code: [src/commands/auth/tokens/remove.ts](https://github.com/contentstack/cli/blob/
|
|
164
|
+
_See code: [src/commands/auth/tokens/remove.ts](https://github.com/contentstack/cli/blob/main/packages/contentstack-auth/src/commands/auth/tokens/remove.ts)_
|
|
165
165
|
|
|
166
166
|
## `csdx auth:whoami`
|
|
167
167
|
|
|
@@ -178,5 +178,5 @@ EXAMPLE
|
|
|
178
178
|
$ csdx auth:whoami
|
|
179
179
|
```
|
|
180
180
|
|
|
181
|
-
_See code: [src/commands/auth/whoami.ts](https://github.com/contentstack/cli/blob/
|
|
181
|
+
_See code: [src/commands/auth/whoami.ts](https://github.com/contentstack/cli/blob/main/packages/contentstack-auth/src/commands/auth/whoami.ts)_
|
|
182
182
|
<!-- commandsstop -->
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.0.
|
|
1
|
+
{"version":"1.0.3","commands":{"auth:login":{"id":"auth:login","description":"User sessions login","pluginName":"@contentstack/cli-auth","pluginType":"core","aliases":["login"],"examples":["$ csdx auth:login","$ csdx auth:login -u <username>","$ csdx auth:login -u <username> -p <password>","$ csdx auth:login --username <username>","$ csdx auth:login --username <username> --password <password>"],"flags":{"username":{"name":"username","type":"option","char":"u","description":"User name","required":false},"password":{"name":"password","type":"option","char":"p","description":"Password","required":false}},"args":[]},"auth:logout":{"id":"auth:logout","description":"User session logout","pluginName":"@contentstack/cli-auth","pluginType":"core","aliases":["logout"],"examples":["$ csdx auth:logout","$ csdx auth:logout -y","$ csdx auth:logout --yes"],"flags":{"yes":{"name":"yes","type":"boolean","char":"y","description":"Force log out by skipping the confirmation","required":false,"allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"Force log out by skipping the confirmation","hidden":true,"required":false,"allowNo":false}},"args":[]},"auth:whoami":{"id":"auth:whoami","description":"Display current users email address","pluginName":"@contentstack/cli-auth","pluginType":"core","aliases":["whoami"],"examples":["$ csdx auth:whoami"],"flags":{},"args":[]},"auth:tokens:add":{"id":"auth:tokens:add","description":"Adds management/delivery tokens to your session to use it with other CLI commands","usage":"auth:tokens:add [-a <value>] [--delivery] [--management] [-e <value>] [-k <value>] [-y] [--token <value>]","pluginName":"@contentstack/cli-auth","pluginType":"core","aliases":[],"examples":["$ csdx auth:tokens:add","$ csdx auth:tokens:add -a <alias>","$ csdx auth:tokens:add -k <stack api key>","$ csdx auth:tokens:add --delivery","$ csdx auth:tokens:add --management","$ csdx auth:tokens:add -e <environment>","$ csdx auth:tokens:add --token <token>","$ csdx auth:tokens:add -a <alias> -k <stack api key> --management --token <management token>","$ csdx auth:tokens:add -a <alias> -k <stack api key> --delivery -e <environment> --token <delivery token>","$ csdx auth:tokens:add --alias <alias> --stack-api-key <stack api key> --management --token <management token>","$ csdx auth:tokens:add --alias <alias> --stack-api-key <stack api key> --delivery -e <environment> --token <delivery token>"],"flags":{"alias":{"name":"alias","type":"option","char":"a","description":"Name of the token alias"},"delivery":{"name":"delivery","type":"boolean","char":"d","description":"Set this flag to save delivery token","allowNo":false},"management":{"name":"management","type":"boolean","char":"m","description":"Set this flag to save management token","allowNo":false},"environment":{"name":"environment","type":"option","char":"e","description":"Environment name for delivery token"},"stack-api-key":{"name":"stack-api-key","type":"option","char":"k","description":"Stack API Key"},"yes":{"name":"yes","type":"boolean","char":"y","description":"Use this flag to skip confirmation","allowNo":false},"token":{"name":"token","type":"option","char":"t","description":"Add the token name"},"api-key":{"name":"api-key","type":"option","description":"API Key","hidden":true},"force":{"name":"force","type":"boolean","char":"f","description":"Force adding","hidden":true,"allowNo":false}},"args":[]},"auth:tokens":{"id":"auth:tokens","description":"Lists all existing tokens added to the session","pluginName":"@contentstack/cli-auth","pluginType":"core","aliases":["tokens"],"examples":["$ csdx auth:tokens"],"flags":{"columns":{"name":"columns","type":"option","description":"only show provided columns (comma-separated)"},"sort":{"name":"sort","type":"option","description":"property to sort by (prepend '-' for descending)"},"filter":{"name":"filter","type":"option","description":"filter property by partial string matching, ex: name=foo"},"csv":{"name":"csv","type":"boolean","description":"output is csv format [alias: --output=csv]","allowNo":false},"output":{"name":"output","type":"option","description":"output in a more machine friendly format","options":["csv","json","yaml"]},"extended":{"name":"extended","type":"boolean","char":"x","description":"show extra columns","allowNo":false},"no-truncate":{"name":"no-truncate","type":"boolean","description":"do not truncate output to fit screen","allowNo":false},"no-header":{"name":"no-header","type":"boolean","description":"hide table header from output","allowNo":false}},"args":[]},"auth:tokens:remove":{"id":"auth:tokens:remove","description":"Removes selected tokens","pluginName":"@contentstack/cli-auth","pluginType":"core","aliases":[],"examples":["$ csdx auth:tokens:remove","$ csdx auth:tokens:remove -a <alias>"],"flags":{"alias":{"name":"alias","type":"option","char":"a","description":"Token alias"},"ignore":{"name":"ignore","type":"boolean","char":"i","description":"Ignore","allowNo":false}},"args":[]}}}
|
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.0.
|
|
4
|
+
"version": "1.0.3",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bugs": "https://github.com/contentstack/cli/issues",
|
|
7
7
|
"scripts": {
|
|
@@ -16,19 +16,22 @@
|
|
|
16
16
|
"test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
|
|
17
17
|
"posttest": "npm run lint",
|
|
18
18
|
"lint": "eslint src/**/*.ts",
|
|
19
|
-
"format": "eslint src/**/*.ts --fix"
|
|
19
|
+
"format": "eslint src/**/*.ts --fix",
|
|
20
|
+
"test:integration": "mocha --forbid-only \"test/integration/*.test.ts\"",
|
|
21
|
+
"test:unit": "mocha --forbid-only \"test/unit/*.test.ts\""
|
|
20
22
|
},
|
|
21
23
|
"dependencies": {
|
|
22
|
-
"@contentstack/cli-command": "^1.0.
|
|
23
|
-
"@contentstack/cli-utilities": "^1.0.
|
|
24
|
+
"@contentstack/cli-command": "^1.0.2",
|
|
25
|
+
"@contentstack/cli-utilities": "^1.0.3",
|
|
24
26
|
"@oclif/command": "^1.8.16",
|
|
25
27
|
"@oclif/config": "^1.18.3",
|
|
26
28
|
"chalk": "^4.0.0",
|
|
27
29
|
"debug": "^4.1.1",
|
|
28
|
-
"inquirer": "^
|
|
30
|
+
"inquirer": "^8.2.4",
|
|
29
31
|
"winston": "^3.7.2"
|
|
30
32
|
},
|
|
31
33
|
"devDependencies": {
|
|
34
|
+
"@fancy-test/nock": "^0.1.1",
|
|
32
35
|
"@oclif/dev-cli": "^1.22.2",
|
|
33
36
|
"@oclif/plugin-help": "^5.1.12",
|
|
34
37
|
"@oclif/test": "^1.2.8",
|
|
@@ -39,8 +42,8 @@
|
|
|
39
42
|
"@types/node": "^14.14.32",
|
|
40
43
|
"@types/sinon": "^10.0.2",
|
|
41
44
|
"@types/tar": "^4.0.3",
|
|
42
|
-
"@types/winston": "^2.4.4",
|
|
43
45
|
"chai": "^4.3.4",
|
|
46
|
+
"dotenv": "^16.0.1",
|
|
44
47
|
"eslint": "^8.18.0",
|
|
45
48
|
"eslint-config-oclif": "^3.1.0",
|
|
46
49
|
"eslint-config-oclif-typescript": "^0.1.0",
|
|
@@ -50,7 +53,7 @@
|
|
|
50
53
|
"rimraf": "^2.7.1",
|
|
51
54
|
"sinon": "^11.1.1",
|
|
52
55
|
"tmp": "^0.2.1",
|
|
53
|
-
"ts-node": "^
|
|
56
|
+
"ts-node": "^10.9.1",
|
|
54
57
|
"typescript": "^4.7.4"
|
|
55
58
|
},
|
|
56
59
|
"engines": {
|
|
@@ -74,7 +77,8 @@
|
|
|
74
77
|
"bin": "csdx",
|
|
75
78
|
"devPlugins": [
|
|
76
79
|
"@oclif/plugin-help"
|
|
77
|
-
]
|
|
80
|
+
],
|
|
81
|
+
"repositoryPrefix": "<%- repo %>/blob/main/packages/contentstack-auth/<%- commandPath %>"
|
|
78
82
|
},
|
|
79
83
|
"husky": {
|
|
80
84
|
"hooks": {
|
|
@@ -82,4 +86,4 @@
|
|
|
82
86
|
}
|
|
83
87
|
},
|
|
84
88
|
"repository": "contentstack/cli"
|
|
85
|
-
}
|
|
89
|
+
}
|