Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

모듈 정의 비교: module diff

apollo-cli module diff는 모듈 정의를 비교합니다. 파일을 하나만 지정하면 Apollo에 있는 해당 모듈의 최신 리비전과 비교하고, 파일을 두 개 지정하면 두 정의를 비교합니다.

정의가 같으면 출력하지 않습니다. 다르면 배포 개체별 차이를 출력합니다.

실험 단계(Experimental)의 명령으로 V2 experimental commands 활성화가 필요합니다.

apollo-cli module diff -f <module-definition-file> [-f <other-module-definition-file>] [flags]

옵션은 입력 파일인 -f, --file과 도움말 -h, --help입니다.

./apollo-cli module diff --file ./module.yml
./apollo-cli module diff --file ./before.yml --file ./after.yml

각 파일에는 비교할 실제 모듈 정의를 준비해야 합니다.