storyblok 3.21.0 → 3.22.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 +1 -1
- package/package.json +1 -1
- package/src/cli.js +1 -1
- package/src/utils/get-questions.js +1 -1
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ $ storyblok login
|
|
|
44
44
|
|
|
45
45
|
**For Both login options you nedd to pass the region**
|
|
46
46
|
|
|
47
|
-
* `region`:
|
|
47
|
+
* `region`: region you would like to work in. Please keep in mind that the region must match the region of your space. You can use `us`, `cn` or `eu`, if left empty, default is `eu`. This region flag will be used for the other cli's commands.
|
|
48
48
|
|
|
49
49
|
#### Login with token flag
|
|
50
50
|
You can also add the token directly from the login’s command, like the example below:
|
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -40,7 +40,7 @@ program
|
|
|
40
40
|
.command(COMMANDS.LOGIN)
|
|
41
41
|
.description('Login to the Storyblok cli')
|
|
42
42
|
.option('-t, --token <token>', 'Token to login directly without questions, like for CI enviroments')
|
|
43
|
-
.option('-r, --region <region>', '
|
|
43
|
+
.option('-r, --region <region>', 'The region you would like to work in. Please keep in mind that the region must match the region of your space. You can use us, cn or eu, if left empty, default is eu. This region flag will be used for the other cli\'s commands')
|
|
44
44
|
.action(async (options) => {
|
|
45
45
|
const { token, region } = options
|
|
46
46
|
|
|
@@ -9,7 +9,7 @@ const getOptions = (subCommand, argv = {}, api = {}) => {
|
|
|
9
9
|
const regionInput = {
|
|
10
10
|
type: 'input',
|
|
11
11
|
name: 'region',
|
|
12
|
-
message: '
|
|
12
|
+
message: 'Please enter the region you would like to work in (us, eu or cn) - if not set, default is eu:',
|
|
13
13
|
validate: function (value) {
|
|
14
14
|
const flagList = ['us', 'cn', 'eu']
|
|
15
15
|
if (flagList.indexOf(value) > -1) {
|