Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any way to create or list database connections from the CLI? #374

Open
stephan-erickson opened this issue Nov 30, 2021 · 5 comments
Open
Labels
feature request A feature has been asked for or suggested by the community

Comments

@stephan-erickson
Copy link

Describe the problem you'd like to have solved

It seems I should be able to create a new database connection from CLI. Maybe I am missing details in the documentation?

Describe the ideal solution

auth0 dbconnection create
auth0 dbconnection list
auth0 dbconnection delete

Alternatives and current work-arounds

na

Additional context

na

@Widcket
Copy link
Contributor

Widcket commented Dec 2, 2021

Hi @stephan-erickson, thanks for raising this. The Auth0 CLI does not currently support database connection CRUD.

@Widcket Widcket added the feature request A feature has been asked for or suggested by the community label Dec 2, 2021
@mstallmo
Copy link

mstallmo commented Jul 5, 2022

Just wanted to come and give this issue a bump for visibility. Adding this feature to the CLI would be very helpful!

Would a PR from the community implementing this feature be accepted?

@Widcket
Copy link
Contributor

Widcket commented Jul 5, 2022

cc @sergiughf ^

@sergiught
Copy link
Contributor

Hey @mstallmo, @stephan-erickson, appreciate you folks raising visibility around this. We don't currently plan on adding this feature to the cli right now, but contributions are more than welcome. We'll review them together and collaborate on getting them to the finish line:) so please feel free to give it a try.

@sergiught
Copy link
Contributor

Hey folks 👋🏻 ,

We recently added a new command 🧰 auth0 api <method> <url-path> [flags] that is able to make authenticated requests against the management API (https://auth0.com/docs/api/management/v2).

:octocat: This command is available with https://github.com/auth0/auth0-cli/releases/tag/v0.13.0.

📖 Docs for this command: https://auth0.github.io/auth0-cli/auth0_api.html

Although it doesn't offer first class support for managing database connections, you could use it as an alternative to manage database connections through the cli until we have a more dedicated command for them.

For example to create a database connection: auth0 api post connections --data "{\"strategy\":\"auth0\", etc...}"

Feedback is much appreciate for this new command 🙏🏻 Let us know if you encounter any issues with it.

We'll keep this issue open however until we are able to add a dedicated first class command to manage db connections.

Thanks for your patience! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A feature has been asked for or suggested by the community
Projects
None yet
Development

No branches or pull requests

4 participants