I know I can create a data source step by step using a manage.py ds new demoname commad ,but is it possible to create a
datasource in one single. command with password and so on

Not with manage.py but this would be pretty straightforward to write for yourself in Python.

bin/run ./manage.py ds new --type=mongodb --options="{“host”:“server-cluster-1xyz8.mongodb.net”, “port”:27017, “user”:“dev2rwuser”,“password”:“xxxxxx”,“dbname”:“mongo_dbname”}" Test-Mongo

What is wrong with this Mongo setup command? Please help…!!

I get “Error: invalid configuration.” :sleepy:

Have you tried using the exact, case-sensitive field names?

            "connectionString":
            "username":
            "password": 
            "dbName": 
            "replicaSetName": 
            "readPreference":

Thank you!! This worked :hugs:

1 Like