Database branching VIA CLI & Organizations
Hello me & my team would like to create some database branches via the CLI for each team members local development environment.
Is there a way to do this with the CLI? The project is hosted under an organization.
We've tried many different ways to get it to branch via CLI but it doesn't seem to want to find the project in the org.
If there is not, is there an image you guys provide for a local development database? Thank you.
1 Reply
equal-aqua•13mo ago
@dan try neonctl set-context --org-id <YOUR-ORG-ID>
https://github.com/neondatabase/neonctl/commit/e8b9d98320a02ca0e316c59e84f56f1abd7b480b
you should also be able to pass --org-id as an argument in a single command
GitHub
feat: ability to set org context (#268) · neondatabase/neonctl@e8b9...
Related to https://github.com/neondatabase/cloud/issues/13076
Changes
* You can now set org context
neonctl set-context --org-id
org-round-art-46961103
* This will set the context for `neon...