From 816497e1d5514a2e532f9de8f230344a5fedeeac Mon Sep 17 00:00:00 2001 From: MeAkib Date: Fri, 16 Oct 2026 00:15:41 +0600 Subject: [PATCH 1/2] docs(@angular/cli): remove references to the default project 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. --- packages/angular/cli/src/commands/deploy/cli.ts | 2 +- packages/angular/cli/src/commands/deploy/long-description.md | 3 ++- packages/angular/cli/src/commands/new/long-description.md | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/angular/cli/src/commands/deploy/cli.ts b/packages/angular/cli/src/commands/deploy/cli.ts index fb305c94aaf1..da333725cac3 100644 --- a/packages/angular/cli/src/commands/deploy/cli.ts +++ b/packages/angular/cli/src/commands/deploy/cli.ts @@ -39,5 +39,5 @@ export default class DeployCommandModule command = 'deploy [project]'; 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.'; } diff --git a/packages/angular/cli/src/commands/deploy/long-description.md b/packages/angular/cli/src/commands/deploy/long-description.md index 0436390680a4..53a2253be42b 100644 --- a/packages/angular/cli/src/commands/deploy/long-description.md +++ b/packages/angular/cli/src/commands/deploy/long-description.md @@ -1,5 +1,6 @@ The command takes an optional project name, as specified in the `projects` section of the `angular.json` workspace configuration file. -When a project name is not supplied, executes the `deploy` builder for the default project. +When a project name is not supplied, executes the `deploy` builder for the only project that has a `deploy` target, +or for the project in the current working directory. To use the `ng deploy` command, use `ng add` to add a package that implements deployment capabilities to your favorite platform. Adding the package automatically updates your workspace configuration, adding a deployment diff --git a/packages/angular/cli/src/commands/new/long-description.md b/packages/angular/cli/src/commands/new/long-description.md index 1166f974887a..e211dadb5f35 100644 --- a/packages/angular/cli/src/commands/new/long-description.md +++ b/packages/angular/cli/src/commands/new/long-description.md @@ -1,4 +1,4 @@ -Creates and initializes a new Angular application that is the default project for a new workspace. +Creates and initializes a new Angular workspace with an initial application. Provides interactive prompts for optional configuration, such as adding routing support. All prompts can safely be allowed to default. From 5ab5ece088610d2a923f3344ea48dbca1e8c2911 Mon Sep 17 00:00:00 2001 From: Shuaib Hasan Akib <48770016+MeAkib@users.noreply.github.com> Date: Mon, 19 Oct 2026 14:33:46 +0600 Subject: [PATCH 2/2] fixup! docs(@angular/cli): remove references to the default project --- packages/angular/cli/src/commands/deploy/cli.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/angular/cli/src/commands/deploy/cli.ts b/packages/angular/cli/src/commands/deploy/cli.ts index da333725cac3..4dc270bdf49c 100644 --- a/packages/angular/cli/src/commands/deploy/cli.ts +++ b/packages/angular/cli/src/commands/deploy/cli.ts @@ -39,5 +39,6 @@ export default class DeployCommandModule command = 'deploy [project]'; override longDescription = longDescription; describe = - '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.'; }