title: Accessing local Firebase Environment Variables when running Node test.js locally
body: <p>I have the following simple <code>test.js</code>:</p>
  <pre><code>const functions = require('firebase-functions');
  console.log(functions.config().supportgmail.email);
  </code></pre>
  <p>I've done the following before running <code>node test.js</code>:</p>
  <ol>
  <li><code>firebase functions:config:get &gt; .runtimeconfig.json</code></li>
  <li><code>firebase emulators:start</code></li>
  <li><code>node test.js</code></li>
  </ol>
  <p>After running <code>node test.js</code>, I get the following error and the environment variable wasn't output to the console:</p>
  <pre><code>{&quot;severity&quot;:&quot;WARNING&quot;,&quot;message&quot;:&quot;Warning, FIREBASE_CONFIG and GCLOUD_PROJECT environment variables are missing. 
  Initializing firebase-admin will fail&quot;}
  </code></pre>
  <p>What else do I need to do in <code>test.js</code> in order to make the local Firebase environment variables accessible? Note that when I run the entire web app project locally, it has no problem accessing the local environment variables except when I run a JS independently using <code>node test.js</code> -- I just want to make my newly created function that needs to access the environment variables works before incorporate it into my app project. Thanks!</p>