Skip to content

Add Sites visibility commands - #10

Merged
vigneshrajsb merged 6 commits into
mainfrom
feat/sites-access-control
Sep 22, 2026
Merged

vigneshrajsb merged 6 commits into
mainfrom
feat/sites-access-control

Conversation

@vigneshrajsb

@vigneshrajsb vigneshrajsb commented Sep 15, 2026 •

Copy link
Copy Markdown
Collaborator

Adds Sites visibility controls to the CLI.

  • Add --visibility on create and sites visibility for existing Sites.
  • Keep service-key uploads public by default; user uploads default to private.
  • Add public/search filters, stable opening links and permission-aware updates.

Validation: 94 tests, lint, typecheck, build and 7 live CLI/REST checks passed.

Companion PRs

`sites create` only confirmed when --visibility public was passed
explicitly. A service-key credential defaults uploads to public
server-side, so omitting the flag under that credential published
instantly with no prompt and no --yes requirement -- the one visibility-
affecting action in this command set without a safety net.

Now resolves the effective visibility (flag, else the account's
default from capabilities) before deciding whether to confirm, using
a distinct message when the public outcome came from the account
default rather than an explicit flag.
@vigneshrajsb
vigneshrajsb marked this pull request as ready for review September 22, 2026 22:29
@vigneshrajsb
vigneshrajsb merged commit 00ac955 into main Sep 22, 2026
1 check passed
@vigneshrajsb vigneshrajsb mentioned this pull request Sep 22, 2026
1 task
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