-
Type: Story
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Embedded Shell
-
None
-
3
-
Iteration Yucca
-
Not Needed
User Story
As a user,
I want to run a MongoDB shell script file directly from the command line
So that I can use mongosh programmatically to execute scripted operations against my servers/clusters.
Acceptance criteria
- I can run the script with mongosh ./myscript.js
- Add support for the --shell CLI argument to provide the user with a shell prompt after a script has been executed.
- .mongoshrc.js will be interpreted after myscript.js only if --shell is specified
- is depended on by
-
MONGOSH-627 Add telemetry events
- Closed
- related to
-
MONGOSH-295 Cannot print or console.log from a JavaScript file
- Closed