Before you export or import data, you must set up environment variables for the gcloud tool and authenticate using your user account.
-
Set an environment variable for your GCP project ID.
PROJECT_ID="YOUR_PROJECT_ID"
-
Use this variable to set your project as the active configuration for the gcloud tool.
gcloud config set project ${PROJECT_ID}
-
Authenticate using the gcloud tool.
gcloud auth login
-
Set an environment variable for your Cloud Storage bucket ID.
BUCKET="YOUR_BUCKET_NAME[/NAMESPACE_PATH]"
where YOUR_BUCKET_NAME is the name of the Cloud Storage bucket and NAMESPACE_PATH is an optional Cloud Storage namespace path (this is not a Datastore mode namespace).
Hope it helps!!
If you need to know more about Google Cloud, We recommend joining GCP Certification course today.
Thanks!