Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

모듈 설치와 기존 설치 갱신

apollo-cli module install은 Apollo 배포 환경에 모듈을 설치합니다. 이미 설치된 모듈이라면 기존 설치를 갱신합니다.

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

apollo-cli module install <module-product-id-or-maven-coordinate> [flags]

버전 선택

입력 형식선택 방식
제품 ID module:example-module적용할 릴리스 채널에서 최신 릴리스 선택
전체 좌표 module:example-module:0.5.0지정한 버전 선택

옵션

옵션의미
-e, --environment설치할 배포 환경
-r, --release-channel사용할 릴리스 채널
--variableKEY=VALUE 형식의 모듈 변수. 여러 번 지정 가능
--ignore-recalls어떤 제품의 모든 릴리스가 회수되어 있어도 설치 진행 허용
--ignore-secret-requirements모듈이 요구하는 비밀 정보가 설정되지 않아도 설치 진행 허용
-h, --help명령 도움말

두 --ignore-... 옵션은 설치 진행 조건을 완화합니다. 회수 원인을 해결하거나 필요한 비밀 정보를 준비하는 작업을 대신하지 않습니다.

예시

다음은 가상의 모듈을 채널에서 선택하여 설치하는 예시입니다.

./apollo-cli module install module:example-module \
  --environment test-spoke \
  --release-channel STABLE

특정 버전을 지정하려면 다음과 같이 실행합니다.

./apollo-cli module install module:example-module:0.5.0 \
  --environment test-spoke

모듈에 region, instanceName 변수가 정의되어 있다고 가정하면 여러 값을 전달할 수 있습니다.

./apollo-cli module install module:example-module:0.5.0 \
  --environment test-spoke \
  --variable region=test-region \
  --variable instanceName=sample