Describe the bug
After upgrading to v2.0.7, mongocli auth login fails in two scenarios due to service type validation errors. The command appears to require the service to be explicitly set to cloud-manager even on fresh installs or existing valid configs.
To Reproduce
Scenario 1: Fresh Installation
- Perform a fresh installation of MongoCLI v2.0.7 (no existing config file).
- Run
mongocli auth login.
. See error: Error: this command is only supported for cloud-manager, not ""`
Scenario 2: Existing Config (service=cloud)
- Use an existing configuration where service is set to cloud (common in some 1.x versions?).
- Run
mongocli auth login.
- See error:
Error: this command is only supported for cloud-manager, not "cloud"
Expected behavior
- On a fresh install,
mongocli auth login should either default to cloud-manager or allow the login process to proceed without a pre-existing config file.
- The CLI should recognize
cloud as a valid alias for cloud-manager or automatically migrate the config to ensure backward compatibility.
Screenshots
If possible, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: macOS 14.1
- MongoCLI version 2.0.7
Describe the bug
After upgrading to v2.0.7,
mongocli auth loginfails in two scenarios due to service type validation errors. The command appears to require the service to be explicitly set to cloud-manager even on fresh installs or existing valid configs.To Reproduce
Scenario 1: Fresh Installation
mongocli auth login.. See error:Error: this command is only supported for cloud-manager, not ""`Scenario 2: Existing Config (service=cloud)
mongocli auth login.Error: this command is only supported for cloud-manager, not "cloud"Expected behavior
mongocli auth loginshould either default to cloud-manager or allow the login process to proceed without a pre-existing config file.cloudas a valid alias forcloud-manageror automatically migrate the config to ensure backward compatibility.Screenshots
If possible, add screenshots to help explain your problem.
Desktop (please complete the following information):