archivebox.cli.archivebox_tag
archivebox tag
Manage Tag records.
Actions: create - Create Tags list - List Tags as JSONL (with optional filters) update - Update Tags from stdin JSONL delete - Delete Tags from stdin JSONL
Examples: # Create archivebox tag create news tech science archivebox tag create “important stuff”
# List
archivebox tag list
archivebox tag list --name__icontains=news
# Update (rename tags)
archivebox tag list --name=oldname | archivebox tag update --name=newname
# Delete
archivebox tag list --name=unused | archivebox tag delete --yes
Module Contents
Functions
Create Tags from names. |
|
List Tags as JSONL with optional filters. |
|
Update Tags from stdin JSONL. |
|
Delete Tags from stdin JSONL. |
|
Manage Tag records. |
|
Create Tags from names. |
|
List Tags as JSONL. |
|
Update Tags from stdin JSONL. |
|
Delete Tags from stdin JSONL. |
Data
API
- archivebox.cli.archivebox_tag.create_tags(names: collections.abc.Iterable[str]) int[source]
Create Tags from names.
Exit codes: 0: Success 1: Failure
- archivebox.cli.archivebox_tag.list_tags(name: str | None = None, name__icontains: str | None = None, limit: int | None = None) int[source]
List Tags as JSONL with optional filters.
Exit codes: 0: Success (even if no results)
- archivebox.cli.archivebox_tag.update_tags(name: str | None = None) int[source]
Update Tags from stdin JSONL.
Reads Tag records from stdin and applies updates. Uses PATCH semantics - only specified fields are updated.
Exit codes: 0: Success 1: No input or error
- archivebox.cli.archivebox_tag.delete_tags(yes: bool = False, dry_run: bool = False) int[source]
Delete Tags from stdin JSONL.
Requires –yes flag to confirm deletion.
Exit codes: 0: Success 1: No input or missing –yes flag