@tencentcloudadp/cli 0.1.2 → 0.1.5

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 CHANGED
@@ -13,7 +13,7 @@ Binary: `adp`
13
13
  npm install -g @tencentcloudadp/cli
14
14
  ```
15
15
 
16
- Requires Node.js 20+.
16
+ Requires Node.js 20+. On Windows the global install exposes `adp.cmd`; see [docs/operations/windows.md](docs/operations/windows.md).
17
17
 
18
18
  ### Upgrade
19
19
 
@@ -43,7 +43,7 @@ make uninstall-local
43
43
 
44
44
  ## Quick start
45
45
 
46
- Get a **CAM** SecretId / SecretKey (starts with `AKID`) from [API Key Management](https://console.cloud.tencent.com/cam/capi). SecretKey is shown only once. This CLI is public cloud only (`adp.tencentcloudapi.com`); independent-site keys are not accepted.
46
+ Get a public-cloud **CAM** SecretId / SecretKey (starts with `AKID`) from [API Key Management](https://console.cloud.tencent.com/cam/capi), or an independent-site key from [ADP key management](https://adp.tencent.com/adp#/key-manage). SecretKey is shown only once. The same commands run on both sites; `adp login --site cloud` or `--site independent` selects the host.
47
47
 
48
48
  ```bash
49
49
  export TENCENTCLOUD_SECRET_ID=...
@@ -55,7 +55,7 @@ adp deploy --dry-run
55
55
  adp deploy
56
56
  ```
57
57
 
58
- Knowledge-base documents (same CAM keys; default KB id = `app_id`):
58
+ Knowledge-base documents (same profile keys; default KB id = `app_id`):
59
59
 
60
60
  ```bash
61
61
  adp kb doc import --file ./faq.md
package/bin/adp.js CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { fileURLToPath } from "node:url";
3
2
 
4
- await import(fileURLToPath(new URL("../dist/cli.js", import.meta.url)));
3
+ // Pass a file: URL, not a filesystem path: on Windows fileURLToPath() yields
4
+ // "C:\...", which the ESM loader rejects with ERR_UNSUPPORTED_ESM_URL_SCHEME.
5
+ await import(new URL("../dist/cli.js", import.meta.url).href);