Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

구성 디렉터리 조회: environment config get

apollo-cli environment config get은 중앙 구성 서비스(Central Config Service, CCS)에서 한 배포 환경의 구성을 가져와 지정한 디렉터리에 기록합니다.

결과에는 metadata.yml과 서비스, 데몬 및 다른 Apollo 배포 개체의 구성을 담는 디렉터리가 포함됩니다.

apollo-cli environment config get [environment-id] [flags]
옵션의미
--output-dir구성 파일을 기록할 디렉터리. 필수
-h, --help명령 도움말

내려받은 구성 수정과 제출

가상의 배포 환경에서 다음과 같이 구성을 가져옵니다.

./apollo-cli environment config get test-spoke --output-dir ./configs

configs 안의 필요한 구성을 수정한 뒤 config apply로 변경 요청을 만듭니다.

./apollo-cli environment config apply test-spoke --config-dir ./configs

로컬 파일 수정과 서버에 변경 요청을 생성하는 단계는 별개입니다.