-
Notifications
You must be signed in to change notification settings - Fork 180
CLI: support project visibility when creating projects in a teams workspace #705
Description
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 visibilityPOST /api/projects/{id}/members— add members to shared projectPATCH /api/projects/{id}/members/{share_id}— update member access levelDELETE /api/projects/{id}/members/{user_id}— remove member