title: Get the Default GCP Project ID with a Cloud SDK CLI One-Liner
body: <p>I’m looking for a <code>gcloud</code> one-liner to get the default project ID (<code>$GCP_PROJECT_ID</code>).</p>
  <p>The <code>list</code> command gives me:</p>
  <pre class="lang-shell prettyprint-override"><code>gcloud config list core/project
  
  #=&gt;
  
  [core]
  project = $GCP_PROJECT_ID
  
  Your active configuration is: [default]
  </code></pre>
  <p>While I only want the following output:</p>
  <pre class="lang-shell prettyprint-override"><code>gcloud . . .
  
  #=&gt;
  
  $GCP_PROJECT_ID
  </code></pre>