cbt tool Google Professional Data Engineer GCP

  1. Home
  2. cbt tool Google Professional Data Engineer GCP

In this, we will learn about the cbt tool of Google Professional Data Engineer GCP.

  • A command-line interface
  • perform operations on Bigtable.
  • written in Go
  • install the cbt tool as a Cloud SDK component or by using the standard go tool.

Usage:

cbt [-<option> <option-argument>] <command> <required-argument> [optional-argument]

The commands are:

  • count – Count rows in a table
  • createinstanceCreate an instance with an initial cluster
  • createcluster – Create a cluster in the configured instance
  • createfamily – Create a column family
  • createtable – Create a table
  • updatecluster – Update a cluster in the configured instance
  • deleteinstanceDelete an instance
  • deletecluster – Delete a cluster from the configured instance
  • deletecolumn – Delete all cells in a column
  • deletefamily – Delete a column family
  • deleterow – Delete a row
  • deleteallrows – Delete all rows
  • deletetable – Delete a table
  • doc – Print godoc-suitable documentation for cbt
  • help – Print help text
  • listinstances – List instances in a project
  • listclusters – List clusters in an instance
  • lookup -Read from a single row
  • ls -List tables and column families
  • mddoc – Print documentation for cbt in Markdown format
  • read – Read rows
  • set – Set value of a cell (write)
  • setgcpolicy – Set the garbage-collection policy (age, versions) for a column family
  • waitforreplicationBlock until all the completed writes have been replicated to all the clusters
  • version – Print the current cbt version
  • createappprofile Create app profile for an instance
  • getappprofile – Read app profile for an instance
  • listappprofileLists app profile for an instance
  • updateappprofile Update app profile for an instance
  • deleteappprofile Delete app profile for an instance

 

The options are:

  • -project string : project ID. If unset uses gcloud configured project
  • -instance string :Cloud Bigtable instance
  • -creds string: Path to the credentials file. If set, uses the application credentials in this file

Check here for more.

Menu