> For the complete documentation index, see [llms.txt](https://docs.unitlab.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unitlab.ai/api-sdk-cli/ja/clis/cli-ontologies-and-cloud-storage.md).

# CLI: オントロジーとクラウドストレージ

Unitlab CLI でオントロジーを一覧表示・作成・更新し、structure JSON の扱い方、クラウドストレージ接続の参照方法をターミナルからの操作例とともに説明します。

## オントロジー <a href="#ontologies" id="ontologies"></a>

```bash
unitlab ontology list --title-like "Robot" --edited-after 2026-11-01
unitlab ontology detail "$ONTOLOGY_ID" --json > robot-cell-qa.json

unitlab ontology create "Robot cell QA" --description "Grippers and parts" --structure structure.json
unitlab ontology update "$ONTOLOGY_ID" --structure structure.json
```

`--structure` には、`OntologyStructure.to_dict()` が出力する形式の JSON ファイルを指定します。Python で作成するか、`ontology detail --json` の `structure` フィールドをもとに作成してください。詳しくは [Python でオントロジーを構築する](https://docs.unitlab.ai/api-sdk-cli/ja/sdks/build-ontologies-in-python.md) を参照してください。

| `list` のフィルター                                                              | 一致条件                     |
| -------------------------------------------------------------------------- | ------------------------ |
| `--title-eq`, `--title-like`                                               | タイトルの完全一致、または部分一致        |
| `--description-eq`, `--description-like`                                   | 説明の完全一致、または部分一致          |
| `--created-before`, `--created-after`, `--edited-before`, `--edited-after` | ISO 8601 形式の日付またはタイムスタンプ |

## クラウドストレージ <a href="#cloud-storage" id="cloud-storage"></a>

```bash
unitlab cloud list
unitlab cloud browse "$CLOUD_STORAGE_ID" --prefix fleet/cell-04/ --json
```

フォルダー内を一覧表示するには、プレフィックスの末尾を `/` にします。`--project` はエントリをプロジェクトと照合し、`--page-size`（1〜1,000、デフォルト 500）は 1 リクエストあたりのエントリ数を設定します。接続はアプリで作成します。

ファイルのインポートには `unitlab project import-cloud` を使用します。[CLI: プロジェクトと Data Unit](https://docs.unitlab.ai/api-sdk-cli/ja/clis/cli-projects-and-data-units.md) を参照してください。

## 関連情報 <a href="#related" id="related"></a>

[オントロジーリソース](https://docs.unitlab.ai/api-sdk-cli/ja/sdks/ontology-resources.md) · [クラウドストレージ](https://docs.unitlab.ai/api-sdk-cli/ja/sdks/cloud-storage.md)
