Feature Request: Expand auth0 tenants
to output CLI's active tenant domain
#773
Labels
feature request
A feature has been asked for or suggested by the community
good first issue
Good for newcomers
Checklist
Describe the problem you'd like to have solved
While recently updating our quickstart guides to use the CLI, I noted an area of improvement that would be great to address.
It would be helpful if the
auth0 tenants
command could be expanded to offer an option to output the CLI's currently configured active/default tenant domain.For example, we have
auth0 tenants use ...
but there isn't a command to return what that assigned tenant is after the fact.In our quickstart guidance, we direct our users to export the responses from
auth0 app create
andauth0 api create
steps using the--json
flag. We pipe the output to.auth0.app.json
and.auth0.api.json
files, which an SDK can read from to configure itself. This saves end users a lot of time and avoids the error-prone.env
editing process, where typos and confusion are frequent.By further offering a
auth0 tenants current
type command, or expandingauth0 tenants list
with a--current
and/or--json
flag that exposes a property that identifies the active tenant, we could direct users to use this command to configure the SDK with the appropriate tenant domain as well, without the manual need of looking it up.Note: At present, the Laravel SDK works around this need by parsing the JSON output of the
auth0 app
response and extracting thesubject
from the firstsigning_keys
array property. It massages the data a bit to be useful in the process. This works, but I'm sure there are edge cases where it might not, and it feels a bit hacky. A "real" command for doing this would be great!Describe the ideal solution
Support a
auth0 tenants current
type command, or expandauth0 tenants list
with a--current
flag (or a--json
flag, and expose a property on the resulting array that identifies the CLI's actively configured tenant to use.)Alternatives and current workarounds
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: