AI Content Index

Generate CSV indexes of your pages and media for AI tools and content discovery.

Usage

php bin/console pw:ai-index [host] [exportDir]
  • host — optional, filter pages by host. Omit to export all pages.
  • exportDir — optional, output directory. Defaults to the flat-file content directory for the host, or var/export/ if flat is not configured.

Output

pages.csv

ColumnDescription
slugPage URL slug
titleHTML title (falls back to h1)
createdAtCreation date (Y-m-d H:i:s)
tagsComma-separated tags
summarySearch excerpt
mediaUsedMedia filenames referenced in content
parentPageParent page slug
pageLinkedOther page slugs linked from content
lengthCharacter count of mainContent

medias.csv

ColumnDescription
mediaFilename
mimeTypeMIME type
nameAlt text
usedInPagesPage slugs that reference this media

Example

# Export pages for a specific host
php bin/console pw:ai-index altimood.com

# Export all pages to a custom directory
php bin/console pw:ai-index "" /tmp/pushword-export

The CSV files use comma delimiters and double-quote enclosure. Feed them to your AI agent for content analysis, link graph extraction, or editorial audits.