indices-auth
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseIndices Auth
Indices 身份认证
When To Use
适用场景
Use this skill for:
indices loginindices auth-testindices logout- API key verification and storage behavior
此技能适用于以下场景:
indices loginindices auth-testindices logout- API 密钥验证及存储行为相关操作
Commands
命令
Login
登录
bash
indices login
indices login --api-key "<api-key>"Behavior:
- If is omitted, CLI securely prompts for the key.
--api-key - API key is validated.
- Stores API key in local config.
bash
indices login
indices login --api-key "<api-key>"行为说明:
- 若省略参数,CLI将安全地提示用户输入密钥。
--api-key - API密钥会被校验有效性。
- 校验通过后API密钥会被存储到本地配置中。
Auth Test
认证测试
bash
indices auth-testReturns an authenticated probe response.
bash
indices auth-test返回已通过身份验证的探测响应。
Logout
登出
bash
indices logoutRemoves stored API key.
bash
indices logout移除已存储的API密钥。
Useful Global Flags
实用全局参数
bash
indices auth-test --output json
indices login --api-base https://api.indices.io --timeout 30bash
indices auth-test --output json
indices login --api-base https://api.indices.io --timeout 30