mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-29 20:05:25 +08:00
docs: fix PAT login instructions and add Japanese translation
- zh/en: update path to '账户设置 → 账户 → 个人访问令牌' - ja: add PAT login as recommended method with device code fallback
This commit is contained in:
@@ -16,7 +16,7 @@ This will redirect to GitHub authorization page, please complete authorization a
|
||||
|
||||
### Option 1: Personal Access Token (Recommended)
|
||||
|
||||
1. Log in to [LangBot Space](https://space.langbot.app), go to **Settings → Personal Access Tokens**, and create a new token.
|
||||
1. Log in to [LangBot Space](https://space.langbot.app), click your avatar to open **Account Settings**, find **Personal Access Tokens** under the **Account** tab, and create a new token.
|
||||
2. Copy the generated token (shown only once), then run:
|
||||
|
||||
```bash
|
||||
|
||||
@@ -14,7 +14,23 @@ GitHubの認証ページにリダイレクトされますので、プロンプ
|
||||
|
||||
## CLIを使用してLangBot Spaceにログイン
|
||||
|
||||
任意のディレクトリでコマンド`lbp login`を実行します:
|
||||
### 方法1:個人アクセストークンを使用(推奨)
|
||||
|
||||
1. [LangBot Space](https://space.langbot.app)にログインし、アバターをクリックして**アカウント設定**を開き、**アカウント**タブの**個人アクセストークン**で新しいトークンを作成します。
|
||||
2. 生成されたトークンをコピーし(一度しか表示されません)、ターミナルで以下を実行します:
|
||||
|
||||
```bash
|
||||
➜ HelloPlugin > lbp login --token lbpat_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
|
||||
==================================================
|
||||
✅ 個人アクセストークンでログインしました!
|
||||
トークンの保存先:~/.langbot/cli/config.json
|
||||
==================================================
|
||||
```
|
||||
|
||||
### 方法2:デバイスコード認証を使用
|
||||
|
||||
任意のディレクトリでコマンド`lbp login`を実行します:
|
||||
|
||||
```bash
|
||||
➜ HelloPlugin > lbp login
|
||||
@@ -44,11 +60,11 @@ Expires in: 21600 seconds
|
||||
==================================================
|
||||
```
|
||||
|
||||
ログインが成功したら、CLIを使用してプラグインをアップロードできます。
|
||||
どちらの方法でもログインが成功したら、CLIを使用してプラグインをアップロードできます。
|
||||
|
||||
## プラグインのアップロード
|
||||
|
||||
プラグインディレクトリで`lbp publish`を実行してください:
|
||||
プラグインディレクトリで`lbp publish`を実行してください:
|
||||
|
||||
```bash
|
||||
➜ HelloPlugin > lbp publish
|
||||
@@ -64,4 +80,4 @@ Plugin built successfully: dist/tmp/RockChinQ-HelloPlugin-0.1.0.lbpkg
|
||||
|
||||
<img width="600" src="/images/zh/plugin/dev/plugin_submission.png" />
|
||||
|
||||
ご質問がある場合は、`[email protected]`にメールを送信するか、[コミュニティ](/en/insight/community)を通じてお問い合わせください。
|
||||
ご質問がある場合は、`[email protected]`にメールを送信するか、[コミュニティ](/ja/insight/community)を通じてお問い合わせください。
|
||||
|
||||
@@ -16,7 +16,7 @@ LangBot Space 是 LangBot 提供中心化服务平台。请访问[LangBot Space]
|
||||
|
||||
### 方式一:使用个人访问令牌(推荐)
|
||||
|
||||
1. 登录 [LangBot Space](https://space.langbot.app),前往 **设置 → 个人访问令牌**,创建一个新的令牌。
|
||||
1. 登录 [LangBot Space](https://space.langbot.app),点击头像进入 **账户设置**,在 **账户** 标签页中找到 **个人访问令牌**,创建一个新的令牌。
|
||||
2. 复制生成的令牌(仅显示一次),在终端执行:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user