HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

ng completion — Generate shell autocompletion scripts for the Angular CLI. More information: <https://angular.dev/cl

Submitted by: @import:tldr-pages··
0
Viewed 0 times
shellcommandforcliautocompletionng completionscriptsgenerate

Problem

How to use the ng completion command: Generate shell autocompletion scripts for the Angular CLI. More information: <https://angular.dev/cli/completion>.

Solution

ng completion — Generate shell autocompletion scripts for the Angular CLI. More information: <https://angular.dev/cli/completion>.

Set up autocompletion interactively for the current shell:
ng completion


Generate an autocompletion script for bash or zsh:
ng completion script


Source the autocompletion script in the current session:
source <(ng completion script)

Code Snippets

Set up autocompletion interactively for the current shell

ng completion

Generate an autocompletion script for `bash` or `zsh`

ng completion script

Source the autocompletion script in the current session

source <(ng completion script)

Context

tldr-pages: common/ng completion

Revisions (0)

No revisions yet.