indices-auth

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Indices Auth

Indices 身份认证

When To Use

适用场景

Use this skill for:
  • indices login
  • indices auth-test
  • indices logout
  • API key verification and storage behavior
此技能适用于以下场景:
  • indices login
  • indices auth-test
  • indices logout
  • API 密钥验证及存储行为相关操作

Commands

命令

Login

登录

bash
indices login
indices login --api-key "<api-key>"
Behavior:
  • If
    --api-key
    is omitted, CLI securely prompts for the key.
  • API key is validated.
  • Stores API key in local config.
bash
indices login
indices login --api-key "<api-key>"
行为说明:
  • 若省略
    --api-key
    参数,CLI将安全地提示用户输入密钥。
  • API密钥会被校验有效性。
  • 校验通过后API密钥会被存储到本地配置中。

Auth Test

认证测试

bash
indices auth-test
Returns an authenticated probe response.
bash
indices auth-test
返回已通过身份验证的探测响应。

Logout

登出

bash
indices logout
Removes 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 30
bash
indices auth-test --output json
indices login --api-base https://api.indices.io --timeout 30