Skip to main content

Overview

The generate-report command fetches all logged inferences for a given system, generates a PDF report, and stamps it on the Minima blockchain — giving you tamper-proof compliance evidence in one command.

Usage

# Using system name
npx ai-logger generate-report --system openai-test-bot

# With custom output folder
npx ai-logger generate-report --system openai-test-bot --output ./reports/

Flags

FlagRequiredDefaultDescription
--system✅ YesSystem name or ID
--outputNo./ai-logger/Folder to save the report

What happens when you run it

⦸ Fetching logs from database...
⦸ Generating PDF...
⦸ Stamping on Minima blockchain...
✓ Report saved to ./ai-logger/openai-test-bot-2026-02-20.pdf

Transaction ID: 0xabc123...
Block: #48291
The report is saved as systemname-YYYY-MM-DD.pdf in the output folder. The output folder is created automatically if it does not exist.
Make sure you have run npx ai-logger init and that your .ai-logger.config.json is present in the project root before running this command.