@tolgee/cli 2.5.0 → 2.6.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/dist/cli.js +1 -1
- package/package.json +1 -1
- package/schema.json +4 -0
package/dist/cli.js
CHANGED
@@ -107,7 +107,7 @@ async function run() {
|
|
107
107
|
program.addOption(VERBOSE);
|
108
108
|
program.addOption(CONFIG_OPT);
|
109
109
|
program.addOption(API_URL_OPT.default(config.apiUrl ?? DEFAULT_API_URL));
|
110
|
-
program.addOption(API_KEY_OPT);
|
110
|
+
program.addOption(API_KEY_OPT.default(config.apiKey));
|
111
111
|
program.addOption(PROJECT_ID_OPT.default(config.projectId ?? -1));
|
112
112
|
program.addOption(FORMAT_OPT.default(config.format ?? 'JSON_TOLGEE'));
|
113
113
|
program.addOption(EXTRACTOR.default(config.extractor));
|
package/package.json
CHANGED
package/schema.json
CHANGED
@@ -9,6 +9,10 @@
|
|
9
9
|
"description": "The url of Tolgee API.",
|
10
10
|
"type": "string"
|
11
11
|
},
|
12
|
+
"apiKey": {
|
13
|
+
"description": "Api key to Tolgee Platform.\n\nWARNING: Make sure you don't leak your API key\nUse `apiKey` only if you are loading it from an environment or other secured source (supported in .js or .yml files) or your config is not public.\n\nIn most cases, it's better to use a one-time `login` command or set it via the `TOLGEE_API_KEY` environment variable.",
|
14
|
+
"type": "string"
|
15
|
+
},
|
12
16
|
"format": {
|
13
17
|
"$ref": "#/$defs/format"
|
14
18
|
},
|