XMLWordPrintableJSON

    • Type: Story
    • Resolution: Fixed
    • Priority: Major - P3
    • 0.10.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • 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 -shell is specified (-shell is added in MONGOSH-326.

              Assignee:
              Unassigned
              Reporter:
              Massimiliano Marcon
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: