Files
Riskey 00c3cc3913 fix: use Workflow/Chatflow for zh/ja app-type terms and correct CLI pause scope (#860)
* fix: use Workflow/Chatflow for zh/ja app-type mentions

Converts translated app-type terms (对话流/聊天流/チャットフロー and app-type 工作流/ワークフロー compounds) to the English product names per the writing rules, syncs headings, nav labels, and stale anchors, fixes CJK spacing around the insertions, and codifies the UI-quote exception in the zh/ja formatting guides.

* translate: localize human-input form examples in zh/ja

form_content and user_actions titles are author-written display strings, so the zh/ja examples now show them in the reader's language, coherent across the get-form, submit, and SSE-event examples. Identifiers, option values, and status enums stay verbatim.

* fix: CLI pause docs cover Chatflow apps too

difyctl raises the HITL pause for every app mode (the check precedes mode dispatch in cli/src/commands/run/app/sse-collector.ts, and resume is form-token based), so the pause sections now name Workflow and Chatflow apps in en/zh/ja. Also carries the zh/ja app-type term conversion for the CLI pages.

* fix: match action_text to localized titles and add bold spacing

Copilot review: the localized SSE examples' human_input_form_filled events now carry the localized action title in action_text (the wire field holds the executed action's title, per the web client mapping), and the zh integrate-knowledge bold app-type terms get the required CJK-adjacency spaces.
2026-07-13 15:44:01 +08:00

93 lines
3.4 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: クイックスタート
description: コマンドラインから最初の Dify アプリを 5 分以内で実行する
---
> このドキュメントは AI によって自動翻訳されています。不正確な部分がある場合は、[英語版](/en/cli/quick-start) を参照してください。
始める前に、`difyctl` が [インストール](/ja/cli/install) されていることを確認してください。
## ステップ 1:サインイン
1. Dify ホストにサインインします。
Dify Cloud の場合は `https://cloud.dify.ai` を、セルフホスト環境では [コンソール API URL](/ja/self-host/deploy/configuration/environments#console_api_url) を使用します。
```bash
difyctl auth login --host https://cloud.dify.ai
```
`difyctl` がワンタイムコードと検証 URL を表示し、待機状態になります。
```text
! Copy this one-time code: WDJP-XKLM
Open: https://cloud.dify.ai/device
```
2. ブラウザでその URL を開き、コードを入力してサインインします。ターミナルに戻ると、次のように表示されます。
```text
✓ Logged in to cloud.dify.ai as <your-email> (<your-name>)
Workspace: <your-workspace>
```
## ステップ 2:アプリの確認
ワークスペース内のアプリを一覧表示します。
```bash
difyctl get app
```
次のような出力が表示されます。
```text
NAME ID MODE UPDATED
Customer FAQ 0a1b2c3d-4e5f-6789-abcd-ef0123456789 chat 2026-06-08T03:14:27.521839
Daily Report 7f3e9a2b-1c4d-4e8f-9a0b-2d5c8e1f4a7b workflow 2026-06-05T22:41:09.812016
```
実行したいアプリの ID をコピーします。以下の例では、この表の 2 つの ID を使用します。
## ステップ 3:アプリの実行
入力の渡し方はアプリの種類によって異なります。
<Tabs>
<Tab title="チャットボット / Chatflow / Agent / テキストジェネレーター">
メッセージを位置引数として渡します。
```bash
difyctl run app 0a1b2c3d-4e5f-6789-abcd-ef0123456789 "What are your business hours?"
```
応答は stdout に出力されます。チャットボット、Chatflow、Agent アプリの場合は、同じ会話を後で続けられるように、ヒントが stderr にも出力されます。
```text
Our business hours are Monday through Friday, 9am to 6pm PT.
hint: continue this conversation with --conversation 4f7d8c2a-9b1e-4c6d-8a3f-5e2b7c9d0a1f
```
</Tab>
<Tab title="ワークフロー">
`--inputs` で入力を単一の JSON オブジェクトとして渡します。
```bash
difyctl run app 7f3e9a2b-1c4d-4e8f-9a0b-2d5c8e1f4a7b --inputs '{"topic":"quarterly report","audience":"executives"}'
```
ワークフローの出力は JSON として stdout に出力されます。
```json
{"summary":"Q3 revenue grew 14% YoY...","sections":["revenue","costs","outlook"]}
```
</Tab>
</Tabs>
## 次のステップ
- **すぐにコピーして使える日常的なコマンド**:[よくあるタスク](/ja/cli/common-tasks)
- **token の保存場所とセッションの仕組み**[認証](/ja/cli/authenticate)
- **`difyctl` でできるその他すべて**[コマンド一覧](/ja/cli/reference/command-index)