How can I change a project in BigQuery

When setting up the Big-Query command-line tool, I was asked to set up a default project. However, now I have many projects, and I can’t find how to switch from one project to another. Does anyone know how to navigate projects using the command line? Thanks in advance!

WITH

+5
source share
1 answer

You have two ways to do this:

  • Specify the --project_id global flag in bq . Example: bq ls -j --project_id <PROJECT>
  • Change the default project by issuing gcloud config set project <PROJECT>
+5
source

Source: https://habr.com/ru/post/1247310/


All Articles