Skip to main content

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 --url https://artdam.dsworks.cn

# 2. 搜索资产,找到 ID
artdam search "头盔" --project 1 --json

# 3. 查看详情确认
artdam get 50707 --json

# 4. 下载文件
artdam download 50707 --out ./assets

配置文件

登录信息保存在 ~/.artdam/config.json

{
  "url": "https://artdam.dsworks.cn",
  "token": "eyJ..."
}

Project details


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.4.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

artdam_cli-0.1.4-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file artdam_cli-0.1.4.tar.gz.

File metadata

  • Download URL: artdam_cli-0.1.4.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

Hashes for artdam_cli-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f3764516684c43176df33799c88f1b40bedc8319dc1f7a98be1bf5d0c3861d8f
MD5 cd5ab82c3ca244646668e14424e6f980
BLAKE2b-256 17db0df29835cb7add13d9f0a98b34a9f88acffc0634544b53c8dee90545702e

See more details on using hashes here.

File details

Details for the file artdam_cli-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: artdam_cli-0.1.4-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

Hashes for artdam_cli-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ffa2669856b6e1031cf1956fef28cf033680dcd0530b7002ded8f33c4db7dfcf
MD5 26cd89d92b89dfef771c1026c2c6fe84
BLAKE2b-256 e5b82dcc8321b8bd947d002230d237ea2939dbce138a2ba068f3112a84bbf4ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page