Console commands¶
Anton's commands are Laravel commands and are
called via artisan.
This page describes the commands most important in operation, with context. A complete, automatically generated list of all commands is at the end under Complete reference.
Basics¶
Most commands expect an environment to be specified, that is, a customer slug:
php artisan anton:command --env=besenval
Anton commands only output something on stdout when the verbosity is
increased: -v shows info messages, -vv additionally debug messages.
Without a flag they run silently. Errors and warnings always go to stderr
(ottosmops/consoleoutput).
For a cron job this means: no output and exit code 0 is the normal case, not a
run that did not happen. If you need evidence in the log, call the command
with -v.
Back up before writing commands
Commands that write to the database — repairs, merges, reset — should never
run unsecured on a production archive. First
anton:backup, then act.
Installation and updating¶
| Command | Purpose |
|---|---|
anton:install --env=<slug> |
Set up a new installation from a .env file |
anton:customdir |
Create the customer directory including subfolders (see installation) |
anton:update --env=<slug> |
Update to the latest stable version — runs migrations and seeders without overwriting labels |
anton:setting / anton:home |
Read or set a setting or a home page entry |
matomo --env=<slug> |
Register the tenant with Matomo: site, a user with view access to it, and a token, and write the two settings analytics_id and analytics_auth_token (see installation) |
Backup and restoration¶
anton:backup creates a database dump. Without --target-dir it ends up in
the customer directory (db_backup). For rotating backups, --hourly,
--weekly, --monthly, --yearly prepare the file names (e.g.
00_backup_besenval-daily-19.sql.gz); --file specifies a name of your own.
php artisan anton:backup --env=besenval
The database only
anton:backup does not back up media files. A complete backup concept is
covered by backup and restoration; what each backup contains is
shown by the export matrix.
anton:restore restores the most recent backup by default.
anton:reset resets an installation (database and assets) to a defined
state — the basis of the test archive that is reset daily.
Media and integrity¶
media:check checks the consistency between the Anton
database, the local file system, Inge and DIMAG. Six check levels, individually
or combined:
php artisan media:check --levels=1,5,6 --env=besenval -vv
--levels= Check levels (1-6), comma-separated
--sip= Only media of a particular SIP (AntonObject ID)
--fix-cloud-status Repairs cloud_status in the DB (level 5)
--delete-local-masters Deletes local masters after cloud verification (level 5)
--delete-from-system Deletes file system entries without a DB counterpart (level 3)
--delete-from-inge Deletes orphans from Inge/DIMAG (level 6)
Level 4 verifies the checksum of every file against the database (SHA-512
where available, MD5 otherwise) — the actual fixity check, with the same logic
as media:snapshot --verify. On DIMAG installations it is skipped (the masters are held
there). For details see Inge and DIMAG and
digital archive.
media:snapshot combines two jobs in one pass:
- Lists of the reference checksums of all media from the database, without
reading a file:
<date>.sha512and<date>.md5, checkable withsha512sum -cormd5sum -c. With--gitthey go into a local Git repository; its history shows when a reference changed. A switch from MD5 to SHA-512 appears asUPGRADED, notCHANGED. - Checking the files against their reference, like
media:check --levels=4: all with--verify, or with--oldest=Nthe N checked longest ago — so a nightly run walks through the whole holding over time. Every check is an eventmedia:repairbuilds on; findings go tologs/findings_<date>.txt, and the command then exits with 1.
php artisan media:snapshot --env=besenval --oldest=2000 --git
Every run leaves a line in logs/runs.log, even when nothing changed. A medium
without a reference checksum is reported, not given one from today's file.
Anton does not run the command by itself; it is set up per installation as a
cron job.
media:checksum computes SHA-512 for media that have none
yet (uploaded before version 0.98). Every file is read once and first checked
against its stored MD5: if it deviates, that is an integrity finding and no
SHA-512 is stored from the file. Local masters only; an interrupted run carries
on at the next call. --dry-run only compares, --limit and --ids narrow it
down.
media:repair brings media whose integrity check failed back
from the local backup: the first version whose checksum matches the reference
replaces the file; the damaged version goes to quarantine.
php artisan media:repair --env=besenval --dry-run
--from= Backup root (default: MEDIA_REPAIR_BACKUP_ROOT)
--dry-run Only report
--max= Repair nothing if there are more findings (default 10)
--ids= Only these media
Exit 0: nothing to do or all repaired; 1: not repairable or threshold exceeded (then nothing was repaired); 2: backup missing, empty or writable. Setup see Installation, procedure see digital archive.
media:identify determines the file format
(Siegfried/Fido → PRONOM ID) and derives the NARA risk assessment from it. With
new uploads this runs automatically; the command serves to supply the data
retrospectively for existing holdings. Without --force, only media without
identification data; with --force it identifies media again that are
identified already and records the previous PRONOM ID in the event.
--oldest=N takes the N media identified longest ago, those without an
identification event first: a nightly run with a fixed portion thus works
through the whole holding, picks up where it stopped and later identifies again
with newer signatures. For the evaluation see
preservation planning.
Where the master is only in DIMAG or S3, the command skips the medium and says
at the start how many there are; with --from-cloud it fetches such masters
temporarily, checks the checksum and deletes the copy afterwards. This puts load
on INGE — run it at a quiet time.
media:validate-formats checks the media of the
holdings with the tool for their format: PDF with qpdf and pdftocairo (plus
veraPDF for a claimed PDF/A, if installed), TIFF with tiffinfo -D, other images
with ImageMagick, audio and video with a full ffmpeg decode; text, office
documents and packages by their structure (encoding, CSV, XML and JSON; OOXML
and ODF as ZIP, DOC, XLS and PPT with LibreOffice; ZIP, TAR and GZ with their
own checksums). A shorter form of
the same check already runs at ingest. Every result is recorded as an event on
the medium (valid, invalid, not checked), as are contradictions between
extension, format and PRONOM ID and, for PDF, preservation risks (fonts not
embedded, encryption, JavaScript, references outside the file). --oldest=N takes the N media checked
longest ago — so the holdings are worked through in portions at night, as with
media:snapshot. --from-cloud as above. Exit 1 when
invalid files were found.
php artisan media:validate-formats --env=besenval --oldest=500
media:watch-formats watches the formats for
obsolescence (anton#675). When the NARA table differs from the one of the last
run (compared by its SHA-256), it assesses every format of the holdings again
and records a risk-assessment event with the old and the new value at each
medium whose rating changes; media without a rating are assessed in any case.
It compares the format names with PRONOM in the release sf -version names,
fetching that signature file once from The National Archives
(PRONOM_DOWNLOAD=false on servers without internet; then place the file in
storage/app/pronom/). --dry-run only says what would change, --force
assesses again also with an unchanged table. With the same table the run is
short; it belongs in a per-tenant cron in anton-ansible.
php artisan media:watch-formats --env=besenval
media:virus-scan scans the masters and kept versions of
the holdings with ClamAV, against the latest signatures. Every file is scanned
at ingest anyway; the command reaches what came before clamd was set up, and
old files for which there are new signatures since. It moves nothing: a finding
is recorded as an event on the medium, written to the security log and
reported; the file stays where it is. --oldest=N takes the N scanned longest
ago, never scanned first; --from-cloud as above. If clamd does not answer in
time for a file, it is recorded as not checked and the run goes on;
--timeout= sets the wait for the run, otherwise CLAMD_TIMEOUT applies; it
grows with the size, by VIRUS_SCAN_SECONDS_PER_GB (240 s) per GB.
Masters over 512 MB (VIRUS_SCAN_WHOLE_MAX_SIZE) are scanned in overlapping
parts at once (VIRUS_SCAN_PART_SIZE, 256 MB; VIRUS_SCAN_PART_OVERLAP,
1 MB), smaller ones too where clamd stops at MaxScanSize or MaxFileSize,
and counted apart as «clean, scanned in parts».
Exit 1 on a finding, exit 2 when the virus check is off or clamd no longer
answers.
php artisan media:virus-scan --env=besenval --oldest=500
media:add attaches a medium to a record from the command line — useful
when a file is too large for the browser upload:
php artisan media:add file.jpg --env=besenval --id=123
storage:audit checks local master files and SIP directories;
--clean-sips and --clean-masters tidy up.
format-policy:list shows the format rules Anton
applies when a file comes in: the default, this archive's switch, whether the
rule is in force and whether its tools are present on the server.
format-policy:enable and format-policy:disable switch a rule on or
off for one archive, regardless of its default:
php artisan format-policy:enable tiff_zip --env=gosteli
The first rule, tiff_zip, repacks TIFF files losslessly as Deflate with
predictor 2; it is off everywhere and does not apply to SIPs. The second,
pdfx_pdfa2b, turns PDF/X into PDF/A-2b and applies only to media:migrate. Admins can also
switch the rules in the interface, under
Format Policy. Under the preservation mandate «Technical care» every switch, here
or in the interface, writes a new version of the
strategy document, without a new confirmation.
media:migrate applies one of these rules to media already
in Anton — TIFF masters ingested as LZW before the rule existed, say. The rule
applies whether or not it is switched on for new files; repacking and
verification are exactly as at ingest.
php artisan media:migrate --env=gosteli --rule=tiff_zip --collection=image
php artisan media:migrate --env=gosteli --rule=tiff_zip --collection=image --write --limit=50
--rule= The rule (required)
--ids= Only these media
--collection= Only media of this collection
--filename-pattern= Only file names like this pattern, e.g. %.tif
--limit= At most this many media
--discard-original Discard the original instead of keeping it (only rules
that may replace it, e.g. tiff_zip)
--probe Try the rule on copies of the masters, report per
medium; changes nothing
--report= With --probe: write the report as CSV as well
--request-approval Ask the archive by mail to approve this measure;
changes nothing
--approval= With --write: the id of the confirmed approval
--agreement= With --write: where an agreement made outside Anton
is recorded, e.g. "mail of 02.11.2026"
--write Repack (without: report only)
Only on a ground. Since v0.118.0 --write runs only when something covers the measure (anton#807):
- the preservation mandate «Technical care». It covers a measure that keeps the original (or discards it, if the archive included that), leaves out excluded formats and fonds and holds only while the booked storage (
maximum_storage) suffices. The additional storage is estimated as the size of the masters concerned when the original is kept; - an order from the archive for exactly these media, asked for by mail with
--request-approvaland confirmed by a contact person (--approval=<id>). The request goes to the contacts for digital preservation, to the overall responsibility when the measure goes beyond the booked storage; - an agreement made outside Anton, which the run names with
--agreement.
Without a ground the command stops and changes nothing. Each event names the ground under migration.authorization; the monthly report counts the measures per rule and ground.
Without --write the command only says how many media the rule would touch.
With --write it puts the result next to the master, verifies it, and swaps
file and checksums in one step; if anything fails, the old master stays. Every
repacked medium gets a format-normalization event (category migration) with
the tool versions and the checksums before and after. When the rule changes the
format, as pdfx_pdfa2b does (PDF/X → PDF/A-2b, PDF),
Anton identifies the format again afterwards and assesses it with NARA anew.
--probe applies the rule to copies of the masters and writes a line per
medium: would be taken, fails with a finding, size before and after, PRONOM ID
after; at the end it says how much room the kept originals need. The probe
writes no events and no versions and checks afterwards that every master is
unchanged. --report=<file> stores the same lines as CSV.
The original stays. It moves to the medium's original/ folder and is kept and checked as a kept original; what counts is the file as it was taken over. Only a rule that may replace the original discards it, and only with --discard-original: today tiff_zip, which verifies every pixel. A discarded original remains only in the local backup until its yearly snapshots rotate; its checksums are in the event. For any other rule the command refuses --discard-original. --keep-original, the way to keep it up to version 0.113, is still accepted and no longer changes anything.
Consequences worth knowing:
- While a
--writerun lasts,media:check --check-integrityandmedia:repairskip their runs for this archive; the other way round,media:migrate --writedoes not start while either is running. - The next
media:snapshotreports the repacked media as CHANGED; the event on the medium records why. - Until the next backup run, no backup snapshot matches the new checksum;
media:repairwould have no replacement for these media until then.
media:register-originals registers originals
that already lay in original/ folders before version 0.105, as
kept originals. Without --write it only
gives the count; the checksum is the one taken on the day of registration.
media:versions-to-cloud hands kept originals to
DIMAG where the installation provides for it (see
Inge and Dimag).
Recommended sequence: dry run, then --write --limit=50, spot checks in the viewer
and with media:check --check-integrity --ids=…, then the rest. Archives on
DIMAG or S3 are excluded.
Search (Typesense)¶
The instant search maintains its own index. In case of problems or after larger data changes, it is rebuilt:
| Command | Purpose |
|---|---|
typesense:status |
Show the state of the collections |
typesense:reindex |
Rebuild all collections of an archive (setup + objects + full text + gallery) |
typesense:reindex-all-tenants |
The same across all installations |
typesense:flush |
Remove all documents from the collection |
Import and export¶
| Command | Purpose |
|---|---|
anton:import |
Excel import; the defaults are deliberately defensive (see data import) |
anton:import-native / anton:export-native |
Lossless round trip of a subtree (backup, re-importable) |
anton:export |
EAD/EAD3 export |
anton:export-rdf |
RDF export in three profiles (see below) |
resources:sync |
Authority data synchronisation with GND, Wikidata, Metagrid |
anton:sips-prune |
Clear away unpacked SIPs no import needs any more; mark hung checks as broken off; delete uploads abandoned in limbo/ after --limbo-days (2) (as a cron; --dry-run first) |
anton:export-rdf exports a fonds — or the whole tenant if --root= is
missing — as RDF:
php artisan anton:export-rdf --env=kr --root=42 --profile=a-plus --format=turtle > fonds.ttl
--profile=a-plus(default) — CIDOC CRM + RiC-O;turtle,jsonld,rdfxml,ntriples--profile=ric— pure RiC-O 1.1, defaultjsonld--profile=memobase— Memobase JSON-LD
Details under RDF export. The output goes to stdout.
Maintenance and repair¶
These commands restore the consistency of derived fields. Why they exist — materialised fields in a closure table — is explained by concurrency.
| Command | Purpose |
|---|---|
anton:repair-closure-table |
Check and repair the consistency of the hierarchy table |
anton:reorder-positions |
Reorder the position field of siblings; anton:restore-positions undoes it from a snapshot |
anton:update-fulltext |
Rebuild the full-text index (necessary after language changes, for example) |
anton:update-dates / anton:update-all-dates |
Recalculate the aggregated dating |
anton:update-release-year |
Materialise the effective «Open from» year |
anton:access-labels |
List the archive's own labels and help texts of «Record withheld», «Closure period» and «Open from» next to the standard; --adopt takes over the standard |
anton:merge <type> <target_id> |
Merge actors, places or keywords |
anton:repair-content-locale --from=<language> |
Move titles and text fields an import filed under the wrong language into the archive's content language |
anton:audit-orphans |
Report rows whose record no longer exists, and remove them on request |
media:audit-orphan-folders |
Report media folders no media row owns, and remove them on request |
anton:repair-content-locale concerns archives that imported before 15 August
2026: until then an import wrote the application's default language rather than
the archive's. A title filed under a language the archive does not keep shows on
the detail page but leaves an empty cell in every list.
Without --write the command only reports what it would move. --from is
required, --to defaults to the archive's first configured language. Records
that already carry the target language are listed rather than overwritten. A
--from that is one of the archive's own configured languages is refused unless
--force — content in a configured language is not misfiled.
anton:audit-orphans looks for rows pointing at a record that is no longer
there. Anton keeps text fields, external identifiers, comments, term values,
upload tokens and relations in polymorphic tables; when the owner goes, nothing
takes them with it. None of it is visible — nothing renders a row whose owner is
missing — which is exactly why it has to be looked for.
Since anton#821 this includes anton image: an image link on a keyword, person or
place whose record was deleted. No new ones arise, a delete takes them along.
Without --write it only reports. --only= narrows it to one place, and every
finding comes with the first few ids so you can look before deciding. Media is
reported and never removed: a media row is the registration of a file on disk,
and dropping the row loses the trail to the file rather than the file.
media:audit-orphan-folders looks for the opposite: media folders that no media
row owns any more. Up to Anton 0.104.2, deleting a record left them behind with
the view images, some with the original as well. The report groups them by
content (empty, view images only, original).
Without --write it only reports; --ids= narrows it to single media. A folder
changed within the last day is not removed — it may belong to a medium being
written. On archives with DIMAG the command asks Inge first: if DIMAG still
holds the medium, the folder stays and the report names the AID, which then has
to be deleted in DIMAG first. If Inge cannot be reached, the folder stays too.
Diagnosis¶
anton:doctor checks an installation for consistency — the
same checks as the interface under Anton Doctor, only scriptable:
php artisan anton:doctor --env=besenval --all -vv
--all check everything
--binaries external programs
--closure closure table (repair with --repair)
--database position collisions
--disk storage space
--environment environment variables, settings
--jobs is the supervisor running?
--media problematic media
Further diagnostic commands: anton:check-disk-space (identical to
anton:doctor --disk; warns from 80 % of the quota stored in
maximum_storage), anton:db-info (active driver and version),
sip:reconcile (SIP status across Anton, Inge and DIMAG),
inge:check-infrastructure (connection to Inge/DIMAG). The anton:audit-*
commands report duplicates in reference codes and positions without changing
anything.
Notifications¶
notification:send creates a system notification in one
or all installations:
php artisan notification:send --title="Wartung" --body="Details." --env=besenval
php artisan notification:send --title="Update" --all --audience=editors
--title (mandatory) and --body accept a string or JSON for several
languages; --audience restricts to editors or admins.
Complete reference¶
The following table lists all admin-relevant commands with the description
from their own --help output. It is generated from php artisan list and kept
up to date with every change to the commands.
Automatically generated
This section is generated; the descriptions are in the language of the code
(English). Not included are internal developer commands (boost:,
debugbar:, ide-helper: …) and customer-specific namespaces (gf:,
gosteli:, ballyana:).
anton: (67)¶
| Command | Description |
|---|---|
anton:access-labels |
List the archive's own labels and help texts of record lock, closure period and release year n… |
anton:add-user |
Add or update a user; a new one without --password gets an invitation to set its own password.… |
anton:audit-duplicate-users |
Konten melden, die sich einen Benutzernamen oder eine Adresse teilen (#572). |
anton:audit-identifiers |
Report duplicate values in objects.identifier. Empty/NULL identifiers (e.g. on Lod=class) are … |
anton:audit-note-name-collisions |
Detect (name, type) collisions that would block the unify-note migration on this tenant. |
anton:audit-orphans |
Report (and optionally remove) rows pointing at a record that no longer exists (#512). |
anton:audit-positions |
Report position collisions: records sharing the same (parent_id, position) value. |
anton:backup |
Create a Database dump and save it to local storage. |
anton:check-customer-fields |
Check the current database for legacy antonfields with id > 4999 |
anton:check-terms |
Check Term. |
anton:condense-history |
Reduce the entries in object.history field |
anton:count |
Count rows in a db-table. |
anton:create-accession-archive |
Create a AntonObject for accessions (eg SIP) |
anton:customdir |
Manage customers directory. |
anton:db-info |
Print the active database driver, version, and resolved geo-axis order. |
anton:doctor |
Check an installation. You have to use the --env=slug option. What is checked: 1) check slug 2… |
anton:exception-mail-test |
Send a test exception mail as a real exception is mailed, past the switch, dedup and throttle … |
anton:export |
Export metadata to a XML-File (EAD or EAD3) |
anton:export-antonfields |
Export per-formset field labels, form order and controlled-vocabulary labels as antonfields.js… |
anton:export-dip |
Export records with their subtree as a DIP: BagIt (default) or E-ARK DIP 2.2.0 (--format=eark,… |
anton:export-native |
Export an Anton subtree as a lossless native round-trip package (anton-import-format + media). |
anton:export-rdf |
Export Anton tenant data as RDF (CIDOC CRM + RiC-O A+ profile, Memobase, or a self-contained A… |
anton:formset-template |
Set up a ready form set (publication) in this archive; an existing one is left as it is. |
anton:home |
Get or set a home entry. If you set a value, you should also choose a locale |
anton:i18n-check |
Find user-visible strings that are missing a translation (JSON + PHP keys) |
anton:import |
Import an Excel File. The default options are as defensive as possible. |
anton:import-actors |
Import an Excel-File to actors-table |
anton:import-descriptors |
Import an Excel-File of descriptors |
anton:import-directory |
Scan a directory and list all contents in a flat array with parent information |
anton:import-native |
Restore an Anton subtree from a native round-trip package (anton-import-format + media). |
anton:import-pages |
Import an excel file with metadata for pages |
anton:import-skos |
Import a thesaurus (SKOS or table) into a concept scheme of keywords. |
anton:install |
Install Anton for a .env file with --env |
anton:local-login |
Local development only: print a one-time link that signs an account in without a password. |
anton:mail |
Send a circular (or a downtime notice) to this tenant's editors and admins |
anton:measure-disk-usage |
Measure and cache storage disk usage in the background (feeds anton:doctor CheckDiskSpace, #293) |
anton:merge |
Merge multiple records into one (actors, places, or keywords) |
anton:migrate-import-audit |
Move import sidecars from the archive into the import audit log. |
anton:move-objects |
Move objects into a parent |
anton:moveMediaToCloud |
Move media files to an cloud-storage (s3 or inge), but keep the conversions. |
anton:protection-baseline |
Snapshot or diff the current per-object protection-period release decision (read-only, #256). |
anton:prune-cache |
Delete expired rows from the database cache table (#389) |
anton:reencrypt-secrets |
Re-encrypt two-factor secrets and passkeys onto the current APP_KEY (#479). |
anton:reorder-positions |
Reorder AntonObjects position field (deterministic tie-break + automatic pre-snapshot for roll… |
anton:repair-closure-table |
Check and repair the object_closure table consistency |
anton:repair-content-locale |
Move objects.title and notes from a wrongly written language into the archive's own (#506). |
anton:repair-edit-metadata |
Restore updated_at/updated_by from the history column on records a mass run restamped (#421). |
anton:repair-unicode |
Compose decomposed umlauts and accents (NFD, from macOS file names) in titles, names and text … |
anton:reset |
Reset a Anton Installation (DB and assets) |
anton:restore |
Restore Database from the last Backup (by default) |
anton:restore-positions |
Restore object positions from an anton:reorder-positions snapshot TSV. |
anton:review-logs |
Check the security and holdings logs, mail only when something needs doing (#670) |
anton:save-searchqueries |
Exports and deletes data based on the given year and saves it to a file. |
anton:setting |
Get or set a setting. Admin users can edit "editable" settings, superusers can edit all settin… |
anton:setup-import-audit |
Migrate this tenant from accessions_archives_id (legacy) to import_audit_archives_id (new) — s… |
anton:shrink-to-public |
Create a public anton from a production anton. |
anton:sips-prune |
Remove SIP extractions no import needs any more, mark hung checks as failed, clear abandoned u… |
anton:sitemap |
Generate sitemap.xml for this tenant (#383) |
anton:update |
Update Anton to the last stable Version. |
anton:update-all-dates |
Fast update all dates in the objects table. |
anton:update-dates |
Update the dates in the objects table. |
anton:update-fulltext |
Refresh or update the full_text column in the objects table. |
anton:update-has_children |
Update has_children attribute in objects table. |
anton:update-loans |
Refresh or update the loans (users_objects table) for descendants |
anton:update-path |
Fill path attribute of objects.table |
anton:update-release-year |
Materialize release_year_calculated (the single effective release year) for all objects (#256). |
anton:upwd |
Set the password of an account; without the password argument it is asked for hidden. |
contract: (2)¶
| Command | Description |
|---|---|
contract:read-token |
Create an API token that reads only the billing address and the usage statements. |
contract:usage-statement |
Write the monthly usage statement for the invoice: storage, media, accounts, AI cost, booked i… |
format-policy: (3)¶
| Command | Description |
|---|---|
format-policy:disable |
Switch a format rule off for this archive (over its default) |
format-policy:enable |
Switch a format rule on for this archive (over its default) |
format-policy:list |
List the format rules (preingest): default, this archive's switch, whether in force, and wheth… |
inge: (3)¶
| Command | Description |
|---|---|
inge:check-infrastructure |
Check connectivity between Anton and Inge (and Dimag via Inge /status). On failure, reports a … |
inge:retry-handovers |
Hand over to DIMAG again the media whose hand-over failed, with their local master (#753) |
inge:unconfirmed-masters |
List media whose md5 check was deferred and never passed, and whether the local master is gone… |
matomo (1)¶
| Command | Description |
|---|---|
matomo |
Register this tenant with Matomo (site, user, token) and store analytics_id. Needs MATOMO_ADMI… |
media: (20)¶
| Command | Description |
|---|---|
media:add |
Add a media file to an AntonObject |
media:audit-orphan-folders |
Report (and optionally remove) media folders that no media row owns (#648). |
media:check |
Check Media. level 1: Mediacount. Count media in Database and Filesystem. level 2: Media from … |
media:checksum |
Compute SHA-512 for media without one, verifying each file against its stored MD5 (#574) |
media:conversions |
Create media conversions. The select options are exclusive. If you do not specify a conversion… |
media:count-pdf-pages |
Count PDF pages per fonds using pdfinfo. Shows page count statistics grouped by fonds (Bestand). |
media:delete-master |
Delete local master files whose copy in the cloud (INGE/DIMAG, S3) is confirmed |
media:identify |
Process media files for format identification and NARA risk assessment |
media:migrate |
Repack or migrate media already in Anton with a format policy rule, keeping references and evi… |
media:register-originals |
Register the copies in the media folders' original/ as kept versions (#565). |
media:rename |
Rename media to original name or vice versa |
media:repair |
Replace media that failed the integrity check with a verified copy from the local backup (#590) |
media:set-to-private |
Set media to private |
media:size |
Get the size of media and save it into the media table. |
media:snapshot |
Reference checksum lists of all media (git), and the integrity check of all or the N least rec… |
media:validate-formats |
Validate media formats (qpdf/veraPDF, tiffinfo, ImageMagick, ffmpeg; text, office and packages… |
media:validate-pdfs |
Validate PDF media (master + web conversion). Records results in media.custom_properties.event… |
media:versions-to-cloud |
Send kept versions (originals) to DIMAG when MEDIA_ORIGINALS_LOCATION=cloud and cloud = inge (… |
media:virus-scan |
Scan masters and kept versions with ClamAV; records virus-check events, moves nothing (#662) |
media:watch-formats |
Re-assess media formats when NARA changes a rating, and follow PRONOM's format names (#675) |
notification: (3)¶
| Command | Description |
|---|---|
notification:digest |
Summarise the quiet release reports into one announcement. |
notification:release |
Create the quiet release report for a version from its German news file. |
notification:send |
Create a system notification in one or all tenant databases. |
resources: (2)¶
| Command | Description |
|---|---|
resources:sync |
Anton-specific resources (external links) management |
resources:test-resources |
Check that every configured resource provider still answers |
sip: (6)¶
| Command | Description |
|---|---|
sip:check |
Some function for debugging the SIP-Ingest / import array. It checks the package (zip) and sho… |
sip:check-import |
Check the import of a SIP after it was done. Revert it if something failed downstream (INGE, D… |
sip:import-agate |
Run an agate-driven SIP import for an existing Importevent (issue #190). |
sip:import-file |
Import a large package in anton-import-format that lies on the server (#818). |
sip:load-xml |
Transform a metadata.xml to LoadXml which can be fed to Dimag |
sip:reconcile |
Reconcile SIP state across Anton DB, Inge and Dimag. Shows per-run media counts and flags disc… |
storage: (3)¶
| Command | Description |
|---|---|
storage:audit |
Audit local storage: count master files on disk, list SIP archives vs. unpacked directories. |
storage:link |
Create the symbolic links configured for the application |
storage:unlink |
Delete existing symbolic links configured for the application |
typesense: (10)¶
| Command | Description |
|---|---|
typesense:compare-search |
Compare the full-text hits of the database and the search index for some terms. |
typesense:flush |
Delete all documents from the active tenant's Typesense collection (keeps the collection schem… |
typesense:gallery-index |
Index gallery media into the active tenant's Typesense gallery collection. |
typesense:index |
Index AntonObjects into the active tenant's Typesense collection. |
typesense:index-media-texts |
Index MediaText (PDF/OCR) content into the active tenant's Typesense media-texts collection. |
typesense:reindex |
Reindex all Typesense collections (setup + objects + media-texts + gallery) for the active ten… |
typesense:reindex-all-tenants |
Run setup + index + index-media-texts + gallery-index across every active tenant. |
typesense:setup |
Create or update the Typesense collection for the active tenant. |
typesense:status |
Show the Typesense collections status for the active tenant. |
typesense:update-release |
Recompute time-dependent release flags (is_released, is_publicly_searchable) on every media-te… |