Postman CLI: The specified file cannot be found

I attempted to execute a file upload test using Postman CLI but encountered an error stating The specified file cannot be found.

I followed the instructions from the Postman Answer documentation and tried to upload a file named text.txt from my local working directory C:\Users\<username>\Postman\files.

API: POST http://postman-echo.com/post

The file upload process operates smoothly when initiated through the Postman desktop application; however, when executed via the Postman Command Line Interface, the file appears to be missing.

screenshot from postman application

screenshot from postman CLI

Hi @devang-ey.

The Postman CLI can’t run requests that use files in your local working directory to send body data. If your collection has requests that use files, upload your test data files to make them available to the Postman CLI.