Professional Documents
Culture Documents
Angular - NG Completion
Angular - NG Completion
ng
Description
<TAB> key while in the middle of typing will display various commands
and options available to you. This makes it very easy to discover and
�rst time you use it (v14+). Simply answer "Yes" and the CLI will take
# Serve output...
If you already refused the prompt, it won't ask again. But you can run ng
serve . Ambiguous arguments will show all possible options and their
Manual setup
Some users may have highly customized terminal setups, possibly with
existing con�guration �le for your current shell, or creates one if none
exists. If you want more control over exactly where this con�guration
lives, you can manually set it up by having your shell run at startup:
desired.
Platform support
Angular CLI supports autocompletion for the Bash and Zsh shells on
Global install
Autocompletion works by con�guring your terminal to invoke the
Angular CLI on startup to load the setup script. This means the terminal
must be able to �nd and execute the Angular CLI, typically through a
global install that places the binary on the user's $PATH . If you get
command not found: ng , make sure the CLI is installed globally which
• script
Options
VALUE DEFAULT
OPTION DESCRIPTION
TYPE VALUE
the console.
Completion commands
script
ng completion