feat(cli): place environments and tasksets in a Project - #589
Merged
Merged
Conversation
solvemproblr
force-pushed
the
projects-cli
branch
from
August 17, 2026 02:08
a2ba5b6 to
cfead72
Compare
solvemproblr
force-pushed
the
projects-cli
branch
from
August 17, 2026 09:33
15a0089 to
46c5f09
Compare
solvemproblr
force-pushed
the
projects-cli
branch
from
September 5, 2026 09:53
41d588a to
6886cfd
Compare
jdchawla29
marked this pull request as draft
September 8, 2026 21:17
solvemproblr
force-pushed
the
projects-cli
branch
2 times, most recently
from
September 9, 2026 12:56
e384128 to
3b266e1
Compare
solvemproblr
force-pushed
the
projects-cli
branch
from
September 9, 2026 13:08
3b266e1 to
0a156df
Compare
solvemproblr
marked this pull request as ready for review
September 9, 2026 13:10
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 0a156df. Configure here.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

High-level idea
Add first-class Project selection to the HUD CLI while keeping the normal deploy and task-sync workflow zero-configuration.
Issue
The CLI could only create resources in the team default Project. Teams using multiple Projects could not select a destination, persist a directory choice, or set a machine-wide default. The Projects beta is also feature-gated, so unflagged users need a clear error instead of a generic platform or permission failure.
Solution
hud project,hud project list,hud project create <name>, andhud project use <name-or-id>.--project <name-or-id>override tohud deployandhud sync tasks.projectIdin.hud/config.jsonand supportHUD_DEFAULT_PROJECTas the machine-wide fallback.hud projectprobes the gated endpoint; ordinary deploys and syncs without Project-specific configuration continue using the team default.The stable backend error code is added by hud-monorepo#1714. This PR also recognizes the currently deployed error detail during rollout.
Impact
Existing zero-config workflows are unchanged. Selecting a Project controls only where a new environment or taskset is created; it never moves an existing resource.
Test plan
--no-use, use by name, use by UUID, and bare report--project, andHUD_DEFAULT_PROJECT--project, andHUD_DEFAULT_PROJECTproject_idfor all created environments and tasksets-CparsingNote
Medium Risk
Changes where new platform resources are created and adds permission/feature-gate handling, but existing zero-config deploy/sync behavior is preserved when no Project is selected.
Overview
Adds HUD Projects as the workspace boundary for deploys and task syncs, while keeping the default team Project path unchanged when nothing is configured.
New
hud projectcommands list, create, pin (use), and report the resolved destination; pinning writesprojectIdto.hud/config.json.hud deployandhud sync tasksgain--project, and placement follows flag → directory config →HUD_DEFAULT_PROJECT→ team default. Overrides do not persist; deploy/upload only sendproject_idwhen a non-default Project is selected. Read-only Projects block writes but still allow no-op syncs; the CLI recognizes the Projects beta feature gate with a clear error.Docs add a Projects reference page and update README, CLI, environment, and tasks guides. Tests cover precedence, deploy payloads, sync upload behavior, and project command parsing.
Reviewed by Cursor Bugbot for commit 6637b63. Bugbot is set up for automated code reviews on this repo. Configure here.