Skip to content

feat: resolve project-id and org-id using instance-id#38

Draft
LucDeCaf wants to merge 1 commit intomainfrom
feat/optional-id-params
Draft

feat: resolve project-id and org-id using instance-id#38
LucDeCaf wants to merge 1 commit intomainfrom
feat/optional-id-params

Conversation

@LucDeCaf
Copy link
Copy Markdown

Replaces #37 using a cleaner and (hopefully) simpler approach.


Using a soon-to-be-introduced path in @powersync/management-client, automatically fetch the project_id and org_id flags when given the instance_id for a number of commands (where it makes sense to do so).

Example

Before:

powersync pull instance --project-id='project-123-456-789' --instance-id='instance-123-456-789'

After:

# Project ID is fetched from the management service if required
powersync pull instance --instance-id='instance-123-456-789'

NB: Test failures are expected until the next version of the @powersync/management-client releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant