I dont understand --eval

I understand what the


flag is supposed to do but everytime I use it I just get a error saying

missing ; before statement

I am supposed to run the command like this one from the terminal shell right and not when I am connected to the mongod and in the mongo shell right.

mongo newDB --host -u m103-admin -p m103-pass --authenticationDatabase admin --eval ’