auth 命令组用于 SSO 鉴权:通过浏览器登录并存储短时 STS 凭据、清除会话、查看当前身份,以及管理登录配置。login、logout、whoami 同时提供为顶层命令(如 agentkit login)。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
auth 命令组用于 SSO 鉴权:通过浏览器登录并存储短时 STS 凭据、清除会话、查看当前身份,以及管理登录配置。login、logout、whoami 同时提供为顶层命令(如 agentkit login)。
| 标志/参数 | 说明 | 默认值 |
|---|---|---|
[address] | 登录地址 | 无 |
-p, --profile <name> | 使用预置的命名配置,替代直接传入地址 | 无 |
--duration <seconds> | 请求的 STS 凭据有效期(秒) | 3600 |
--no-open | 不打开浏览器,仅打印登录 URL(用于无头环境/SSH) | false |
agentkit auth login
| 标志/参数 | 说明 | 默认值 |
|---|---|---|
-p, --profile <name> | SSO 配置名称 | 当前活跃配置 |
--all | 清除所有配置的会话 | false |
agentkit auth logout
| 标志/参数 | 说明 | 默认值 |
|---|---|---|
-p, --profile <name> | SSO 配置名称 | 当前活跃配置 |
agentkit auth whoami
| 标志/参数 | 说明 | 默认值 |
|---|---|---|
<name> | 配置名称(必填) | 无 |
--issuer <url> | OIDC issuer URL | 无 |
--client-id <id> | 公开的 OAuth client id | 无 |
--role-trn <trn> | STS role TRN | 无 |
--provider-trn <trn> | IAM OIDC provider TRN | 无 |
--region <region> | 区域 | cn-beijing |
agentkit auth profile set my-profile --issuer https://example.com --client-id abc123
agentkit auth profile list
| 标志/参数 | 说明 | 默认值 |
|---|---|---|
[name] | 配置名称 | 当前活跃配置 |
agentkit auth profile show my-profile