Skip to main content

Command Palette

Search for a command to run...

Using the bq CLI utility with BigQuery

Updated
1 min read
Using the bq CLI utility with BigQuery
C

Senior Data Engineer • Contractor / Freelancer • GCP & AWS Certified

Remember that in additional to the Cloud Console GUI or client libraries, you can also perform BigQuery tasks using the bq command-line interface.

It's included with the gcloud SDK and once you have logged in, you can perform a number of operations such as:
- run queries against BQ
- create, copy and delete tables
- load data into tables
- view IAM policies for a BQ asset and much more

How I've used it until now:
- impersonate service accounts
- perform operations that are/were not supported in the SQL interface, such as copying partitions between tables

Any other interesting ways you're using the bq cli tool?

Found it useful? Subscribe to my Analytics newsletter at notjustsql.com.


Enjoyed this? Here are some related articles you might find useful:

More from this blog

D

Datawise: A blog on SQL, BigQuery, Analytics, Python Tips and Tricks

204 posts

Data Engineer with a passion for transforming complex data landscapes into insightful stories. Here on my blog, I share insights, challenges, and the ever-evolving dance of technology and business.