Skip to content

CLI: support project visibility when creating projects in a teams workspace #705

@groksrc

Description

@groksrc

Problem

When creating a project in a teams workspace via the CLI (bm project add), there is no way to set the project visibility. The web app supports three visibility levels:

  • workspace ("Everyone — all workspace members") — default, visible to all
  • shared ("Invite Only — selected members") — only creator + explicitly invited members
  • private — auto-created "My Notes", only visible to the creator

The CLI currently creates all projects with the default workspace visibility. There is no --visibility flag or interactive prompt.

Expected Behavior

The CLI should support setting visibility when creating a project in a teams workspace:

# Create a project visible to all team members (default)
bm project add research --cloud

# Create a project visible only to invited members
bm project add research --cloud --visibility shared

# Interactive: prompt for visibility when multiple workspaces exist
bm project add research --cloud --workspace "Basic Memory"

For shared projects, member management would still happen through the web app (or a future bm project share command).

Context

The cloud API already supports this via POST /api/projects with visibility control. The web app's "Add New Project" dialog exposes the visibility dropdown. The CLI just needs to pass the visibility through when creating cloud projects.

Related cloud endpoints:

  • POST /api/projects — create shared project with visibility
  • POST /api/projects/{id}/members — add members to shared project
  • PATCH /api/projects/{id}/members/{share_id} — update member access level
  • DELETE /api/projects/{id}/members/{user_id} — remove member

Metadata

Metadata

Assignees

Labels

cloudBasic Memory CloudenhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions