2021-11-16 10:42:12 +00:00
|
|
|
# ia
|
|
|
|
|
2025-06-28 16:12:44 +03:00
|
|
|
> Tool to interact with `archive.org`.
|
2021-11-16 10:42:12 +00:00
|
|
|
> More information: <https://archive.org/services/docs/api/internetarchive/cli.html>.
|
|
|
|
|
|
|
|
- Configure `ia` with API keys (some functions won't work without this step):
|
|
|
|
|
|
|
|
`ia configure`
|
|
|
|
|
|
|
|
- Upload one or more items to `archive.org`:
|
|
|
|
|
|
|
|
`ia upload {{identifier}} {{path/to/file}} --metadata="{{mediatype:data}}" --metadata="{{title:example}}"`
|
|
|
|
|
|
|
|
- Download one or more items from `archive.org`:
|
|
|
|
|
|
|
|
`ia download {{item}}`
|
|
|
|
|
|
|
|
- Delete one or more items from `archive.org`:
|
|
|
|
|
|
|
|
`ia delete {{identifier}} {{file}}`
|
|
|
|
|
|
|
|
- Search on `archive.org`, returning results as JSON:
|
|
|
|
|
|
|
|
`ia search '{{subject:"subject" collection:collection}}'`
|