Skip to content

Commit d251d95

Browse files
os-zhuangclaude
andauthored
feat(cli)!: os package publish defaults visibility to org (ADR-0007 ②) (#1700)
A freshly published package should be auto-visible/installable across the owner organization's environments — that's the common "build an app, deploy it to my envs" case. Default `--visibility` private → org. Publishers opt into narrower `private` (grant/ACL) or public `marketplace` explicitly. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 8c1e869 commit d251d95

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

packages/cli/src/commands/package/publish.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,13 @@ export default class PackagePublish extends Command {
165165
description: 'Marketplace category slug (e.g. crm, hr, devtools)',
166166
}),
167167
visibility: Flags.string({
168-
description: 'Who can see / install this package',
168+
description:
169+
"Who can see / install this package. " +
170+
"'org' (default): auto-visible/installable across your organization's environments. " +
171+
"'private': only explicitly-granted orgs/envs. " +
172+
"'marketplace': public after review.",
169173
options: ['private', 'org', 'marketplace'],
170-
default: 'private',
174+
default: 'org',
171175
}),
172176
org: Flags.string({
173177
description: 'owner_org_id (required when using a bearer key in service mode; ignored in user mode)',

0 commit comments

Comments
 (0)