@tencentcloudadp/cli 0.1.0 → 0.1.2

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/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@tencentcloudadp/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "CLI for Tencent Cloud Agent Development Platform (ADP)",
5
5
  "type": "module",
6
6
  "bin": {
7
- "adp": "./bin/adp.js"
7
+ "adp": "bin/adp.js"
8
8
  },
9
9
  "files": [
10
10
  "dist",
@@ -17,7 +17,7 @@ metadata:
17
17
  会话里第一次执行写入或查询前,先运行 `adp auth status --format json`。退出码 `4` 表示本机没有凭据:
18
18
 
19
19
  1. 运行 `adp auth login --web --detach --format json`,把返回的 `result.url`(`127.0.0.1` 本地页面)交给用户,
20
- 说明在页面里填写 SecretId/SecretKey,不要把密钥发到对话里。
20
+ 说明在页面里填写 SecretId/SecretKey。公有云密钥在 CAM 控制台创建;独立站密钥在 https://adp.tencent.com/adp#/key-manage 获取。不要把密钥发到对话里。
21
21
  2. 每隔几秒重跑 `adp auth status --format json`,成功后继续原任务;到 `result.expiresAt` 仍未成功就停下说明。
22
22
 
23
23
  不在对话中索取密钥,不使用 `--secret-id/--secret-key` 参数。细节见 [references/auth.md](references/auth.md)。
@@ -4,7 +4,7 @@
4
4
  `adp auth list --format json` 查看已存 profile。不要读取凭据文件内容到上下文。
5
5
 
6
6
  - 公有云 `cloud` 的 CAM SecretId 以 AKID 开头,入口 https://console.cloud.tencent.com/cam/capi。
7
- - 独立站 `independent` 使用 OneID,不要求 AKID 前缀;登录时显式 `--site independent`。
7
+ - 独立站 `independent` 的 API 密钥在 https://adp.tencent.com/adp#/key-manage (企业管理 → 密钥管理 → 新建API密钥)获取,使用 OneID,不要求 AKID 前缀;登录时显式 `--site independent`。不要把独立站用户指到 CAM 控制台。
8
8
  - 自定义站点使用 `--site custom --endpoint <host>`,先确认用户提供的目标地址。
9
9
  - `--profile` 优先于 `ADP_PROFILE` 和 active profile,但环境凭据仍优先于 profile 中的凭据。
10
10
  根据 `source` 验证实际身份,不凭参数猜测。profile 存于 `~/.adp/profiles/`,权限 0600。