ArtDAM 数字资产管理平台命令行工具
Project description
artdam-cli
ArtDAM 数字资产管理平台命令行工具,支持搜索、查看、下载数字资产。适用于 AI Agent(Claude Code、Codex)和开发者。
安装
# 推荐(无需 Python)
uv tool install artdam-cli
# 或使用 pip
pip install artdam-cli
快速开始
# 登录(首次使用)
artdam login --url http://172.26.166.187:8000
# 搜索资产
artdam search "关键词" --project 1
# 查看资产详情
artdam get 123
# 下载资产
artdam download 123 --out ./downloads
命令说明
artdam login
登录 ArtDAM 服务器,保存 token 到本地 ~/.artdam/config.json。
artdam login --url http://172.26.166.187:8000
artdam search
搜索资产,返回匹配列表。
artdam search "头盔" --project 1
artdam search "头盔" --project 1 --limit 50
artdam search "头盔" --project 1 --type image/png
artdam search "头盔" --project 1 --folder 10
artdam search "头盔" --project 1 --json # 输出原始 JSON(AI Agent 用)
| 参数 | 说明 |
|---|---|
KEYWORD |
搜索关键词 |
-p, --project |
项目 ID(必填) |
-n, --limit |
返回数量上限(默认 20) |
--type |
文件类型,如 image/png |
--folder |
限定文件夹 ID |
--json |
输出原始 JSON |
artdam get
查看单个资产详情。
artdam get 123
artdam get 123 --json # 输出原始 JSON(AI Agent 用)
artdam download
下载资产文件到本地。
artdam download 123
artdam download 123 --out ./downloads
| 参数 | 说明 |
|---|---|
ASSET_ID |
资产 ID |
-o, --out |
下载目录(默认当前目录) |
artdam tags
列出项目标签。
artdam tags --project 1
artdam tags --project 1 --search "角色"
artdam tags --project 1 --json
artdam folders
查看文件夹结构。
artdam folders --project 1
artdam folders --project 1 --json
AI Agent 使用指南
所有查询命令支持 --json 输出原始 JSON,适合 Agent 解析:
# 搜索并获取 JSON
artdam search "安妮" --project 1 --json
# 获取资产详情 JSON
artdam get 123 --json
# 获取标签列表 JSON
artdam tags --project 1 --json
典型 Agent 工作流
# 1. 登录(向用户获取用户名密码后执行)
artdam login --username <用户名> --password <密码>
# 2. 搜索资产,找到 ID
artdam search "头盔" --project 1 --json
# 3. 查看详情确认
artdam get 50707 --json
# 4. 下载文件
artdam download 50707 --out ./assets
配置文件
登录信息保存在 ~/.artdam/config.json:
{
"url": "http://172.26.166.187:8000",
"token": "eyJ..."
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
artdam_cli-0.1.5.tar.gz
(7.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file artdam_cli-0.1.5.tar.gz.
File metadata
- Download URL: artdam_cli-0.1.5.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ef8c04370ad1433bfdb7adfa6fdf49f674cacaa6c0af1874a8dcbdf86c9a244
|
|
| MD5 |
12f6f5a4bd0a29f3200b0e3f68dc4094
|
|
| BLAKE2b-256 |
fc2b5f87ef07eebc116b27706ab1210f2e95479c06cb883fddbeebd032a568da
|
File details
Details for the file artdam_cli-0.1.5-py3-none-any.whl.
File metadata
- Download URL: artdam_cli-0.1.5-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33fdb1b4ea9332ec6d95d5e1262c69beaf1587b26a63ac338ab997f8cb5c2986
|
|
| MD5 |
255245d73ef1d79496cecacd69fc9a05
|
|
| BLAKE2b-256 |
72a9a331af895c7655fc1bb763de8cac4d603a0ef3d66baeb8976bebaa6d9573
|