What I want to do is that I want to send a test-rail report on a specific email using a command line just by giving parameters like email address and file type (PDF or HTML)
Thanks for the post. It’s not currently possible to create new reports or configure specific recipients for reports once the report configuration has been set. With TestRail 5.7, we did add some API methods that would allow for triggering a report to be run via the API, however the API trigger will be based on the existing configuration, including the recipients, that are already set up within the report ahead of time.
You can find more details about setting up TestRail Reports through the API in our documentation here:
Hope that helps!