Files
tldr/pages.zh/common/ia.md

24 lines
705 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ia
> 命令行工具,用于与 `archive.org` 进行交互。
> 更多信息:<https://archive.org/services/docs/api/internetarchive/cli.html>。
- 使用 API 密钥配置 `ia`(某些功能在此步骤未完成时将无法使用):
`ia configure`
- 上传一个或多个项目到 `archive.org`
`ia upload {{identifier}} {{path/to/file}} --metadata="{{mediatype:data}}" --metadata="{{title:example}}"`
-`archive.org` 下载一个或多个项目:
`ia download {{item}}`
-`archive.org` 删除一个或多个项目:
`ia delete {{identifier}} {{file}}`
-`archive.org` 上搜索,返回 JSON 格式的结果:
`ia search '{{subject:"subject" collection:collection}}'`