> ## Documentation Index
> Fetch the complete documentation index at: https://enterprise-docs.dify.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# クイックスタート

> 企業の SSO ID を使って、コマンドラインから最初の Dify アプリを実行する

始める前に、`difyctl` が [インストール](/ja/3.11.x/develop/cli/install) されていることを確認してください。

## ステップ 1：サインイン

管理者から提供されたホスト URL を指定して、ログインコマンドを実行します。

```bash theme={null}
difyctl auth login --host https://dify.example.com
```

`difyctl` はワンタイムコードと検証 URL を表示し、既定のブラウザでその URL を開いて待機します。

```text theme={null}
! Copy this one-time code: WDJP-XKLM
  Open: https://dify.example.com/device
```

ブラウザが会社の通常のサインインフローを案内し、続いてワンタイムコードの入力を求めます。完了すると、ターミナルに確認が表示されます。

```text theme={null}
✓ Logged in to dify.example.com as <your-email> (external SSO, issuer: <your-identity-provider>)
```

## ステップ 2：実行できるアプリの確認

管理者が使用を許可したアプリを一覧表示します。

```bash theme={null}
difyctl get app
```

次のような出力が表示されます。

```text theme={null}
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 をコピーします。

## ステップ 3：アプリの実行

入力の渡し方はアプリの種類によって異なります。

<Tabs>
  <Tab title="チャットボット / チャットフロー / Agent / テキストジェネレーター">
    メッセージを位置引数として渡します。

    ```bash theme={null}
    difyctl run app 0a1b2c3d-4e5f-6789-abcd-ef0123456789 "What are your business hours?"
    ```

    応答は stdout に出力されます。チャットボット、チャットフロー、Agent アプリの場合は、同じ会話を後で続けられるように、ヒントが stderr にも出力されます。

    ```text theme={null}
    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 theme={null}
    difyctl run app 7f3e9a2b-1c4d-4e8f-9a0b-2d5c8e1f4a7b --inputs '{"topic":"quarterly report","audience":"executives"}'
    ```

    ワークフローの出力は JSON として stdout に出力されます。

    ```json theme={null}
    {"summary":"Q3 revenue grew 14% YoY...","sections":["revenue","costs","outlook"]}
    ```
  </Tab>
</Tabs>

## 次のステップ

* **すぐにコピーして使える日常的なコマンド**：[よくあるタスク](/ja/3.11.x/develop/cli/sso-users/common-tasks)
* **セッションでできること・できないこと**：[権限範囲と制限](/ja/3.11.x/develop/cli/sso-users/scope-and-limitations)
