getnote-auth
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesegetnote-auth Skill
getnote-auth Skill
Log in, log out, and check authentication status.
用于实现登录、登出以及身份验证状态检查功能。
Commands
命令
Log in
登录
getnote auth login [--api-key <key>] [--client-id <id>]| Mode | Command | Description |
|---|---|---|
| OAuth (recommended) | | Opens browser to authorize; saves credentials automatically |
| API Key | | Saves key directly, no browser needed |
bash
undefinedgetnote auth login [--api-key <key>] [--client-id <id>]| 模式 | 命令 | 说明 |
|---|---|---|
| OAuth(推荐) | | 打开浏览器进行授权,自动保存凭证 |
| API Key | | 直接保存密钥,无需打开浏览器 |
bash
undefinedOAuth flow (opens browser)
OAuth流程(打开浏览器)
getnote auth login
getnote auth login
API key directly
直接使用API密钥
getnote auth login --api-key gk_live_xxx
getnote auth login --api-key gk_live_xxx
API key + Client ID
API密钥 + Client ID
getnote auth login --api-key gk_live_xxx --client-id cli_xxx
Get your API key at: https://www.biji.com/settings/developer (keys start with `gk_live_`)
---getnote auth login --api-key gk_live_xxx --client-id cli_xxx
你可以在以下地址获取你的API密钥:https://www.biji.com/settings/developer(密钥以`gk_live_`开头)
---Check status
检查状态
getnote auth statusShows whether authenticated and which API key is active.
bash
getnote auth statusgetnote auth status展示当前是否已通过身份验证,以及正在生效的API密钥。
bash
getnote auth statusLog out
登出
getnote auth logoutRemoves saved credentials from .
~/.getnote/config.jsonbash
getnote auth logoutgetnote auth logout从中移除已保存的凭证。
~/.getnote/config.jsonbash
getnote auth logoutAgent Usage Notes
Agent使用注意事项
- Always run first to verify authentication before other commands.
getnote auth status - If not authenticated, prompt the user to run .
getnote auth login - on any command is a temporary per-invocation override and does not save credentials.
--api-key - Credentials saved at ; env vars
~/.getnote/config.json/GETNOTE_API_KEYtake higher priority.GETNOTE_CLIENT_ID
- 在运行其他命令前,请务必先执行验证身份验证状态。
getnote auth status - 如果未通过验证,请提示用户执行命令。
getnote auth login - 任意命令中携带的参数仅单次调用临时生效,不会保存凭证。
--api-key - 凭证保存在中;环境变量
~/.getnote/config.json/GETNOTE_API_KEY的优先级更高。GETNOTE_CLIENT_ID