I’ve upgraded my local MongoDB environment to 5.0 and I guess I’m not familiar with this generations commands.
I was getting some errors in my MongoDB M001 MongoDB basics. So I decided to drop the databases and import the data again. I wiped out my Mongo 4.0 cli when I upgraded to 5.0.
I’m trying to upload the data into my own Atlas environment.
The command I found in the docs to do this under 5.0 was this:
mongocli atlas clusters loadSampleData m001-student:firstname.lastname@example.org
Then I get an
Error: missing credentials error. Then it tells me to:
To set credentials, run: mongocli config
So now I try to enter in my Atlas cluster credentials with:
mongocli config You are configuring a profile for mongocli. All values are optional and you can use environment variables (MCLI_*) instead. Enter [?] on any option to get help. ? Public API Key: [? for help] m001-student ? Public API Key: m001-student ? Private API Key: [? for help] ******************* there was a problem fetching orgs: GET https://cloud.mongodb.com/api/atlas/v1.0/orgs: 401 (request "") You are not authorized for this resource. ? Default Org ID: [? for help] MDBU X Sorry, your reply was invalid: the provided value 'MDBU' is not a valid Id
I don’t really know what I’m doing wrong. All I want to do is load the sample data back into my Atlas cluster like I’d had it before. Since my upgrade I no longer have access to
I’d appreciate any help to get me past this point!