Can I run scans or check inventory status from the command line?

Yes. The module ships two Drush commands.

  • drush dai:scan runs a full site scan (the same 9-phase batch as the "Scan Site for Digital Assets" button) and automatically resumes from a checkpoint if a previous scan was interrupted. Add --force to clear a stuck scan lock.
  • drush dai:status prints inventory metrics: last scan time, asset counts by location and category, title resolution progress, and archive statistics. Use --format=json or --format=yaml for scripts.

Both commands log audit events to /admin/reports/dblog. There is no built-in cron; scheduling scans is the site's responsibility.