I dont understand --eval

I understand what the

–eval

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 192.168.103.100:27000 -u m103-admin -p m103-pass --authenticationDatabase admin --eval ’
db.getProfilingLevel()