ng help

简介: 中文翻译ng helpng build 构建您的应用程序并将其放入输出路径(dist /默认情况下)。别名:b--target(String)(默认值:开发)定义构建目标。

中文翻译

ng help

ng build <options ...>

构建您的应用程序并将其放入输出路径(dist /默认情况下)。

别名:b

--target(String)(默认值:开发)定义构建目标。

别名:-t <value>,-dev(--target = development),-prod(--target = production),--

target
<value>
--environment(String)定义构建环境。

别名:-e <value>,--environment <value>

--output-path(Path)要放置输出的路径。

别名:-op <value>,--

outputPath
<value>
--aot(Boolean)构建使用时间编译。

别名:-aot

--sourcemaps(Boolean)输出源地图。

别名:-sm,--sourcemap,--sourcemaps

--vendor-chunk(Boolean)使用仅包含供应商库的单独的包。

别名:-vc,--vendorChunk

--common-chunk(Boolean)(默认值:true)使用单独的包含多个捆绑包中使用的代码。

别名:-cc,--commonChunk

--base-href(String)正在构建的应用程序的基本URL。

别名:-bh <value>,--baseHref <value> --deploy

-url(String)将部署文件的URL。

别名:-d <value>,--deployUrl <value>

--verbose(Boolean)(默认值:false)向输出日志记录添加更多详细信息。

别名:-v,--

verbose --progress(Boolean)(默认值:true)在建立时将进度记录到控制台。

别名:-pr,--progress

--i18n-file(String)用于i18n的本地化文件。

别名:--i18nFile <value>

--i18n-format(String)使用-i18n-file指定的本地化文件的格式。

别名:--i18nFormat <value>

--locale(String)要用于i18n的区域设置。

别名:--locale <value> --extract

-css(Boolean)将css从全局样式提取到css文件而不是js一个。

别名:-ec,--

extractCss --watch(Boolean)(默认值:false)文件更改时运行构建。

别名:-w,--watch

--output-hashing = none | all | media | bundles(String)定义输出文件名cache-busting散列模式。

别名:-oh <value>,--outputHashing <value>

--poll(Number)启用并定义查看轮询时间段(毫秒)的文件。

别名:-poll <value>

--app(String)指定要使用的应用程序名称或索引。

别名:-a <value>,-app <value>

--delete-output-path(Boolean)(默认值:true)删除生成前的输出路径。

别名:-dop,

--
deleteOutputPath
--preserve-symlinks(Boolean)(默认值:false)解析模块时请勿使用实际路径。

别名:--preserveSymlinks

--extract-licenses(Boolean)(默认值:true)在单独的文件中提取所有许可证,仅在生产构建的情况下。

别名:--extractLicenses

--show-circular-dependencies(Boolean)(默认值:true)在构建上显示循环依赖性警告。

别名:-scd,--showCircularDependencies

--build-optimizer(Boolean)(默认值:false)(实验)使用时,启用@ angular-devkit / build-optimizer优化

--aot

别名:--buildOptimizer

--named-chunks(Boolean)为延迟加载的块使用文件名。

别名:-NC,--namedChunks

--stats-JSON(布尔值)(默认值:false)生成一个

stats.json
其可以使用工具,如被分析的文件:

webpack-bundle-analyzer

