gcloud CLI 설치

Google Cloud 콘솔 대신 Google Cloud CLIcbt CLI를 사용하여 명령줄에서 Bigtable 인스턴스를 관리할 수 있습니다.

설치

명령줄 인터페이스를 설치하려면 다음 안내를 따르세요.

  1. gcloud CLI를 설치합니다.

    gcloud CLI를 이미 설치한 경우 다음 명령어를 실행하여 최신 버전인지 확인하세요.

    gcloud components update
    
  2. cbt CLI와 함께 gclod CLI의 beta 구성요소를 설치하거나 업데이트합니다.

    gcloud components install beta cbt
    
  3. gcloud CLI의 기본 프로젝트를 설정하세요. 이때 PROJECT_ID를 Bigtable 인스턴스가 위치한 프로젝트로 바꿉니다.

    gcloud config set project PROJECT_ID
    

이제 Bigtable에 대해 gcloud CLI 및 cbt CLI를 사용할 수 있습니다.

도움 받기

gcloud CLI에서 Bigtable 작업의 각 명령어는 gcloud bigtable 또는 gcloud beta bigtable로 시작합니다. 각 명령어에 대한 도움말을 보려면 참조 문서 또는 베타 참조 문서를 확인하거나 아래와 같이 gcloud CLI 도구를 사용합니다.

gcloud bigtable clusters --help  # help for all commands
gcloud bigtable clusters create --help  # help for the `create` command

cbt CLI에 대한 도움말을 보려면 참조 문서를 확인하거나 아래와 같이 cbt 도구를 사용합니다.

cbt help  # view a list of commands and help for all commands
cbt help createtable  # help for the `createtable` command

다음 단계