Skip to content

Sync from docs: CLI no longer requires --project-id/--org-id for most commands (powersync-docs #475)#48

Merged
michaelbarnes merged 1 commit into
mainfrom
drift/docs-475-remove-project-org-id-from-cli
Jun 25, 2026
Merged

Sync from docs: CLI no longer requires --project-id/--org-id for most commands (powersync-docs #475)#48
michaelbarnes merged 1 commit into
mainfrom
drift/docs-475-remove-project-org-id-from-cli

Conversation

@bean1352

Copy link
Copy Markdown
Collaborator

Generated by Claude. Review carefully before merging.

Source docs PR: powersync-ja/powersync-docs#475

What changed in docs

The PowerSync CLI now automatically resolves project and org IDs from the instance ID, making --project-id and --org-id optional for most commands. The only exception is powersync link cloud --create, which still requires --project-id because no instance ID exists yet.

Skill updates in this PR

  • skills/powersync/references/powersync-cli.md — Updated instance resolution note; removed --project-id from pull instance, link cloud (non---create), and flag/env examples; dropped PROJECT_ID/ORG_ID from the CI env-vars table and example; updated Common Commands table and migration table accordingly.
  • skills/powersync/AGENTS.md — Updated "Required Inputs Before Coding" to remove "Project ID" as a required input when using the CLI with an existing instance.

Notes for reviewer

  • powersync link cloud --create --project-id=<id> is intentionally unchanged — the docs explicitly carve out --create as still requiring --project-id.
  • The cli.yaml multi-env Option B example still includes project_id/org_id fields; these remain valid as an optional performance cache (the CLI uses them to skip a lookup when present). No change was made there since the fields are still supported and the example is illustrative, not prescriptive.
  • The --org-id note on powersync login / --create was also left intact — the docs confirm those still apply for multi-org tokens.
  • No new skill file was warranted; all affected content lived in the existing CLI reference and AGENTS onboarding file.

Generated by Claude Code

…#475)

The CLI now auto-resolves project and org IDs from the instance ID.
Only `powersync link cloud --create` still requires --project-id.
CI deployments only need INSTANCE_ID (drop PROJECT_ID / ORG_ID).
@bean1352 bean1352 requested a review from michaelbarnes June 11, 2026 14:35
@bean1352 bean1352 self-assigned this Jun 11, 2026
@benitav

benitav commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

note that the docs PR may have been merged a little prematurely. The CLI version with this change isn't fully out yet.

@bean1352 bean1352 marked this pull request as draft June 11, 2026 14:40

Copy link
Copy Markdown
Collaborator Author

Good catch — converting to draft. These changes should not be merged until the CLI version that auto-resolves project/org IDs from instance ID is fully released. Once that version is out, mark ready for review to proceed.


Generated by Claude Code

@benitav

benitav commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Now released

@bean1352 bean1352 marked this pull request as ready for review June 12, 2026 11:34
@michaelbarnes michaelbarnes merged commit fa92f16 into main Jun 25, 2026
1 check passed
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.

3 participants