Skip to content

chore: remove --project-id and --org-id references in CLI docs#475

Open
LucDeCaf wants to merge 3 commits into
mainfrom
cli-instance-id
Open

chore: remove --project-id and --org-id references in CLI docs#475
LucDeCaf wants to merge 3 commits into
mainfrom
cli-instance-id

Conversation

@LucDeCaf
Copy link
Copy Markdown
Contributor

@LucDeCaf LucDeCaf commented May 27, 2026

This PR in the CLI repo automatically fetches the project and org IDs from the instance ID and converts the project and org ID settings to no-ops (in most cases). The exceptions are powersync link cloud --create, which creates a new instance and thus has no instance ID to pull from, and project/org IDs defined in cli.yaml, which now act as a sort of lazy cache for the CLI to save on repeated getInstance calls.

Note: CLI changes are merged but unreleased, will merge this PR once CLI changes are fully released.

AI Usage

Claude Code was used to draft the docs changes, which I reviewed and adjusted.

@mintlify
Copy link
Copy Markdown
Contributor

mintlify Bot commented May 27, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
powersync 🟢 Ready View Preview May 27, 2026, 1:42 PM

@LucDeCaf LucDeCaf marked this pull request as ready for review June 4, 2026 12:48
@LucDeCaf LucDeCaf requested a review from benitav June 4, 2026 12:49
Comment thread tools/cli.mdx
powersync pull instance --instance-id=<instance-id>
```

The instance ID identifies the target on its own. The CLI looks up the organization and project from it, so `--org-id` and `--project-id` are not needed.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The developer note above is somewhat interesting because it explains that while developers typically only need to pass the instance ID, under the hood project and org ID are automatically looked up and referenced. But overall I wonder how much users actually need to know/care about this? I think mentioning explicitly in a case like this (The CLI looks up the organization and project from it, so --org-idand--project-id are not needed.) that project and org ID are not required is unnecessary and just noise because of a legacy thing? Another way to look at this: what will break if we simply don't mention project and org IDs at all (i.e. they are just an internal params needed for API calls - if my assumption here is true)

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.

2 participants