Skip to content

Commit 9d5932a

Browse files
author
thomrick
committed
docs(cli) : update cli information
1 parent b88c712 commit 9d5932a

File tree

1 file changed

+25
-12
lines changed

1 file changed

+25
-12
lines changed

src/app/homepage/pages/cli/usages/usages.component.html

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h4>Options</h4>
1515
<strong>--dry-run</strong>: allows to simulate the command execution in order to verify how it will affect your working directory
1616
</li>
1717
</ul>
18-
<h4>new</h4>
18+
<h4>new (alias n)</h4>
1919
<p>
2020
The
2121
<strong>new</strong> command generates a Nest project based on the <a href="https://github.com/nestjs/typescript-starter" target="blank">typescript-starter</a> as well as install the required packages.
@@ -54,7 +54,14 @@ <h4>new</h4>
5454
<td>''</td>
5555
</tr>
5656
</table>
57-
<h4>generate</h4>
57+
<p>
58+
Example usage:
59+
</p>
60+
<pre><code class="language-bash">
61+
$ nest new my-awesome-app</code>
62+
OR <code class="language-bash">
63+
$ nest n my-awesome-app</code></pre>
64+
<h4>generate (alias g)</h4>
5865
<p>
5966
The
6067
<strong>generate</strong> command generates a Nest architecture component.
@@ -87,20 +94,26 @@ <h4>generate</h4>
8794
</table>
8895
<p>A list of available architecture components:</p>
8996
<ul>
90-
<li>controller</li>
91-
<li>exception</li>
92-
<li>guard</li>
93-
<li>interceptor</li>
94-
<li>middleware</li>
95-
<li>module</li>
96-
<li>pipe</li>
97-
<li>service</li>
97+
<li>class (alias cl)</li>
98+
<li>controller (alias co)</li>
99+
<li>decorator (alias d)</li>
100+
<li>exception (alias e)</li>
101+
<li>filter (alias f)</li>
102+
<li>gateway (alias ga)</li>
103+
<li>guard (alias gu)</li>
104+
<li>interceptor (alias i)</li>
105+
<li>middleware (alias mi)</li>
106+
<li>module (alias mo)</li>
107+
<li>pipe (alias p)</li>
108+
<li>service (alias s)</li>
98109
</ul>
99110
<p>
100111
Example usage:
101112
</p>
102113
<pre><code class="language-bash">
103-
$ nest generate service users</code></pre>
114+
$ nest generate service users</code>
115+
OR <code class="language-bash">
116+
$ nest g s users</code></pre>
104117
<h4>info</h4>
105118
<p>
106119
The
@@ -126,4 +139,4 @@ <h4>info</h4>
126139
common version : 5.0.0
127140
core version : 5.0.0</code>
128141
</pre>
129-
</div>
142+
</div>

0 commit comments

Comments
 (0)