Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

모듈 생성과 갱신: module create

apollo-cli module create는 새 모듈을 만듭니다. 같은 이름의 모듈이 이미 있으면 기존 모듈을 갱신합니다.

apollo-cli module create [flags]
옵션의미
-f, --module-definition-fileJSON 또는 YAML 모듈 정의 파일
--module-directory모듈 정의 파일들이 있는 디렉터리. version: local 정의를 사용할 때 지정
--dry-run수행할 작업 출력
-h, --help명령 도움말

다음은 준비한 정의 파일의 작업을 확인하는 예시입니다.

./apollo-cli module create \
  --module-definition-file ./modules/root.yml \
  --module-directory ./modules \
  --dry-run

적용 전에는 정의에 지정한 이름이 기존 모듈과 같은지 확인합니다.