mirror of
https://github.com/modelstudioai/cli.git
synced 2026-09-14 19:49:23 +08:00
refactor(knowledge): update deprecation notices for access key options in CLI and documentation
This commit is contained in:
@@ -64,16 +64,16 @@ export default defineCommand({
|
||||
},
|
||||
{
|
||||
flag: "--access-key-id <key>",
|
||||
description: "Deprecated: use global --api-key or env DASHSCOPE_API_KEY instead",
|
||||
description: "Deprecated: use global --api-key instead",
|
||||
},
|
||||
{
|
||||
flag: "--access-key-secret <key>",
|
||||
description: "Deprecated: use global --api-key or env DASHSCOPE_API_KEY instead",
|
||||
description: "Deprecated: use global --api-key instead",
|
||||
},
|
||||
],
|
||||
notes: [
|
||||
"Authentication: use global flag `--api-key <key>` or env var `DASHSCOPE_API_KEY` (recommended). AK/SK auth is deprecated and will be removed in a future version.",
|
||||
"`--workspace-id` is NOT required when using API-KEY auth.",
|
||||
"Authentication: pass `--api-key <key>`. AK/SK auth is deprecated and will be removed in a future version.",
|
||||
"`--workspace-id` is NOT required when using --api-key.",
|
||||
],
|
||||
examples: [
|
||||
'bl knowledge retrieve --index-id idx_xxx --query "如何使用阿里云百炼"',
|
||||
|
||||
Reference in New Issue
Block a user