ayaseq command.
Usage
Available commands
- cli-get-reports - List reports with optional filters
- cli-get-report-count - Count reports matching filters
- cli-edit-report - Edit report metadata
- cli-delete-report - Delete a report
- cli-reports-action - Take moderation action on a report
No authentication is required for CLI commands since access to the server is required to run them.
cli-get-reports
Display reports with optional filters. Results are shown in a formatted table.Filter options
Filter by specific report ID
Filter by board shortnames (can specify multiple)
Filter for reports on opening posts only
Filter by thread number
Filter by post number
Filter by report category:
illegal_contentdcmaunderageembedded_datadoxxingwork_safespammingadvertisingimpersonationbotsother
Filter by visibility:
v- visibleh- hidden
Filter by moderation status:
o- openc- closed
Created at or after this date (YYYY-MM-DD format)
Created at or before this date (YYYY-MM-DD format)
Page number for pagination
Number of results per page
Examples
List all open reports:Output
cli-get-report-count
Show the total number of reports matching given filters.cli-get-reports.
Example
Output
cli-edit-report
Update report metadata fields.Options
Report ID to edit
Set visibility:
v (visible) or h (hidden)Set status:
o (open) or c (closed)Set or update moderation notes
Example
Output
cli-delete-report
Permanently delete a report from the database.Report ID to delete
Example
Output
cli-reports-action
Take a moderation action on a specific report.Options
Report ID to act on
Action to take:
report_delete- Delete the reportreport_close- Close the reportreport_open- Reopen the reportreport_save_notes- Save moderation notespost_delete- Delete the reported postpost_hide- Hide the reported postpost_show- Show the reported postmedia_delete- Delete the mediamedia_hide- Hide the mediamedia_show- Show the media
Moderation notes (optional, used with
report_save_notes)Examples
Delete a reported post:Output
Report categories
Available report categories (fromsrc/ayase_quart/enums.py):
| Value | Description |
|---|---|
illegal_content | Illegal content |
dcma | DMCA copyright violation |
underage | Underage content |
embedded_data | Media with hidden embedded data |
doxxing | Personal information disclosure |
work_safe | NSFW on SFW board |
spamming | Spam or flooding |
advertising | Commercial advertising |
impersonation | Impersonating another user |
bots | Bot or scraper activity |
other | Other issues |
Moderation actions
Available actions forcli-reports-action:
| Action | Effect |
|---|---|
report_delete | Permanently delete the report |
report_close | Mark report as closed/resolved |
report_open | Mark report as open |
report_save_notes | Save moderation notes |
post_delete | Permanently delete the post |
post_hide | Hide post from public view |
post_show | Make post visible again |
media_delete | Permanently delete media files |
media_hide | Hide media from public view |
media_show | Make media visible again |
These actions are defined in
src/ayase_quart/enums.py:25-36 as the ReportAction enum.Implementation details
The reports CLI is implemented using Click (unlikeayaseq which uses argparse):
- Defined in
src/ayase_quart/cli/reports.py - Uses
@click.group()and@click.command()decorators - Includes
@report_filtersdecorator for applying common filter options - Uses
asyncio.run()to execute async database operations - Automatically closes database connections after each command