algolia / cli

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

feat(cmd) non-admin API keys support #139

Closed clemfromspace closed 7 months ago

clemfromspace commented 9 months ago

Related to #114 and #97.

This PR deprecate the --admin-api-key global flag and replace it with --api-key. This is also valid for api keys stored in the profiles and the ones from the environment variables.

Each command interacting with the Algolia API now check the ACLs needed in order to execute the command and fail if the provided API Key don't have the needed ACLs.

We also warns the user when creating a profile with either: