feat: update README with installation command and add debug logs in deploy command

- Added installation command for the CLI tool in README.
- Enhanced deploy command with debug logging for upload results and query app version.
- Integrated useKey for fetching KEVISUAL_TOKEN in get-config module.
- Added debug logging in queryAppVersion for better traceability.
- Updated temp.md with new dependency and example command for deployment.
This commit is contained in:
2026-01-17 23:28:38 +08:00
parent 5395449751
commit 91d4fed474
13 changed files with 321 additions and 2039 deletions

View File

@@ -111,6 +111,7 @@ const command = new Command('deploy')
}
const uploadDirectory = isDirectory ? directory : path.dirname(directory);
const res = await uploadFiles(_relativeFiles, uploadDirectory, { key, version, username: org, noCheckAppFiles: !noCheck, directory: options.directory });
logger.debug('upload res', res);
if (res?.code === 200) {
res.data?.upload?.map?.((d) => {
console.log(chalk.green('uploaded file', d?.name, d?.path));
@@ -119,6 +120,7 @@ const command = new Command('deploy')
key: key,
version: version,
});
logger.debug('queryAppVersion res', res2);
if (res2.code !== 200) {
console.error(chalk.red('查询应用版本失败'), res2.message, key);
return;