<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error authenticating locally through HubSpot CLI in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Error-authenticating-locally-through-HubSpot-CLI/m-p/1186390#M43829</link>
    <description>&lt;P&gt;Hey &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/976231"&gt;@Kevin_Hill&lt;/a&gt;&lt;/SPAN&gt; - thanks for posting in the Community!&lt;BR /&gt;&lt;BR /&gt;I'd like to tag in a few developer experts to assist here! &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/293284"&gt;@dsmarion&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/114957"&gt;@Syeda_Fatima&lt;/a&gt;&lt;/SPAN&gt;, and &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/632288"&gt;@MadisonMoniz&lt;/a&gt;&lt;/SPAN&gt; - any insight that may be able to assist &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/976231"&gt;@Kevin_Hill&lt;/a&gt;&lt;/SPAN&gt; with authenticating their account?&lt;/P&gt;</description>
    <pubDate>Thu, 07 Aug 2025 19:49:34 GMT</pubDate>
    <dc:creator>STierney</dc:creator>
    <dc:date>2025-08-07T19:49:34Z</dc:date>
    <item>
      <title>Error authenticating locally through HubSpot CLI</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Error-authenticating-locally-through-HubSpot-CLI/m-p/1186382#M43828</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am starting local development with HubSpot CLI, but I am running into an issue authenticating my account. When I try to authenticate, I get the corresponding output/errors after providing my personal access key (which is copy/pasted, so it should be correct):&lt;/P&gt;&lt;PRE&gt;$ hs account auth&lt;BR /&gt;--------------------------------------------------&lt;BR /&gt;HubSpot Personal Access Key Setup&lt;BR /&gt;A personal access key is required to authenticate the CLI to interact with your HubSpot account.&lt;BR /&gt;--------------------------------------------------&lt;BR /&gt;? Choose your preferred method of authentication Enter existing personal access&lt;BR /&gt;key&lt;BR /&gt;? [--personal-access-key] Enter your personal access key: &amp;lt;masked-key-here&amp;gt;&lt;BR /&gt;[ERROR] Failed to update the configuration file. Please try again.&lt;/PRE&gt;&lt;P&gt;Any guidance here would be much appreciated. I'd love to get in here to start learning and setting up a new project, but this is blocking me from moving forward.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 19:24:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Error-authenticating-locally-through-HubSpot-CLI/m-p/1186382#M43828</guid>
      <dc:creator>Kevin_Hill</dc:creator>
      <dc:date>2025-08-07T19:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error authenticating locally through HubSpot CLI</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Error-authenticating-locally-through-HubSpot-CLI/m-p/1186390#M43829</link>
      <description>&lt;P&gt;Hey &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/976231"&gt;@Kevin_Hill&lt;/a&gt;&lt;/SPAN&gt; - thanks for posting in the Community!&lt;BR /&gt;&lt;BR /&gt;I'd like to tag in a few developer experts to assist here! &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/293284"&gt;@dsmarion&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/114957"&gt;@Syeda_Fatima&lt;/a&gt;&lt;/SPAN&gt;, and &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/632288"&gt;@MadisonMoniz&lt;/a&gt;&lt;/SPAN&gt; - any insight that may be able to assist &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/976231"&gt;@Kevin_Hill&lt;/a&gt;&lt;/SPAN&gt; with authenticating their account?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 19:49:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Error-authenticating-locally-through-HubSpot-CLI/m-p/1186390#M43829</guid>
      <dc:creator>STierney</dc:creator>
      <dc:date>2025-08-07T19:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error authenticating locally through HubSpot CLI</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Error-authenticating-locally-through-HubSpot-CLI/m-p/1186398#M43830</link>
      <description>&lt;P&gt;Your personal access key is found in your developer account.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dsmarion_0-1754597660110.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/152786i4E148F4A46B49E40/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dsmarion_0-1754597660110.png" alt="dsmarion_0-1754597660110.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 20:14:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Error-authenticating-locally-through-HubSpot-CLI/m-p/1186398#M43830</guid>
      <dc:creator>dsmarion</dc:creator>
      <dc:date>2025-08-07T20:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error authenticating locally through HubSpot CLI</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Error-authenticating-locally-through-HubSpot-CLI/m-p/1186402#M43831</link>
      <description>&lt;P&gt;Thanks for the reply, maybe I wasn't clear. I found my personal access key just fine - my question is why I get the above error when I enter it in the CLI&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 20:15:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Error-authenticating-locally-through-HubSpot-CLI/m-p/1186402#M43831</guid>
      <dc:creator>Kevin_Hill</dc:creator>
      <dc:date>2025-08-07T20:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error authenticating locally through HubSpot CLI</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Error-authenticating-locally-through-HubSpot-CLI/m-p/1186414#M43832</link>
      <description>&lt;P&gt;Oh, I see.&amp;nbsp; Hmmm.&amp;nbsp; Well the placement of the config file has recently changed to a new global location.&amp;nbsp; Check out this video in the HubSpot Developer's Youtube which explains all that and see if that helps.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://youtu.be/0O54ZyeteUc?si=28D1OlBmkudprFYI" target="_blank"&gt;https://youtu.be/0O54ZyeteUc?si=28D1OlBmkudprFYI&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 20:30:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Error-authenticating-locally-through-HubSpot-CLI/m-p/1186414#M43832</guid>
      <dc:creator>dsmarion</dc:creator>
      <dc:date>2025-08-07T20:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error authenticating locally through HubSpot CLI</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Error-authenticating-locally-through-HubSpot-CLI/m-p/1186423#M43833</link>
      <description>&lt;P&gt;Hi Scott,&lt;/P&gt;&lt;P&gt;I just followed along that video, and I still get the same result. Could this be prompted by firewall settings (on my company's side) blocking the auth verification call after the personal key is submitted? It'd be helpful if it's known what causes this particular error to appear, but it's pretty generic and I couldn't find it searching around.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 21:12:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Error-authenticating-locally-through-HubSpot-CLI/m-p/1186423#M43833</guid>
      <dc:creator>Kevin_Hill</dc:creator>
      <dc:date>2025-08-07T21:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error authenticating locally through HubSpot CLI</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Error-authenticating-locally-through-HubSpot-CLI/m-p/1186425#M43834</link>
      <description>&lt;P&gt;For additional context: When I run &lt;STRONG&gt;hs account auth&lt;/STRONG&gt; it generates the .hscli directory, and the config.yml file within it. But if I open that YAML file, all that's inside is&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;accounts: []&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Aug 2025 21:13:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Error-authenticating-locally-through-HubSpot-CLI/m-p/1186425#M43834</guid>
      <dc:creator>Kevin_Hill</dc:creator>
      <dc:date>2025-08-07T21:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error authenticating locally through HubSpot CLI</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Error-authenticating-locally-through-HubSpot-CLI/m-p/1186426#M43835</link>
      <description>&lt;P&gt;At this point I am not sure but that may be a possibity.&amp;nbsp; I had an issue back a while ago where my VPN would not allow ui extensions to run.&amp;nbsp; I am sorry you're having this problem and I don't really have any other suggestions other than maybe try it on a personal device not connected to your company if you can.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 21:15:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Error-authenticating-locally-through-HubSpot-CLI/m-p/1186426#M43835</guid>
      <dc:creator>dsmarion</dc:creator>
      <dc:date>2025-08-07T21:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error authenticating locally through HubSpot CLI</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Error-authenticating-locally-through-HubSpot-CLI/m-p/1186431#M43836</link>
      <description>&lt;P&gt;Instead of hs account auth try running just hs auth&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 21:29:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Error-authenticating-locally-through-HubSpot-CLI/m-p/1186431#M43836</guid>
      <dc:creator>dsmarion</dc:creator>
      <dc:date>2025-08-07T21:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error authenticating locally through HubSpot CLI</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Error-authenticating-locally-through-HubSpot-CLI/m-p/1186639#M43839</link>
      <description>&lt;P&gt;No luck with &lt;STRONG&gt;hs auth&lt;/STRONG&gt; either. I'm going to connect with my company's networking team and see if they can spot activity being blocked by our firewall. If that ends up being the issue, I'll update here.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 13:21:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Error-authenticating-locally-through-HubSpot-CLI/m-p/1186639#M43839</guid>
      <dc:creator>Kevin_Hill</dc:creator>
      <dc:date>2025-08-08T13:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error authenticating locally through HubSpot CLI</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Error-authenticating-locally-through-HubSpot-CLI/m-p/1199065#M44073</link>
      <description>&lt;P data-start="0" data-end="765"&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/976231"&gt;@Kevin_Hill&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="0" data-end="765"&gt;that error usually isn’t the key itself, it’s the CLI failing to write your config.&lt;/P&gt;
&lt;P data-start="0" data-end="765"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="0" data-end="765"&gt;Since April 2025 the CLI uses a single global file at ~/.hscli/config.yml, so if that path is read-only, synced, or owned by another user you’ll see “Failed to update the configuration file” and end up with accounts: []. First, update the CLI and verify version, then check permissions/ownership on ~/.hscli and config.yml.&lt;/P&gt;
&lt;P data-start="0" data-end="765"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="0" data-end="765"&gt;On macOS/Linux, ls -ld ~/.hscli ~/.hscli/config.yml should show your user; if not, chown it back and set perms to 700 on the folder and 600 on the file, then re-run hs account auth (&lt;A href="https://developers.hubspot.com/changelog/new-global-configuration" target="_blank"&gt;https://developers.hubspot.com/changelog/new-global-configuration&lt;/A&gt; )&lt;/P&gt;
&lt;P data-start="0" data-end="765"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="0" data-end="765"&gt;Next, confirm you’re creating and pasting a Personal CMS Access Key from your HubSpot account (not an OAuth token or Private App token). Personal Access Keys are the supported method for local tools and the doc walks through generation and usage, including scope and rotation notes&lt;/P&gt;
&lt;P data-start="0" data-end="765"&gt;(&lt;A href="https://developers.hubspot.com/docs/cms/start-building/introduction/developer-environment/personal-access-key" target="_blank"&gt;https://developers.hubspot.com/docs/cms/start-building/introduction/developer-environment/personal-access-key&lt;/A&gt; )&lt;/P&gt;
&lt;P data-start="1164" data-end="1840"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="1164" data-end="1840"&gt;Two quick gotchas I see in corporate environments: OneDrive/Desktop sync on Windows or a managed macOS profile can make ~ effectively read-only try setting HOME to a non-synced path or authenticate on an unmanaged user profile.&lt;/P&gt;
&lt;P data-start="1164" data-end="1840"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="1164" data-end="1840"&gt;Company VPNs or SSL inspection don’t typically block writing the file, but they can block the follow-up validation; you can prove it’s a local write problem by running hs account list immediately after the error if it shows zero accounts, the write failed before any network call. If you can share: are you on Windows/WSL or macOS, and is your home directory under a sync/MDM policy? That helps narrow whether it’s file permissions vs. network.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 17:50:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Error-authenticating-locally-through-HubSpot-CLI/m-p/1199065#M44073</guid>
      <dc:creator>RubenBurdin</dc:creator>
      <dc:date>2025-09-10T17:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error authenticating locally through HubSpot CLI</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Error-authenticating-locally-through-HubSpot-CLI/m-p/1238958#M44850</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had the same issue and it was our firewall blocking the connections.&amp;nbsp; Some suggestions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Run the command with debug enabled:&lt;/P&gt;&lt;PRE&gt;hs account auth --debug&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Look for the error, in my case it was:&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;[DEBUG] Sending usage event to unauthenticated endpoint&lt;BR /&gt;[DEBUG] Failed to send usage event to unauthenticated endpoint&lt;BR /&gt;[ERROR] Failed to update the configuration file. Please try again.&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. If it is indeed a firewall issue, you can try to disable (temporarily) the SSL certificate validation with this command:&lt;/P&gt;&lt;PRE&gt;$env:NODE_TLS_REJECT_UNAUTHORIZED=0&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. Run "&lt;EM&gt;hs account auth"&lt;/EM&gt; again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should now work (at least it did for me &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; )&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2026 15:22:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Error-authenticating-locally-through-HubSpot-CLI/m-p/1238958#M44850</guid>
      <dc:creator>LuisEstrada</dc:creator>
      <dc:date>2026-01-06T15:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error authenticating locally through HubSpot CLI</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Error-authenticating-locally-through-HubSpot-CLI/m-p/1239239#M44858</link>
      <description>&lt;P&gt;Thanks for your suggestion &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/1029197"&gt;@LuisEstrada&lt;/a&gt;&lt;/SPAN&gt; !!&lt;/P&gt;
&lt;P&gt;Best, Victor&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2026 14:28:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Error-authenticating-locally-through-HubSpot-CLI/m-p/1239239#M44858</guid>
      <dc:creator>Victor_Becerra</dc:creator>
      <dc:date>2026-01-07T14:28:04Z</dc:date>
    </item>
  </channel>
</rss>