[https://webpack.github.io/analyse

](https://webpack.github.io/analyse)。

别名:--statsJson

ng完成<options ...>

将自动完成功能添加到

ng
命令和子命令。

--all(Boolean)(默认值:true)生成与bash和zsh兼容的完成脚本。

别名:-a,-all

--bash(Boolean)(默认值:false)为bash生成完成脚本。

别名:-b,-bash

--zsh(Boolean)(默认值:false)为zsh生成完成脚本。

别名:-z,-zsh

ng doc <keyword> <options ...>

打开给定关键字的Angular API文档。

--search(Boolean)(默认值:false)搜索整个angular.io而不仅仅是api。

别名:-s,--search

ng e2e <options ...>

在现有项目中运行e2e测试。

别名:e

--target(String)(默认值:开发)定义构建目标。

别名:-t <value>,-dev(--target = development),-prod(--target = production),--

target
<value>
--environment(String)定义构建环境。

别名:-e <value>,--environment <value>

--output-path(Path)要放置输出的路径。

别名:-op <value>,--

outputPath
<value>
--aot(Boolean)构建使用时间编译。

别名:-aot

--sourcemaps(Boolean)输出源地图。

别名:-sm,--

sourcemap,--sourcemaps --vendor-chunk(Boolean)使用仅包含供应商库的单独包。

别名:-vc,--vendorChunk

--common-chunk(Boolean)(默认值:true)使用单独的包含多个捆绑包中使用的代码。

别名:-cc,--commonChunk

--base-href(String)正在构建的应用程序的基本URL。

别名:-bh <value>,--baseHref <value> --deploy

-url(String)将部署文件的URL。

别名:-d <value>,--deployUrl <value>

--verbose(Boolean)(默认值:false)向输出日志记录添加更多详细信息。

别名:-v,--

verbose --progress(Boolean)(默认值:true)在建立时将进度记录到控制台。

别名:-pr,--progress

--i18n-file(String)用于i18n的本地化文件。

别名:--i18nFile <value>

--i18n-format(String)使用--i18n-file指定的本地化文件的格式。

别名:--i18nFormat <value>

--locale(String)要用于i18n的区域设置。

别名:--locale <value> --extract

-css(Boolean)将css从全局样式提取到css文件而不是js一个。

别名:-ec,--

extractCss --watch(Boolean)(默认值:false)文件更改时运行构建。

别名:-w,--watch

--output-hashing = none | all | media | bundles(String)定义输出文件名cache-busting散列模式。

别名:-oh <value>,--

outputHashing
<value>
--poll(Number)启用并定义查看轮询时间段(毫秒)的文件。

别名:-poll <value>

--app(String)指定要使用的应用程序名称或索引。

别名:-a <value>,-app <value>

--delete-output-path(Boolean)(默认值:true)删除生成前的输出路径。

别名:-dop,

--
deleteOutputPath
--preserve-symlinks(Boolean)(默认值:false)解析模块时请勿使用实际路径。

别名:--preserveSymlinks

--extract-licenses(Boolean)(默认值:true)在单独的文件中提取所有许可证,仅在生产构建的情况下。

别名:--extractLicenses

--show-circular-dependencies(Boolean)(默认值:true)在构建上显示循环依赖性警告。

别名:-scd,--showCircularDependencies

--build-optimizer(Boolean)(默认值:false)(实验)使用时,启用@ angular-devkit / build-optimizer优化

--aot

别名:--buildOptimizer

--named-chunks(Boolean)为延迟加载的块使用文件名。

别名:-nc,--namedChunks

--port(Number)(默认值:0)用于提供应用程序的端口。

别名:-p <value>,-port <value>

--host(String)(默认值:localhost)默认情况下仅侦听localhost。

别名:-H <value>,-

host
<value>
--proxy-config(路径)代理配置文件。

别名:-pc <value>,--proxyConfig <value>

--ssl(Boolean)(默认值:false)使用HTTPS进行服务。

别名:-ssl

--ssl-key(String)(默认值:ssl / server.key)用于提供HTTPS的SSL密钥。

别名:--sslKey <value>

--ssl-cert(String)(默认值:ssl / server.crt)用于提供HTTPS的SSL证书。

别名:--sslCert <value>

--open(Boolean)(默认值:false)在默认浏览器中打开url。

别名:-o,

-open --live-reload(Boolean)(默认值:true)是否使用live-reload重新加载页面。

别名:-lr,--liveReload

--public-host(String)指定浏览器客户端将使用的URL。

别名:--live-reload-client <value>,--publicHost <value>

--disable-host-check(Boolean)(默认值:false)不验证连接的客户端是允许的主机的一部分。

别名:--disableHostCheck

--hmr(Boolean)(默认值:false)启用热模块更换。

别名:-hmr

--config(String)使用特定的配置文件。
默认为angular-cli.json中的量角器配置文件。

别名:-c <value>,--

config
<value>
--specs(Array)(默认

:)覆盖量角器配置中的specs。
可以通过重复标志(ng e2e --specs = spec1.ts --specs = spec2.ts)发送多个规格。

别名:-sp <value>,--specs <value>

--element-explorer(Boolean)(默认值:false)启动Protector的Element Explorer进行调试。

别名:-ee,--elementExplorer

--webdriver-update(Boolean)(默认值:true)尝试更新webdriver。

别名:-wu,--webdriverUpdate

--serve(Boolean)(默认值:true)编译并提供服务。
所有非重新加载相关的服务选项也可用(例如--port = 4400)。

别名:-s,--serve

ng弹出<选项...>

弹出您的应用程序并输出正确的Webpack配置和脚本。

--target(String)(默认:开发)定义构建目标。

别名:-t <value>,-dev(--target = development),-prod(--target = production),--

target
<value>
--environment(String)定义构建环境。

别名:-e <value>,--environment <value>

--output-path(Path)要放置输出的路径。

别名:-op <value>,--

outputPath
<value>
--aot(Boolean)构建使用时间编译。

别名:-aot

--sourcemaps(Boolean)输出源地图。

别名:-sm,--sourcemap,

别名:-vc,--vendorChunk

--common-chunk(Boolean)(默认值:true)使用单独的包含多个捆绑包中使用的代码。

别名:-cc,--commonChunk

--base-href(String)正在构建的应用程序的基本URL。

别名:-bh <value>,--baseHref <value> --deploy

-url(String)将部署文件的URL。

别名:-d <value>,--deployUrl <value>

--verbose(Boolean)(默认值:false)向输出日志记录添加更多详细信息。

别名:-v,--

verbose --progress(Boolean)(默认值:true)在建立时将进度记录到控制台。

别名:-pr,--progress

--i18n-file(String)用于i18n的本地化文件。

别名:--i18nFile <value>

--i18n-format(String)使用--i18n-file指定的本地化文件的格式。

别名:--i18nFormat <value>

--locale(String)要用于i18n的区域设置。

别名:--locale <value> --extract

-css(Boolean)将css从全局样式提取到css文件而不是js一个。

别名:-ec,--

extractCss --watch(Boolean)(默认值:false)文件更改时运行构建。

别名:-w,--watch

--output-hashing = none | all | media | bundles(String)定义输出文件名cache-busting散列模式。

别名:-oh <value>,--

outputHashing
<value>
--poll(Number)启用并定义查看轮询时间段(毫秒)的文件。

别名:-poll <value>

--delete-output-path(Boolean)(默认值:true)在构建之前删除输出路径。

别名:-dop,

--
deleteOutputPath
--preserve-symlinks(Boolean)(默认值:false)解析模块时请勿使用实际路径。

别名:--preserveSymlinks

--extract-licenses(Boolean)(默认值:true)在单独的文件中提取所有许可证,仅在生产构建的情况下。

别名:--extractLicenses

--show-circular-dependencies(Boolean)(默认值:true)在构建上显示循环依赖性警告。

别名:-scd,--showCircularDependencies

--build-optimizer(Boolean)(默认值:false)(实验)使用时,启用@ angular-devkit / build-optimizer优化

--aot

别名:--buildOptimizer

--named-chunks(Boolean)为延迟加载的块使用文件名。

别名:-nc,--namedChunks

--force(Boolean)覆盖任何已存在的webpack.config.js和npm脚本。

别名:--

force --app(String)指定要使用的应用程序名称。

别名:-a <value>,-app <value>

ng生成<蓝图> <选项...>

根据蓝图生成和/或修改文件。

别名:g

--dry-run(Boolean)(默认值:false)在不进行任何更改的情况下运行。

别名:-d,--dryRun

--lint-fix(Boolean)使用lint在生成后修复文件。

别名:-lf,--lintFix

--verbose(Boolean)(默认值:false)向输出日志记录添加更多详细信息。

别名:-v,--verbose

ng get <options ...>

从配置获取值。
示例:ng get [key]

--global(Boolean)(默认值:false)获取全局配置中的值(在您的主目录中)。

别名: - 全球

ng help <command-name(默认值:all)>

显示CLI的帮助。

ng lint <options ...>

现有项目中的Lints代码。

别名:l

--fix(Boolean)(默认值:false)修复linting错误(可能覆盖linted文件)。

别名:-fix

--type-check(Boolean)(默认值:false)控制linting的类型检查。

别名:--typeCheck

--force(Boolean)(默认值:false)即使存在linting错误也会成功。

别名:--force

--format(String)(默认:散文)输出格式(散文,json,时尚,详细,pmd,msbuild,checkstyle,vso,文件列表)。

别名:-t <value>,--format <value>

ng new <options ...>

创建一个新的目录和一个新的Angular应用程序,例如。
“ng new [name]”。

别名:n

--dry-run(Boolean)(默认值:false)运行而不进行任何更改。
将列出运行“ng new”时所创建的所有文件。

别名:-d,--dryRun

--verbose(Boolean)(默认值:false)向输出日志记录添加更多详细信息。

别名:-v,--verbose

--skip-install(Boolean)(默认值:false)跳过安装软件包。

别名:-si,--skipInstall

--skip-git(Boolean)(默认值:false)跳过初始化git存储库。

别名:-sg,--skipGit

--skip-tests(Boolean)(默认值:false)跳过创建规范文件。

别名:-st,--skipTests

--skip-commit(Boolean)(默认值:false)跳过提交第一个提交到git。

别名:-sc,--skipCommit

--directory(String)用于创建应用程序的目录名
。aliases

:-dir <value>,--directory <value>

--source-dir(String)(默认值:src)源目录的名称。
您可以稍后更改“.angular-cli.json”(apps [0] .root)中的值。

别名:-sd <value>,--

sourceDir
<value>
--style(String)(默认值:css)样式文件默认扩展名。
可能的值:css,scss,less,sass,styl(stylus)。
您可以稍后更改“.angular-cli.json”(defaults.styleExt)中的值。

别名:--style <value>

--prefix(String)(默认值:app)用于所有组件选择器的前缀。
您可以稍后更改“.angular-cli.json”(apps [0] .prefix)中的值。

别名:-p <value>,--prefix <value>

--routing(Boolean)(默认值:false)生成路由模块。

别名:--routing

--inline-style(Boolean)(默认值:false)应该有一个内联样式。

别名:-is,--inlineStyle

--inline-template(Boolean)(默认值:false)应该有一个内联模板。

别名:

-it
,--
inlineTemplate --minimal(Boolean)(默认值:false)应该创建一个最小的应用程序。

别名: - 最小

ng服务<选项...>

构建并提供应用程序,重建文件更改。

别名:server,s

--target(String)(默认值:development)定义构建目标。

别名:-t <value>,-dev(--target = development),-prod(--target = production),--

target
<value>
--environment(String)定义构建环境。

别名:-e <value>,--environment <value>

--output-path(Path)要放置输出的路径。

别名:-op <value>,--

outputPath
<value>
--aot(Boolean)构建使用时间编译。

别名:-aot

--sourcemaps(Boolean)输出源地图。

别名:-sm,--sourcemap,--sourcemaps

--vendor-chunk(Boolean)使用仅包含供应商库的单独的包。

别名:-vc,--vendorChunk

--common-chunk(Boolean)(默认值:true)使用单独的包含多个捆绑包中使用的代码。

别名:-cc,--commonChunk

--base-href(String)正在构建的应用程序的基本URL。

别名:-bh <value>,--baseHref <value> --deploy

-url(String)将部署文件的URL。

别名:-d <value>,--deployUrl <value>

--verbose(Boolean)(默认值:false)向输出日志记录添加更多详细信息。

别名:-v,--

verbose --progress(Boolean)(默认值:true)在建立时将进度记录到控制台。

别名:-pr,--progress

--i18n-file(String)用于i18n的本地化文件。

别名:--i18nFile <value>

--i18n-format(String)使用-i18n-file指定的本地化文件的格式。

别名:--i18nFormat <value>

--locale(String)要用于i18n的区域设置。

别名:--locale <value> --extract

-css(Boolean)将css从全局样式提取到css文件而不是js一个。

别名:-ec,--

extractCss --watch(Boolean)(默认值:true)在更改时重建。

别名:-w,--watch

--output-hashing = none | all | media | bundles(String)定义输出文件名cache-busting散列模式。

别名:-oh <value>,--outputHashing <value>

别名:-poll <value>

--app(String)指定要使用的应用程序名称或索引。

别名:-a <value>,-app <value>

--delete-output-path(Boolean)(默认值:true)删除生成前的输出路径。

别名:-dop,

--
deleteOutputPath
--preserve-symlinks(Boolean)(默认值:false)解析模块时请勿使用实际路径。

别名:--preserveSymlinks

--extract-licenses(Boolean)(默认值:true)在单独的文件中提取所有许可证,仅在生产构建的情况下。

别名:--extractLicenses

--show-circular-dependencies(Boolean)(默认值:true)在构建上显示循环依赖性警告。

别名:-scd,--showCircularDependencies

--build-optimizer(Boolean)(默认值:false)(实验)使用时,启用@ angular-devkit / build-optimizer优化

--aot

别名:--buildOptimizer

--named-chunks(Boolean)为延迟加载的块使用文件名。

别名:-nc,--namedChunks

--port(Number)(默认值:4200)要监听的端口。

别名:-p <value>,-port <value>

--host(String)(默认值:localhost)默认情况下仅侦听localhost。

别名:-H <value>,-

host
<value>
--proxy-config(路径)代理配置文件。

别名:-pc <value>,--proxyConfig <value>

--ssl(Boolean)(默认值:false)使用HTTPS进行服务。

别名:-ssl

--ssl-key(String)(默认值:ssl / server.key)用于提供HTTPS的SSL密钥。

别名:--sslKey <value>

--ssl-cert(String)(默认值:ssl / server.crt)用于提供HTTPS的SSL证书。

别名:--sslCert <value>

--open(Boolean)(默认值:false)在默认浏览器中打开url。

别名:-o,

-open --live-reload(Boolean)(默认值:true)是否使用live-reload重新加载页面。

别名:-lr,--liveReload

--public-host(String)指定浏览器客户端将使用的URL。

别名:--live-reload-client <value>,--publicHost <value>

--disable-host-check(Boolean)(默认值:false)不验证连接的客户端是允许的主机的一部分。

别名:--disableHostCheck

--hmr(Boolean)(默认值:false)启用热模块更换。

别名:-hmr

ng set <options ...>

在配置中设置一个值。

--global(Boolean)(默认值:false)设置全局配置中的值,而不是在项目中。

别名:-g,--global

ng测试<选项...>

在现有项目中运行单元测试。

别名:t

--watch(Boolean)文件更改时运行构建。

别名:-w,--watch

--code-coverage(Boolean)(默认值:false)覆盖率报告将在coverage /目录中。

别名:-cc,--codeCoverage

--config(String)使用特定的配置文件。
默认为.mat-cli.json中的karma配置文件。

别名:-c <value>,--config <value>

--single-run(Boolean)单次运行测试。

别名:-sr,--

singleRun --progress(Boolean)(默认值:true)在进程中将进度记录到控制台。

别名:--progress

--browsers(String)覆盖运行哪些浏览器测试。

别名:--browsers <value>

--colors(Boolean)启用或禁用输出(记者和日志)中的颜色。

别名:--colors

--log-level(String)记录级别。

别名:--logLevel <value>

--port(Number)Web服务器将侦听的端口。

别名:-port <value>

--reporters(String)要使用的记者名单。

别名:--reporters <value>

--sourcemaps(Boolean)(默认值:true)输出源映射。

别名:-sm,--

sourcemap
,--
sourcemaps --poll(Number)启用并定义查看轮询时间段(毫秒)的文件。

别名:-poll <value>

--environment(String)定义构建环境。

别名:-e <value>,--environment <

--app(String)指定要使用的应用程序名称。

别名:-a <value>,-app <value>

ng版本<options ...>

输出Angular CLI版本。

别名:v,--version,-v

--verbose(Boolean)(默认值:false)向输出日志记录添加更多详细信息。

别名:--verbose

ng xi18n <options ...>

从源代码中提取i18n消息。

--i18n-format(String)(默认值:xlf)生成文件的输出格式。

别名:-f <value>,-xmb(--i18n-format = xmb),-xlf(--i18n-format = xlf),--xliff(--i18n-format = xlf),--i18nFormat <value >

--output-path(Path)(默认值:null)放置输出的路径。

别名:-op <value>,--outputPath <value>

--verbose(Boolean)(默认值:false)向输出日志记录添加更多详细信息。

别名:--

verbose --progress(Boolean)(默认值:true)运行时将进度记录到控制台。

别名:--progress

--app(String)指定要使用的应用程序名称。

别名:-a <value>,-app <value>

--locale(String)指定应用程序的源语言。

别名:-l <value>,--locale <value>

--out-file(String)要输出的文件的名称。

别名:-of <value>,--outFile <value>

英文原文

ng help
ng build <options...>
Builds your app and places it into the output path (dist/ by default).
aliases: b
--target (String) (Default: development) Defines the build target.
aliases: -t <value>, -dev (--target=development), -prod (--target=production), --target <value>
--environment (String) Defines the build environment.
aliases: -e <value>, --environment <value>
--output-path (Path) Path where output will be placed.
aliases: -op <value>, --outputPath <value>
--aot (Boolean) Build using Ahead of Time compilation.
aliases: -aot
--sourcemaps (Boolean) Output sourcemaps.
aliases: -sm, --sourcemap, --sourcemaps
--vendor-chunk (Boolean) Use a separate bundle containing only vendor libraries.
aliases: -vc, --vendorChunk
--common-chunk (Boolean) (Default: true) Use a separate bundle containing code used across multiple bundles.
aliases: -cc, --commonChunk
--base-href (String) Base url for the application being built.
aliases: -bh <value>, --baseHref <value>
--deploy-url (String) URL where files will be deployed.
aliases: -d <value>, --deployUrl <value>
--verbose (Boolean) (Default: false) Adds more details to output logging.
aliases: -v, --verbose
--progress (Boolean) (Default: true) Log progress to the console while building.
aliases: -pr, --progress
--i18n-file (String) Localization file to use for i18n.
aliases: --i18nFile <value>
--i18n-format (String) Format of the localization file specified with --i18n-file.
aliases: --i18nFormat <value>
--locale (String) Locale to use for i18n.
aliases: --locale <value>
--extract-css (Boolean) Extract css from global styles onto css files instead of js ones.
aliases: -ec, --extractCss
--watch (Boolean) (Default: false) Run build when files change.
aliases: -w, --watch
--output-hashing=none|all|media|bundles (String) Define the output filename cache-busting hashing mode.
aliases: -oh <value>, --outputHashing <value>
--poll (Number) Enable and define the file watching poll time period (milliseconds).
aliases: -poll <value>
--app (String) Specifies app name or index to use.
aliases: -a <value>, -app <value>
--delete-output-path (Boolean) (Default: true) Delete output path before build.
aliases: -dop, --deleteOutputPath
--preserve-symlinks (Boolean) (Default: false) Do not use the real path when resolving modules.
aliases: --preserveSymlinks
--extract-licenses (Boolean) (Default: true) Extract all licenses in a separate file, in the case of production builds only.
aliases: --extractLicenses
--show-circular-dependencies (Boolean) (Default: true) Show circular dependency warnings on builds.
aliases: -scd, --showCircularDependencies
--build-optimizer (Boolean) (Default: false) (Experimental) Enables @angular-devkit/build-optimizer optimizations when using --aot.
aliases: --buildOptimizer
--named-chunks (Boolean) Use file name for lazy loaded chunks.
aliases: -nc, --namedChunks
--stats-json (Boolean) (Default: false) Generates a stats.json file which can be analyzed using tools such as: webpack-bundle-analyzer or https://webpack.github.io/analyse.
aliases: --statsJson

ng completion <options...>
Adds autocomplete functionality to ng commands and subcommands.
--all (Boolean) (Default: true) Generate a completion script compatible with both bash and zsh.
aliases: -a, -all
--bash (Boolean) (Default: false) Generate a completion script for bash.
aliases: -b, -bash
--zsh (Boolean) (Default: false) Generate a completion script for zsh.
aliases: -z, -zsh

ng doc <keyword> <options...>
Opens the official Angular API documentation for a given keyword.
--search (Boolean) (Default: false) Search whole angular.io instead of just api.
aliases: -s, --search

ng e2e <options...>
Run e2e tests in existing project.
aliases: e
--target (String) (Default: development) Defines the build target.
aliases: -t <value>, -dev (--target=development), -prod (--target=production), --target <value>
--environment (String) Defines the build environment.
aliases: -e <value>, --environment <value>
--output-path (Path) Path where output will be placed.
aliases: -op <value>, --outputPath <value>
--aot (Boolean) Build using Ahead of Time compilation.
aliases: -aot
--sourcemaps (Boolean) Output sourcemaps.
aliases: -sm, --sourcemap, --sourcemaps
--vendor-chunk (Boolean) Use a separate bundle containing only vendor libraries.
aliases: -vc, --vendorChunk
--common-chunk (Boolean) (Default: true) Use a separate bundle containing code used across multiple bundles.
aliases: -cc, --commonChunk
--base-href (String) Base url for the application being built.
aliases: -bh <value>, --baseHref <value>
--deploy-url (String) URL where files will be deployed.
aliases: -d <value>, --deployUrl <value>
--verbose (Boolean) (Default: false) Adds more details to output logging.
aliases: -v, --verbose
--progress (Boolean) (Default: true) Log progress to the console while building.
aliases: -pr, --progress
--i18n-file (String) Localization file to use for i18n.
aliases: --i18nFile <value>
--i18n-format (String) Format of the localization file specified with --i18n-file.
aliases: --i18nFormat <value>
--locale (String) Locale to use for i18n.
aliases: --locale <value>
--extract-css (Boolean) Extract css from global styles onto css files instead of js ones.
aliases: -ec, --extractCss
--watch (Boolean) (Default: false) Run build when files change.
aliases: -w, --watch
--output-hashing=none|all|media|bundles (String) Define the output filename cache-busting hashing mode.
aliases: -oh <value>, --outputHashing <value>
--poll (Number) Enable and define the file watching poll time period (milliseconds).
aliases: -poll <value>
--app (String) Specifies app name or index to use.
aliases: -a <value>, -app <value>
--delete-output-path (Boolean) (Default: true) Delete output path before build.
aliases: -dop, --deleteOutputPath
--preserve-symlinks (Boolean) (Default: false) Do not use the real path when resolving modules.
aliases: --preserveSymlinks
--extract-licenses (Boolean) (Default: true) Extract all licenses in a separate file, in the case of production builds only.
aliases: --extractLicenses
--show-circular-dependencies (Boolean) (Default: true) Show circular dependency warnings on builds.
aliases: -scd, --showCircularDependencies
--build-optimizer (Boolean) (Default: false) (Experimental) Enables @angular-devkit/build-optimizer optimizations when using --aot.
aliases: --buildOptimizer
--named-chunks (Boolean) Use file name for lazy loaded chunks.
aliases: -nc, --namedChunks
--port (Number) (Default: 0) The port to use to serve the application.
aliases: -p <value>, -port <value>
--host (String) (Default: localhost) Listens only on localhost by default.
aliases: -H <value>, -host <value>
--proxy-config (Path) Proxy configuration file.
aliases: -pc <value>, --proxyConfig <value>
--ssl (Boolean) (Default: false) Serve using HTTPS.
aliases: -ssl
--ssl-key (String) (Default: ssl/server.key) SSL key to use for serving HTTPS.
aliases: --sslKey <value>
--ssl-cert (String) (Default: ssl/server.crt) SSL certificate to use for serving HTTPS.
aliases: --sslCert <value>
--open (Boolean) (Default: false) Opens the url in default browser.
aliases: -o, -open
--live-reload (Boolean) (Default: true) Whether to reload the page on change, using live-reload.
aliases: -lr, --liveReload
--public-host (String) Specify the URL that the browser client will use.
aliases: --live-reload-client <value>, --publicHost <value>
--disable-host-check (Boolean) (Default: false) Don't verify connected clients are part of allowed hosts.
aliases: --disableHostCheck
--hmr (Boolean) (Default: false) Enable hot module replacement.
aliases: -hmr
--config (String) Use a specific config file. Defaults to the protractor config file in angular-cli.json.
aliases: -c <value>, --config <value>
--specs (Array) (Default: ) Override specs in the protractor config. Can send in multiple specs by repeating flag (ng e2e --specs=spec1.ts --specs=spec2.ts).
aliases: -sp <value>, --specs <value>
--element-explorer (Boolean) (Default: false) Start Protractor's Element Explorer for debugging.
aliases: -ee, --elementExplorer
--webdriver-update (Boolean) (Default: true) Try to update webdriver.
aliases: -wu, --webdriverUpdate
--serve (Boolean) (Default: true) Compile and Serve the app. All non-reload related serve options are also available (e.g. --port=4400).
aliases: -s, --serve

ng eject <options...>
Ejects your app and output the proper webpack configuration and scripts.
--target (String) (Default: development) Defines the build target.
aliases: -t <value>, -dev (--target=development), -prod (--target=production), --target <value>
--environment (String) Defines the build environment.
aliases: -e <value>, --environment <value>
--output-path (Path) Path where output will be placed.
aliases: -op <value>, --outputPath <value>
--aot (Boolean) Build using Ahead of Time compilation.
aliases: -aot
--sourcemaps (Boolean) Output sourcemaps.
aliases: -sm, --sourcemap, --sourcemaps
--vendor-chunk (Boolean) Use a separate bundle containing only vendor libraries.
aliases: -vc, --vendorChunk
--common-chunk (Boolean) (Default: true) Use a separate bundle containing code used across multiple bundles.
aliases: -cc, --commonChunk
--base-href (String) Base url for the application being built.
aliases: -bh <value>, --baseHref <value>
--deploy-url (String) URL where files will be deployed.
aliases: -d <value>, --deployUrl <value>
--verbose (Boolean) (Default: false) Adds more details to output logging.
aliases: -v, --verbose
--progress (Boolean) (Default: true) Log progress to the console while building.
aliases: -pr, --progress
--i18n-file (String) Localization file to use for i18n.
aliases: --i18nFile <value>
--i18n-format (String) Format of the localization file specified with --i18n-file.
aliases: --i18nFormat <value>
--locale (String) Locale to use for i18n.
aliases: --locale <value>
--extract-css (Boolean) Extract css from global styles onto css files instead of js ones.
aliases: -ec, --extractCss
--watch (Boolean) (Default: false) Run build when files change.
aliases: -w, --watch
--output-hashing=none|all|media|bundles (String) Define the output filename cache-busting hashing mode.
aliases: -oh <value>, --outputHashing <value>
--poll (Number) Enable and define the file watching poll time period (milliseconds).
aliases: -poll <value>
--delete-output-path (Boolean) (Default: true) Delete output path before build.
aliases: -dop, --deleteOutputPath
--preserve-symlinks (Boolean) (Default: false) Do not use the real path when resolving modules.
aliases: --preserveSymlinks
--extract-licenses (Boolean) (Default: true) Extract all licenses in a separate file, in the case of production builds only.
aliases: --extractLicenses
--show-circular-dependencies (Boolean) (Default: true) Show circular dependency warnings on builds.
aliases: -scd, --showCircularDependencies
--build-optimizer (Boolean) (Default: false) (Experimental) Enables @angular-devkit/build-optimizer optimizations when using --aot.
aliases: --buildOptimizer
--named-chunks (Boolean) Use file name for lazy loaded chunks.
aliases: -nc, --namedChunks
--force (Boolean) Overwrite any webpack.config.js and npm scripts already existing.
aliases: --force
--app (String) Specifies app name to use.
aliases: -a <value>, -app <value>

ng generate <blueprint> <options...>
Generates and/or modifies files based on a blueprint.
aliases: g
--dry-run (Boolean) (Default: false) Run through without making any changes.
aliases: -d, --dryRun
--lint-fix (Boolean) Use lint to fix files after generation.
aliases: -lf, --lintFix
--verbose (Boolean) (Default: false) Adds more details to output logging.
aliases: -v, --verbose

ng get <options...>
Get a value from the configuration. Example: ng get [key]
--global (Boolean) (Default: false) Get the value in the global configuration (in your home directory).
aliases: --global

ng help <command-name (Default: all)>
Shows help for the CLI.

ng lint <options...>
Lints code in existing project.
aliases: l
--fix (Boolean) (Default: false) Fixes linting errors (may overwrite linted files).
aliases: -fix
--type-check (Boolean) (Default: false) Controls the type check for linting.
aliases: --typeCheck
--force (Boolean) (Default: false) Succeeds even if there was linting errors.
aliases: --force
--format (String) (Default: prose) Output format (prose, json, stylish, verbose, pmd, msbuild, checkstyle, vso, fileslist).
aliases: -t <value>, --format <value>

ng new <options...>
Creates a new directory and a new Angular app eg. "ng new [name]".
aliases: n
--dry-run (Boolean) (Default: false) Run through without making any changes. Will list all files that would have been created when running "ng new".
aliases: -d, --dryRun
--verbose (Boolean) (Default: false) Adds more details to output logging.
aliases: -v, --verbose
--skip-install (Boolean) (Default: false) Skip installing packages.
aliases: -si, --skipInstall
--skip-git (Boolean) (Default: false) Skip initializing a git repository.
aliases: -sg, --skipGit
--skip-tests (Boolean) (Default: false) Skip creating spec files.
aliases: -st, --skipTests
--skip-commit (Boolean) (Default: false) Skip committing the first commit to git.
aliases: -sc, --skipCommit
--directory (String) The directory name to create the app in.
aliases: -dir <value>, --directory <value>
--source-dir (String) (Default: src) The name of the source directory. You can later change the value in ".angular-cli.json" (apps[0].root).
aliases: -sd <value>, --sourceDir <value>
--style (String) (Default: css) The style file default extension. Possible values: css, scss, less, sass, styl(stylus). You can later change the value in ".angular-cli.json" (defaults.styleExt).
aliases: --style <value>
--prefix (String) (Default: app) The prefix to use for all component selectors. You can later change the value in ".angular-cli.json" (apps[0].prefix).
aliases: -p <value>, --prefix <value>
--routing (Boolean) (Default: false) Generate a routing module.
aliases: --routing
--inline-style (Boolean) (Default: false) Should have an inline style.
aliases: -is, --inlineStyle
--inline-template (Boolean) (Default: false) Should have an inline template.
aliases: -it, --inlineTemplate
--minimal (Boolean) (Default: false) Should create a minimal app.
aliases: --minimal

ng serve <options...>
Builds and serves your app, rebuilding on file changes.
aliases: server, s
--target (String) (Default: development) Defines the build target.
aliases: -t <value>, -dev (--target=development), -prod (--target=production), --target <value>
--environment (String) Defines the build environment.
aliases: -e <value>, --environment <value>
--output-path (Path) Path where output will be placed.
aliases: -op <value>, --outputPath <value>
--aot (Boolean) Build using Ahead of Time compilation.
aliases: -aot
--sourcemaps (Boolean) Output sourcemaps.
aliases: -sm, --sourcemap, --sourcemaps
--vendor-chunk (Boolean) Use a separate bundle containing only vendor libraries.
aliases: -vc, --vendorChunk
--common-chunk (Boolean) (Default: true) Use a separate bundle containing code used across multiple bundles.
aliases: -cc, --commonChunk
--base-href (String) Base url for the application being built.
aliases: -bh <value>, --baseHref <value>
--deploy-url (String) URL where files will be deployed.
aliases: -d <value>, --deployUrl <value>
--verbose (Boolean) (Default: false) Adds more details to output logging.
aliases: -v, --verbose
--progress (Boolean) (Default: true) Log progress to the console while building.
aliases: -pr, --progress
--i18n-file (String) Localization file to use for i18n.
aliases: --i18nFile <value>
--i18n-format (String) Format of the localization file specified with --i18n-file.
aliases: --i18nFormat <value>
--locale (String) Locale to use for i18n.
aliases: --locale <value>
--extract-css (Boolean) Extract css from global styles onto css files instead of js ones.
aliases: -ec, --extractCss
--watch (Boolean) (Default: true) Rebuild on change.
aliases: -w, --watch
--output-hashing=none|all|media|bundles (String) Define the output filename cache-busting hashing mode.
aliases: -oh <value>, --outputHashing <value>
--poll (Number) Enable and define the file watching poll time period (milliseconds).
aliases: -poll <value>
--app (String) Specifies app name or index to use.
aliases: -a <value>, -app <value>
--delete-output-path (Boolean) (Default: true) Delete output path before build.
aliases: -dop, --deleteOutputPath
--preserve-symlinks (Boolean) (Default: false) Do not use the real path when resolving modules.
aliases: --preserveSymlinks
--extract-licenses (Boolean) (Default: true) Extract all licenses in a separate file, in the case of production builds only.
aliases: --extractLicenses
--show-circular-dependencies (Boolean) (Default: true) Show circular dependency warnings on builds.
aliases: -scd, --showCircularDependencies
--build-optimizer (Boolean) (Default: false) (Experimental) Enables @angular-devkit/build-optimizer optimizations when using --aot.
aliases: --buildOptimizer
--named-chunks (Boolean) Use file name for lazy loaded chunks.
aliases: -nc, --namedChunks
--port (Number) (Default: 4200) Port to listen to for serving.
aliases: -p <value>, -port <value>
--host (String) (Default: localhost) Listens only on localhost by default.
aliases: -H <value>, -host <value>
--proxy-config (Path) Proxy configuration file.
aliases: -pc <value>, --proxyConfig <value>
--ssl (Boolean) (Default: false) Serve using HTTPS.
aliases: -ssl
--ssl-key (String) (Default: ssl/server.key) SSL key to use for serving HTTPS.
aliases: --sslKey <value>
--ssl-cert (String) (Default: ssl/server.crt) SSL certificate to use for serving HTTPS.
aliases: --sslCert <value>
--open (Boolean) (Default: false) Opens the url in default browser.
aliases: -o, -open
--live-reload (Boolean) (Default: true) Whether to reload the page on change, using live-reload.
aliases: -lr, --liveReload
--public-host (String) Specify the URL that the browser client will use.
aliases: --live-reload-client <value>, --publicHost <value>
--disable-host-check (Boolean) (Default: false) Don't verify connected clients are part of allowed hosts.
aliases: --disableHostCheck
--hmr (Boolean) (Default: false) Enable hot module replacement.
aliases: -hmr

ng set <options...>
Set a value in the configuration.
--global (Boolean) (Default: false) Set the value in the global configuration rather than in your project's.
aliases: -g, --global

ng test <options...>
Run unit tests in existing project.
aliases: t
--watch (Boolean) Run build when files change.
aliases: -w, --watch
--code-coverage (Boolean) (Default: false) Coverage report will be in the coverage/ directory.
aliases: -cc, --codeCoverage
--config (String) Use a specific config file. Defaults to the karma config file in .angular-cli.json.
aliases: -c <value>, --config <value>
--single-run (Boolean) Run tests a single time.
aliases: -sr, --singleRun
--progress (Boolean) (Default: true) Log progress to the console while in progress.
aliases: --progress
--browsers (String) Override which browsers tests are run against.
aliases: --browsers <value>
--colors (Boolean) Enable or disable colors in the output (reporters and logs).
aliases: --colors
--log-level (String) Level of logging.
aliases: --logLevel <value>
--port (Number) Port where the web server will be listening.
aliases: -port <value>
--reporters (String) List of reporters to use.
aliases: --reporters <value>
--sourcemaps (Boolean) (Default: true) Output sourcemaps.
aliases: -sm, --sourcemap, --sourcemaps
--poll (Number) Enable and define the file watching poll time period (milliseconds).
aliases: -poll <value>
--environment (String) Defines the build environment.
aliases: -e <value>, --environment <value>
--app (String) Specifies app name to use.
aliases: -a <value>, -app <value>

ng version <options...>
Outputs Angular CLI version.
aliases: v, --version, -v
--verbose (Boolean) (Default: false) Adds more details to output logging.
aliases: --verbose

ng xi18n <options...>
Extracts i18n messages from source code.
--i18n-format (String) (Default: xlf) Output format for the generated file.
aliases: -f <value>, -xmb (--i18n-format=xmb), -xlf (--i18n-format=xlf), --xliff (--i18n-format=xlf), --i18nFormat <value>
--output-path (Path) (Default: null) Path where output will be placed.
aliases: -op <value>, --outputPath <value>
--verbose (Boolean) (Default: false) Adds more details to output logging.
aliases: --verbose
--progress (Boolean) (Default: true) Log progress to the console while running.
aliases: --progress
--app (String) Specifies app name to use.
aliases: -a <value>, -app <value>
--locale (String) Specifies the source language of the application.
aliases: -l <value>, --locale <value>
--out-file (String) Name of the file to output.
aliases: -of <value>, --outFile <value>

相关文章
|
3月前
|
网络协议 虚拟化
一分钟带你安装EVE-NG
Eve-NG是一种网络模拟工具,它可以在虚拟网络环境中测试和验证网络设备和网络安全性。以下是关于Eve-ng安装的步骤和注意事项。 首先,要准备安装Eve-ng,你需要在电脑上安装好虚拟机,虚拟机的安装请自行去网上搜索,小编安装的是VMware Station 17。 接下来,需要准备的安装包。目前网上可以找到的有Pro专业版和Community社区版两个版本。
|
4月前
|
网络协议 虚拟化
EVE-NG安装怎么操作?
Eve-NG是一种网络模拟工具,它可以在虚拟网络环境中测试和验证网络设备和网络安全性。以下是关于Eve-ng安装的步骤和注意事项。 首先,要准备安装Eve-ng,你需要在电脑上安装好虚拟机,虚拟机的安装请自行去网上搜索,小编安装的是VMware Station 17。 接下来,需要准备的安装包。目前网上可以找到的有Pro专业版和Community社区版两个版本。 Eve-ng的专业版本,是收费的,社区版是开源免费的,有着更高可靠性和性能,例如每个实验支持1024个节点数量,而社区版仅有63个,在TCP端口的支持上,专业版支持从1-65000,社区版仅128个,同时专业版还有其他优势
|
API 容器
ng中的ng-content ng-template ng-container
ng中的ng-content ng-template ng-container
94 0
angular29-ng-hide,ng-show
angular29-ng-hide,ng-show
68 0
angular29-ng-hide,ng-show
|
JavaScript 前端开发 测试技术
一文了解 ng-template, ng-content, ng-container, 和 *ngTemplateOutlet的区别
一文了解 ng-template, ng-content, ng-container, 和 *ngTemplateOutlet的区别
126 0
一文了解 ng-template, ng-content, ng-container, 和 *ngTemplateOutlet的区别
|
监控
ng serve 和 ng build 的区别
ng serve 和 ng build 的区别
241 0
ng serve 和 ng build 的区别
|
SQL 开发框架 .NET
ng-template 和 TemplateRef.createEmbeddedView
ng-template 和 TemplateRef.createEmbeddedView
113 0
ng-template 和 TemplateRef.createEmbeddedView
SAP Spartacus 里 ng-template和ng-container的嵌套使用
SAP Spartacus 里 ng-template和ng-container的嵌套使用
SAP Spartacus 里 ng-template和ng-container的嵌套使用
ng-controller and ng-model的工作原理
ng-controller and ng-model的工作原理
ng-controller and ng-model的工作原理