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.3.tar.gz (7.2 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.3-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: artdam_cli-0.1.3.tar.gz
  • Upload date:
  • Size: 7.2 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.3.tar.gz
Algorithm Hash digest
SHA256 2d44c44b1e6b9218d8cb347b2d7fe954105724f10b2777ffe0255847455127c1
MD5 31e711cebd62f5a4304419c11e6887bc
BLAKE2b-256 32ee970f51ec9409eb00b4f76346b811a731e8cd1b4be5b2fed2a125288f3e0c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: artdam_cli-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4350317912ce7cfbe41eebf116d7fc17075215331bc6d89d54ba88f858aec52b
MD5 266556234c30c312e5dd7c09a423c4bf
BLAKE2b-256 1d13a87ee7ac94f41fb96f90f34e03da62a1035150857caa4ace017c99624e0e

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