algolia / cli

🔍 Algolia’s official CLI devtool
https://www.algolia.com/doc/tools/cli
MIT License
102 stars 26 forks source link

Profile not found when trying to create first profile and set it as default #68

Closed gritchou closed 1 year ago

gritchou commented 1 year ago

Steps to reproduce:

  1. Install the CLI (brew)
  2. Try to create a first profile with algolia profile add
  3. Set a Name: blabla
  4. Input Application ID and Admin API Key
  5. Select Yes in Set as default profile? Yes

Result: profile 'blabla' not found

Expected Result: profile 'blabla' created and set as default

Interestingly the profile is still created. But as the error message is misleading, I tried to create it again under a different name and then got the message: X Sorry, your reply was invalid: application ID '********' already exists in profile 'blabla'

Error message is triggered there in the config.go file