- 
    Type:Story 
- 
    Resolution: Fixed
- 
    Priority:Major - P3 
- 
    Affects Version/s: None
- 
    Component/s: None
- 
    None
- 
        2
- 
        Iteration Yucca
- 
        Not Needed
User Story
As a user
I want to run JS as a CLI parameter for mongosh
So that I can write bash scripts to automate MongoDB operations
Acceptance criteria
- Add support for running JS as a CLI parameter, with mongosh --eval "some script here"
- The script passed as parameter is executed and its result printed after mongosh exits
- If errors happen, mongosh exits with a non-zero error code and the error is printed
- .mongoshrc.js is executed after the script is evaluated  if -shellis specified (-shell is added inMONGOSH-326.
- is depended on by
- 
                    MONGOSH-627 Add telemetry events -         
- Closed
 
-