# Invalid Access Token When Trying to Run hs init

**URL:** <https://community.hubspot.com/t/invalid-access-token-when-trying-to-run-hs-init/50342>\
**Category:** CMS Development\
**Tags:** local-development\
**Created:** [January 25, 2022, 4:34pm UTC](https://community.hubspot.com/t/invalid-access-token-when-trying-to-run-hs-init/50342 "2022-01-25T16:34:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jk-sone](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jk-sone/32/44503_2.png) [@jk-sone](https://community.hubspot.com/u/jk-sone)\
**Post date:** [January 25, 2022, 4:34pm UTC](https://community.hubspot.com/t/invalid-access-token-when-trying-to-run-hs-init/50342/1 "2022-01-25T16:34:26Z")

</div>

I’ve installed the latest version of HubSpot’s CLI tools (3.0.10) and am trying to run “hs init” in a newly created directory. I am able to generate a personal access key but everytime I paste in a new one and give it a unique reference, I get the following error:

**"[ERROR] A Error has occurred. Error while retrieving new access token: The provided token is invalid.**  
**Your personal access key is invalid. Please run “hs auth personalaccesskey” to reauthenticate. "**

And, when I attempt to run “hs auth personalaccesskey”, I get this error:  
**“[ERROR] No config file was found. To create a new config file, use the “hs init” command.”**

A circular problem -- I’d welcome any recommendations for how to proceed. Thanks for your help.

---

<div class="post-metadata">

**Author:** ![jk-sone](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jk-sone/32/44503_2.png) [@jk-sone](https://community.hubspot.com/u/jk-sone)\
**Post date:** [January 25, 2022, 7:19pm UTC](https://community.hubspot.com/t/invalid-access-token-when-trying-to-run-hs-init/50342/2 "2022-01-25T19:19:44Z")

</div>

Following the discussion with a similar issue here:

[https://community.hubspot.com/t5/CMS-Development/Local-Development-error/td-p/506001](https://community.hubspot.com/t5/CMS-Development/Local-Development-error/td-p/506001)

I shut down my VPN, then uninstalled and re-installed the CLI tools -- success! Hopes this proves helpful to others.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [January 26, 2022, 3:00pm UTC](https://community.hubspot.com/t/invalid-access-token-when-trying-to-run-hs-init/50342/3 "2022-01-26T15:00:10Z")

</div>

Thanks for sharing @jk-sone !
