Usage
Usage
๋ฐ์ด๋ ์ฌ์ฉ์ ๊ฒฝํ์ ์ ๊ณตํ๊ธฐ ์ํด CLI ๋ช ๋ น์ ๋์ผํ ๋ช ๋ น ์คํค๋ง๋ฅผ ๊ณต์ ํฉ๋๋ค.
$ nest [command] [...options]Options
๊ฐ ๋ช ๋ น์ ์๋ ๋์ด๋ ์ต์ ์ ํ์ฉํฉ๋๋ค.
--dry-run: ์ํน ๋๋ ํ ๋ฆฌ์ ๋ฏธ์น๋ ์ํฅ์ ํ์ธํ๊ธฐ ์ํด ๋ช ๋ น ์คํ์ ์๋ฎฌ๋ ์ด์ ํ ์ ์์ต๋๋ค.
--no-spec: ์คํ ํ์ผ์ ์์ฑ์ ๋ ์ ์์ต๋๋ค (
generate๋ช ๋ น์๋ง ์ ์ฉ)--flat: ์ ์ฉ ๋๋ ํ ๋ฆฌ์ ์์ฑ์ ๋ ์ ์์ต๋๋ค (
generate๋ช ๋ น์๋ง ์ ์ฉ๋ฉ๋๋ค)
new (alias: n)
new ๋ช ๋ น์ typescript-starter๋ฅผ ๊ธฐ๋ฐ์ผ๋ก Nest ํ๋ก์ ํธ๋ฅผ ์ค์บ ํด๋ฉํ๊ณ ํ์ํ ํจํค์ง๋ฅผ ์ค์นํฉ๋๋ค. CLI๋ ๋๋ฝ๋ ์ ๋ณด (์์ฉ ํ๋ก๊ทธ๋จ ์ด๋ฆ (์ง์ ๋์ง ์์ ๊ฒฝ์ฐ) ๋ฐ ์ข ์์ฑ์ ์ค์นํ๋ ๋ฐ ์ฌ์ฉํ๋ ค๋ ํจํค์ง ๊ด๋ฆฌ์)๋ฅผ ์์ฒญํฉ๋๋ค.
$ nest new my-awesome-appgenerate (alias: g)
generate ๋ช ๋ น์ Nest ์ํคํ ์ฒ ๊ตฌ์ฑ ์์๋ฅผ ์์ฑํฉ๋๋ค.
Option
Description
Required
Default value
schematic
์๋ ๋ชฉ๋ก์์ ์คํค๋ฉํฑ ์ด๋ฆ.
true
N/A
name
์์ฑ๋ Nest ์ํคํ ์ฒ ๊ตฌ์ฑ ์์์ ์ด๋ฆ์ ๋๋ค.
false
N/A
path
Nest ์ํคํ ์ฒ ๊ตฌ์ฑ ์์๋ฅผ ์์ฑํ๊ธฐ ์ํ ๊ฒฝ๋ก์ ๋๋ค.
false
src
์ฌ์ฉ ๊ฐ๋ฅํ ์ํคํ ์ฒ ๊ตฌ์ฑ ์์ ๋ชฉ๋ก:
class(alias: cl)controller(alias: co)decorator(alias: d)filter(alias: f)gateway(alias: ga)guard(alias: gu)interface(alias: -)interceptor(alias: in)library(alias: lib)middleware(alias: mi)module(alias: mo)pipe(alias: pi)provider(alias: pr)resolver(alias: r)service(alias: s)
์ฌ์ฉ๋ฒ ์:
info (alias: i)
info ๋ช ๋ น์ ํ๋ก์ ํธ ์ ๋ณด๋ฅผ ํ์ํฉ๋๋ค.
Last updated
Was this helpful?