# Manual Reporting

To manually run the monthly report:

1- Update the template: <https://github.com/OpenCollective/opencollective-api/blob/master/templates/emails/group.monthlyreport.hbs>

2- If you want to preview some of the emails, you can run it locally with

```
PG_DATABASE=opencollective_prod_snapshot DEBUG=preview npm run cron:monthly
```

(it won't send real emails but it will output links to preview them in the browser)

3- Run bash on heroku production:

```
heroku run bash --app opencollective-prod-api
```

4- Run the monthly cron job manually:

```
npm run cron:monthly
```

If you want to only run it for certain collectives, modify the `query` here: <https://github.com/OpenCollective/opencollective-api/blob/master/cron/monthly/email-report.js#L30>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentarians.gitbook.io/metadocumentation/contributing/development/manual-reporting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
