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

# タスクとタスクグループを管理

> Octoparse CLIでタスクの一覧、確認、コピー、名前変更、移動、削除、検証とタスクグループ管理を行います。

taskコマンドでリモートタスクを検索・管理し、task-groupコマンドで関連ワークフローを整理できます。

## タスクを検索する

```bash theme={null}
octoparse task list
octoparse task list --page 2 --page-size 20
octoparse task list --keyword news --limit 10
octoparse task list --task-group <groupId>
octoparse task list --template-id <templateId>
octoparse task show <taskId> --json
```

## タスクをコピー・整理する

```bash theme={null}
octoparse task copy <taskId> --task-group <groupId> --json
octoparse task rename <taskId> --name "新しい名前" --yes
octoparse task move <taskId> --task-group <groupId> --yes
octoparse task delete <taskId> --yes
```

<Warning>
  `rename`、`move`、`delete` はリモート状態を変更し、`--yes` が必要です。自動化ではタスクIDとグループIDを事前に確認してください。
</Warning>

## タスク定義を確認・検証する

```bash theme={null}
octoparse task inspect <taskId>
octoparse task validate <taskId>
octoparse task inspect <taskId> --task-file task.json
octoparse task validate <taskId> --task-file task.otd --json
```

`--task-file` 使用時、ファイルにIDがない場合は `<taskId>` がフォールバックIDになります。

## タスクグループを管理する

```bash theme={null}
octoparse task-group list --json
octoparse task-group create "Monitoring" --json
octoparse task-group update <groupId> --name "Price monitoring" --yes
octoparse task-group set-default <groupId> --yes
octoparse task-group delete <groupId> --yes
```

グループの更新、削除、デフォルト変更には `--yes` が必要です。

## 次のステップ

<CardGroup cols={2}>
  <Card title="ローカルで実行" href="local-runs">
    フォアグラウンドまたはデタッチでローカル抽出を開始します。
  </Card>

  <Card title="クラウドで実行" href="cloud-runs-and-schedules">
    クラウド抽出を開始し、定期スケジュールを設定します。
  </Card>
</CardGroup>
