2018-10-18 14:08:09 -07:00

118 lines
2.2 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. For version 7 see [here](https://angular.io/cli/generate)**.
# ng generate universal
## Overview
`ng generate universal [name]` creates an Angular universal app.
## 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>client-project</summary>
<p>
<code>--client-project</code>
</p>
<p>
Name of related client app.
</p>
</details>
<details>
<summary>app-id</summary>
<p>
<code>--app-id</code>
</p>
<p>
The appId to use withServerTransition.
</p>
</details>
<details>
<summary>main</summary>
<p>
<code>--main</code>
</p>
<p>
The name of the main entry-point file.
</p>
</details>
<details>
<summary>test</summary>
<p>
<code>--test</code>
</p>
<p>
The name of the test entry-point file.
</p>
</details>
<details>
<summary>tsconfig-file-name</summary>
<p>
<code>--tsconfig-file-name</code>
</p>
<p>
The name of the TypeScript configuration file.
</p>
</details>
<details>
<summary>test-tsconfig-file-name</summary>
<p>
<code>--test-tsconfig-file-name</code>
</p>
<p>
The name of the TypeScript configuration file for tests.
</p>
</details>
<details>
<summary>app-dir</summary>
<p>
<code>--app-dir</code>
</p>
<p>
The name of the application directory.
</p>
</details>
<details>
<summary>root-module-file-name</summary>
<p>
<code>--root-module-file-name</code>
</p>
<p>
The name of the root module file
</p>
</details>
<details>
<summary>root-module-class-name</summary>
<p>
<code>--root-module-class-name</code>
</p>
<p>
The name of the root module class.
</p>
</details>
<details>
<summary>skip-install</summary>
<p>
<code>--skip-install</code>
</p>
<p>
Skip installing dependency packages.
</p>
</details>