Leverage neonctl CLI to automatically grab/create a Neon project
Closed this issue · 4 comments
It'd be really nice if, similarly to neonctl's create-app command, the create-honc-app
leveraged neonctl
to let users select one of their existing Neon projects or create a new Neon project on the fly.
Hey @davidgomes thanks for submitting the issue! I'd be very keen to make the create-honc-app
more aware of the user's actual projects in Neon and automate that part of the flow.
What would be the best way to go about authenticating with Neon from the create-honc-app
CLI? (also happy to reach out over email to go through the options here)
Hey @davidgomes thanks for submitting the issue! I'd be very keen to make the
create-honc-app
more aware of the user's actual projects in Neon and automate that part of the flow.What would be the best way to go about authenticating with Neon from the
create-honc-app
CLI? (also happy to reach out over email to go through the options here)
If you subshell to neonctl auth
, it'll populate ~/.config/neonctl
with an API key that you can now use to make Neon REST API requests.
You can also try to implement neonctl auth
yourself - see its implementation here.
@davidgomes started working on a better setup flow for Neon in #12 :) I'm interfacing with the auth APIs directly taking inspiration from neonctl auth
.
quick question: would it be possible to add a custom OAuth client ID (i.e. create-honc-app
)? Currently I have to make the create-honc-app
"pretend" that it is neonctl
otherwise the authentication request gets rejected:
will do thanks!