Alan 068bb4001d docs: add deprecation and pr note
Docs are deprecated in favor of the the new pages in AIO which are WIP.
2019-01-09 09:14:13 -08:00

104 lines
2.1 KiB
Markdown

<!-- Links in /docs/documentation should NOT have \`.md\` at the end, because they end up in our wiki at release. -->
**Documentation below is for CLI version 6 and we no longer accept PRs to improve this. For version 7 see [here](https://angular.io/cli/generate)**.
# ng generate application
## Overview
`ng generate application [name]` creates an Angular application.
## Alias
app - `ng generate app [name]`
## Options
<details>
<summary>dry-run</summary>
<p>
<code>--dry-run</code> (alias: <code>-d</code>)
</p>
<p>
Run through without making any changes.
</p>
</details>
<details>
<summary>force</summary>
<p>
<code>--force</code> (alias: <code>-f</code>)
</p>
<p>
Forces overwriting of files.
</p>
</details>
<details>
<summary>inline-style</summary>
<p>
<code>--inline-style</code> (alias: <code>-s</code>)
</p>
<p>
Specifies if the style will be in the ts file.
</p>
</details>
<details>
<summary>inline-template</summary>
<p>
<code>--inline-template</code> (alias: <code>-t</code>)
</p>
<p>
Specifies if the template will be in the ts file.
</p>
</details>
<details>
<summary>view-encapsulation</summary>
<p>
<code>--view-encapsulation</code>
</p>
<p>
Specifies the view encapsulation strategy.
</p>
</details>
<details>
<summary>routing</summary>
<p>
<code>--routing</code>
</p>
<p>
Generates a routing module.
</p>
</details>
<details>
<summary>prefix</summary>
<p>
<code>--prefix</code> (alias: <code>-p</code>)
</p>
<p>
The prefix to apply to generated selectors.
</p>
</details>
<details>
<summary>style</summary>
<p>
<code>--style</code>
</p>
<p>
The file extension to be used for style files.
</p>
</details>
<details>
<summary>skip-tests</summary>
<p>
<code>--skip-tests</code> (alias: <code>-S</code>)
</p>
<p>
Skip creating spec files.
</p>
</details>
<details>
<summary>skip-package-json</summary>
<p>
<code>--skip-package-json</code>
</p>
<p>
Do not add dependencies to package.json.
</p>
</details>