Skip to content

docs(@angular/cli): remove references to the default project - #34382

Open
MeAkib wants to merge 1 commit into
angular:mainfrom
MeAkib:docs/remove-default-project
Open

MeAkib wants to merge 1 commit into
angular:mainfrom
MeAkib:docs/remove-default-project

Conversation

@MeAkib

@MeAkib MeAkib commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

The ng deploy descriptions stated that the deploy builder runs for the default project when no project name is supplied, and the ng new long description described the initial application as the workspace's default project. The CLI no longer has a default project: architect commands use the only project that has the target, or the project in the current working directory. Describe that behavior instead.

The `ng deploy` descriptions stated that the deploy builder runs for the default
project when no project name is supplied, and the `ng new` long description
described the initial application as the workspace's default project. The CLI no
longer has a default project: architect commands use the only project that has
the target, or the project in the current working directory. Describe that
behavior instead.
@angular-robot angular-robot Bot added area: docs Related to the documentation area: @angular/cli labels Oct 18, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the CLI command descriptions for the deploy and new commands to remove references to the deprecated "default project" concept, replacing them with the new resolution logic (such as using the project in the current working directory or the only project with a deploy target). The review feedback suggests refining the short description of the deploy command to fully align with this updated logic and the long description.

override longDescription = longDescription;
describe =
'Invokes the deploy builder for a specified project or for the default project in the workspace.';
'Invokes the deploy builder for a specified project or for the project in the current working directory.';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The short description is slightly incomplete compared to the actual resolution logic and the updated long description. If a project name is not supplied, the CLI first attempts to run the builder for the only project in the workspace that has a deploy target, before falling back to the project in the current working directory. Updating the short description to mention this makes it more accurate and helpful for users running the command from the workspace root.

Suggested change
'Invokes the deploy builder for a specified project or for the project in the current working directory.';
'Invokes the deploy builder for a specified project, the only project with a deploy target, or the project in the current working directory.';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: @angular/cli area: docs Related to the documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant