Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

프로필 가져오기: profile import

apollo-cli profile import는 profile export로 만든 YAML 또는 JSON 파일에서 연결 프로필을 가져옵니다. 기본적으로 파일에 들어 있는 프로필 이름을 사용하고 --name으로 다른 이름을 지정할 수 있습니다.

실험 단계(Experimental)의 명령이므로 apollo-cli configure에서 V2 experimental commands를 활성화해야 합니다.

apollo-cli profile import <file> [flags]
옵션의미
--name파일 안의 프로필 이름 대신 사용할 이름
--overwrite같은 이름의 프로필이 있으면 덮어쓰기
--set-current가져온 뒤 활성 프로필로 선택
-h, --help명령 도움말

다음은 가상의 내보내기 파일을 다른 프로필 이름으로 가져오는 예시입니다.

./apollo-cli profile import "./staging-profile.json" --name staging-copy

내보낸 파일에는 인증 정보도 포함될 수 있습니다. 가져올 허브와 인증 정보의 대상을 확인하고, 기존 프로필을 바꾸려는 경우에만 --overwrite를 사용합니다.