auth0-cli icon indicating copy to clipboard operation
auth0-cli copied to clipboard

Request to add support for credentials/profiles file

Open mdecurtins opened this issue 8 months ago • 1 comments

Checklist

Describe the problem you'd like to have solved

The AWS CLI supports authentication using credentials stored in .aws/credentials, and then referencing credentials for different tenants/tiers using the --profile flag. It makes targeting different profiles in AWS very intuitive to use on the command line.

It would be amazing to have something similar in the Auth0 CLI!

Describe the ideal solution

Ideally, this feature would work almost identically to the same feature in the AWS CLI.

The user creates a file in a directory, e.g. ~/.auth0, called profiles or tenants or something like that. The file is in TOML format, containing one or more blocks of the form:

[my_label]
client-id = <client_id>
client-secret = <client_secret>
domain = <tenant_domain>
scopes = <optional_scopes_strings>

The user could then simply authenticate via: auth0 login <my_label> and the CLI would fetch the appropriate client credentials from the file and perform the authentication.

Thanks for your consideration!

Alternatives and current workarounds

It's possible to implement this now with Bash aliases or custom functions, but it would be great if it were officially supported in the Auth0 CLI.

Additional context

No response

mdecurtins avatar May 29 '25 15:05 mdecurtins

Hello @mdecurtins ,

Thank you for the great suggestion! We’ll be working on this feature!

ramya18101 avatar Jun 03 '25 03:06 ramya18101